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.
Google Ads - Filtering Options in Vanilla
I'm pretty comfortable with the little extension I've written to include Google Adsense code above the discussion listings. The only thing is that I'm not getting exactly the ads I want to get. I'd like to use the filter feature that Google offers:
DISCUSSION LISTS
Anything posted between that coding will generate more targeted ads on your site/forum. Now, how would I write that up in PHP to be placed before and after the discussion list output? Any ideas? Thanks.
DISCUSSION LISTS
Anything posted between that coding will generate more targeted ads on your site/forum. Now, how would I write that up in PHP to be placed before and after the discussion list output? Any ideas? Thanks.
0
This discussion has been closed.
Comments
I don't have the files open right now, its kinda late, don't feel like it right now. But, where would the be placed?
Just want to make sure I've got it inserted correctly.
// themes/discussions.php <div id="ContentBody"> <!-- google_ad_section_start --> <ol id="Discussions">'; $Discussion = $this->Context->ObjectFactory->NewContextObject($this->Context, 'Discussion'); ... echo $DiscussionList.' </ol> <!-- google_ad_section_end--> </div>';
// themes/comments.php <div id="ContentBody"> <!-- google_ad_section_start --> <ol id="Comments">'; $Comment = $this->Context->ObjectFactory->NewContextObject($this->Context, 'Comment'); ... } $CommentList .= '</ol> <!-- google_ad_section_end--> </div>';
Hope that helps.
Thanks for your assistance. I think that'll do the trick.