MyersMan
Member
Posted 6 months ago #
I'm trying to hack the php of the WP Footer Ad for my web site here: wyofiletest.com.
I'd like to be able to adjust the plugin so that it only pops up when the user enters the site, whether through entering a URL or clicking on a link obviously. I'm using a custom theme built off Thesis 1.8.
George Stephanis
Member
Posted 6 months ago #
Simple.
One of two possible responses:
1) Send a cookie to the user that tells the server they've already seen the ad, then hide it if they have the cookie on future page loads.
2) do something like ... if( FALSE !== strpos( get_bloginfo('wpurl'), $_SERVER['HTTP_REFERER'] ) ){ echo banner ad }
MyersMan
Member
Posted 6 months ago #
Good call on the cookie trick, since I don't think the Javascript on this plugin is active.
But...being the noob that I am... what would the code look like for a cookie that would relay the "already-have-seen-ad" info to the server?