ring a bell on worpress page - open to bidding
$10-30 USD
Maksettu toimituksen yhteydessä
[url removed, login to view]
we have a custom field that needs to be checked and ring bell if changed.
set a cooke based on first view of page adn custom field.
<!-- ring_bell
Launch Pad & Batter’s Box Access 2828
Launch Pad Access 2481
Batter’s Box Access 2484 -->
<?php
if(is_page( array( 2484, 2481, 2828 )))
{
echo '<META HTTP-EQUIV="REFRESH" CONTENT="20">' ;
{
$Ring_Bell = get_post_meta($post->ID, 'Ring_Bell', true);
$bell='[url removed, login to view]';
}
}
function set_newuser_cookie() {
if ( !is_admin() && !isset($_COOKIE['sitename_newvisitor'])) {
setcookie('sitename_newvisitor', 1, time()+3600*24*100, COOKIEPATH, COOKIE_DOMAIN, false);
}
}
add_action( 'init', 'set_newuser_cookie');
if (isset($_COOKIE['sitename_newvisitor'])) {
echo 'Welcome back!';
echo "<embed src ="$bell" hidden="true" autostart="true"></embed>";
}
else {
echo 'Hello new visitor!';
echo "<embed src ="$bell" hidden="true" autostart="true"></embed>";
}
?>
<!-- ring_bell END -->
Projektin tunnus: #6968450
Tietoa projektista
Myönnetty käyttäjälle:
4 freelanceria on tarjonnut keskimäärin $97 tähän työhön
Hello! With 99% completion rate, 740 successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page https://www.freelancer.com/u Lisää
Hello. I have extensive experience with this area, and if you tell us more details, i can quickly help you. I can start right now. With best regards, Sergey Patrushev.