Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
  1.  # 1
    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.
    •  
      CommentAuthorlukeb
    • CommentTimeJul 10th 2006 edited
     # 2
    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">'.
  2.  # 3
    I notice the same problem, jpmitchell7

    my ads don't seem to be linked to my content either.
    • CommentAuthorJP Mitchio
    • CommentTimeJul 10th 2006
     # 4
    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.
    •  
      CommentAuthorlukeb
    • CommentTimeJul 10th 2006
     # 5
    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.
    • CommentAuthorJP Mitchio
    • CommentTimeJul 10th 2006
     # 6
    lukeb,

    Thanks for your assistance. I think that'll do the trick.
Add your comments
    Username Password
  • Format comments as