Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How do I put a google advertisement in the right sidebar?

D37D37 New
edited September 2010 in Vanilla 2.0 - 2.8
How do I do this.
«1

Comments

  • hi D37, open vanilla route/applications/vanilla/views/categories/all.php

    after:

    <?php echo Anchor('More Discussions', '/categories/'.$Category->UrlCode, 'TabLink'); ?>

    <?php
    }
    }
    }
    ?>

    adsense code
  • selet 250x250 it will look awsome ;)
  • sorry, the instructions on top are to create ads after he disussions,

    Go to: vanilla route/applications/vanilla/views/modules/categories.php

    After:

    if ($this->_CategoryData !== FALSE) {
    foreach ($this->_CategoryData->Result() as $Category) {
    $CountDiscussions = $CountDiscussions + $Category->CountDiscussions;
    }
    ?>

    ads
  • RaizeRaize vancouver ✭✭
    it worked, thanks

    is this the best, most airtight way to do this?
  • Thank you, I was wondering how do you put the adsense code after the first comment in a discussion?

    Thanks :)
  • TimTim Operations Vanilla Staff
    We've got some cool tools coming in the near future that work similarly to Vanilla 1 Nuggets. That should make tasks like this much simpler.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Thank you
  • YEA! Go Tim
  • TimTim Operations Vanilla Staff
    Actually Todd is coding it so praise be to him :p

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Go @Todd !

    Nuggets was a great little addon. Very useful for many things.
  • Ok everyone.. I figured out how to put a add in the thread view.

    Go to applications->vanilla->views->discussion->index.php

    Find

    <?php
    $DiscussionName = Gdn_Format::Text($this->Discussion->Name);
    if ($DiscussionName == '')
    $DiscussionName = T('Blank Discussion Topic');

    echo $DiscussionName;
    ?>


    PUT ADSENSE CODE HERE, PREFERABLY 468x60
  • RaizeRaize vancouver ✭✭
    @Tim @Todd can't wait... nuggets was an awesome plugin for stuff like this
  • Have nuggets for 2.xxx been released?
  • I'd like to put 160x600 in the blank left "sidebar" of the default vanilla 2.xxx theme.
    Where should I put the code?
  • I picked Vanilla for a planned Adsense/Adbrite supported forum because of this feature - I've not implemented it yet, but it looks like Pockets will do the trick.
  • RaizeRaize vancouver ✭✭
    Pockets definitely makes everything a lot easier
  • you can put it by adding code into a message (from dashboard) to side panel...
  • necro plug

    grep is your friend.

  • ? You haven't used pockets yet @x00 ?

    There was an error rendering this rich post.

Sign In or Register to comment.