You must be logged in to post Login


Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Default Banner Showing on New Pages

No Tags
Post
Admin

coyote

posts 22

6:07 pm 10/10/2010

Post edited 12:08 pm – 10/11/2010 by coyote


The plug-in originally was not designed to support pages. However, I have gotten a number of requests to add this support. So, pages will be supported in the upcoming 2.0 version. Until then, you can make the following change to a source file.

Note: Please do not modify source files unless you are knowledgeable in PHP.

1. Make a backup copy of the cd_ad_functions.php file so that you can repair any mistake.
2. Locate the function cd_ad_get_banners – on approximately line 63. (I say, 'approximately' due to different editors displaying lines differently.)
3. Within that function is a conditional IF statement (~line 68), which begins like so:

if ( ( is_home() || is_front_page() ) || …

4. Add the following to this IF statement, like so:

if ( ( is_home() || is_front_page() || is_page() ) || …

5. Save and upload the cd_ad_functions.php file, overwriting the original.

This change will become effective immediately, so you do not have to de-activate/re-activate the plug-in.

Please let me know if I can be of further assistance.

~Coyote

Coyote

Skype: coyotesdesigns

New Member

isleberg

posts 1

3:12 pm 09/01/2010

Hi, I'm also having a similar problem.

The plugin works great on the homepage and in categories, but when I try to view the ads on WordPress Pages only the default banners show up.

I'm on wordpress 3.0.1.

New Member

cigarjack

posts 2

1:21 pm 07/17/2010

I recently created new pages on my site after setting up Ad Sponsor and the default banner shows on these pages not the configured banner.

Test Page
http://www.cigarjack.net/retai…..directory/

No Tags