Recent Topics

1 May 16, 2014 16:55    

I've been working on trying to include placeholders for ads which should sit inbetween posts by adding a DIV at the end of the _item_block.inc.php file, but am having trouble limiting them only to the main post list view. It seems they also appear in the category excerpt view and also the single post view, which is entirely too many ads being displayed.

How do you display a block in the main post list view, but not in the category excerpt list or single-post view?

jj

2 May 19, 2014 01:34

Add the div to post.main.php not the item block, i.e. after the div that includes ( _item_content.inc.php)

3 May 19, 2014 11:35

Ah, thanks I will check that out. (Although, in reviewing Google Adsense terms of use, it seems ads between each post would create more than the 3 allowed ads per page so my idea may not have been a safe one to begin with.)

4 May 19, 2014 12:06

You could limit the main.posts to three per page or put an if statement to do every other and have 6, or just do the first three of any number.

5 May 20, 2014 01:51

I think the approach I'm leaning toward right now is a leaderboard-style 728x90 across the top, always visible, and then a 200x200 near the top of the sidebar, and a 3rd inside each post, just below the MORE>> link.. I already hacked a new MORE button in the editor which automatically inserts the MORE code, an empty line, and then a 728x90 horizontal ad.. this will limit the ads visible on the main post view to 2 and once inside a post the overall page will display 3 ads..

I'm also exploring other ad networks besides google. Some of them are pretty good and can be used alongside adsense ads.

jj.


Form is loading...