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

edited July 2006 in Vanilla 1.0 Help
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.

Comments

  • edited July 2006
    themes/discussions.php themes/comments.php These are the files you are looking for. Slot in your '<!-- google_ad_section_start -->' just after '<div id="ContentBody">'.
  • I notice the same problem, jpmitchell7 my ads don't seem to be linked to my content either.
  • lukeb,

    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.
  • Sure; I'll illustrate it a bit more clearly.

    // 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.
  • lukeb,

    Thanks for your assistance. I think that'll do the trick.
This discussion has been closed.