Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options
google adsense extension
![strawberries](https://secure.gravatar.com/avatar/f86c67dd3ccb9379353f66b65594b1c6/?default=https%3A%2F%2Fvanillicon.com%2F6275715eb548fcb4b9b6b471c7f7595d_100.png&rating=g&size=100)
I'd love to see a google adsense extension.
i.e. one that allows you to set a default figure for how often you want the adsense adverts to appear on your discussion page.
I have seen this type of thing in other forum software, where say after every 5 posts on a thread/page, is a google adsense ad.
0
This discussion has been closed.
Comments
don't hold your breath though, its hardly near finished.
In the meantime, you can get by with this: http://lussumo.com/community/discussion/4959/alter-first-comment/#Item_2
Right now it puts code at the first and last post. To get some in the middle, change that if block in the center to something like this:
if ( 1 == $RowNumber % 5 ) { $Comment->Body .= $CommentGrid->Context->GetDefinition('AfterFirstPostCode'); }
Adsense has a limit of the number of ads per page, so you might want to check up on that.
1 Link Unit on the same page is acceptable, I would hate to see people get kicked out of the adsense program for this.
Here's my method:
Edit comments.php (code here is before and after the ad code) Just paste your full code in between the and .
This will display the ad blocks at set comment intervals. (in this case #4 and #10)
if ($Comment->Deleted) $CommentClass .= ' Hidden';
if ($Alternate) $CommentClass .= ' Alternate';
$CommentClass = trim($CommentClass);
//Begin adSense Code Insertion
if ( $RowNumber == 4 || $RowNumber == 10) {
$CommentList .= '
';
}
//End Adsense Code Insertion
$CommentList .= 'CommentID.'"'.($CommentClass == ''?'':' class="'.$CommentClass.'"').'>
I also added it at the bottom of the "menu.php" theme file, in the text after the
echo '
hope this helps someone