1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

vBulletin Support Response: this is due to a bug. temporary work-around for now.

Discussion in 'XenForo Pre-Sales Questions' started by ViciousGnome, Jul 9, 2013.

  1. ViciousGnome

    ViciousGnome Active Member

    KISS - Keep It Simple Stupid

    Long time user of vBulletin. Had a license. Upgraded license to version 5.0.3.

    vBulletin 5.0.3 = Buggy
    Manual = SUCKS BIG TIME
    Support = Incompetent and rude (told me to edit wrong file, which crashed my site)

    I want to convince my partner to switch to XenForo, so, in 15 minutes, I created a "mock" version of our site:


    He is going to ask about our Adsense and how to put our ads on the site if we use XenForo. How do I do this? I have searched, and well folks, while I am not a total newb, I am also not a programmer (I'm a cop). Who can give me the simplest instructions on how I can add Adsense code to my XenForo forums? As I am actually the webmaster of our site, if I say we switch to XenForo, we switch to XenForo. How do I put the ads on my demo forum?

    Thank you, and please help me to scream, in my loudest outside voice, F vBulletin!
  2. Russ

    Russ Well-Known Member

    You can use the built in ad_templates that XenForo ships with, here's a visual of them:


    You can also wrap the ads in conditionals if you want to show to guests/certain groups ect:

  3. evilmaniac

    evilmaniac Member

    The simplest way to do it would be to install an AddOn. The harder way to do it would be to edit your templates through the AdminCP and integrate the Ads through there. Since I don't use AdSense someone else will have to explain how to do it @_@

    Also, if you have the time please add your input about vBulletin @ http://www.webhostingtalk.com/showthread.php?t=1246155
  4. Tracy Perry

    Tracy Perry Well-Known Member

    Placing Adsense ads is VERY easy to do - especially in 1.2 with the built in template modifications.
    And I'm no programmer either - more a hardware/OS geek (14.5 yrs LEO and enough remainder years to retire in IT with a city). There are plenty of examples in xenForo's support forum to indicate what needs to be done, and if you get stuck there are plenty of folks willing to help out.

    Using the TMS this is how I do it (and not going to promise it's right, but it works and it also scales for responsive - and this is just the replacement segment -not the search).
    <xen:hook name="ad_below_content" />
    <p id ="adsense_ad">
    <script type="text/javascript">
        google_ad_client = "ca-pub-xxxxxxxxxxxxxxxxx";
        width = document.documentElement.clientWidth;
        google_ad_slot = "123412341234";
        google_ad_width = 320;
        google_ad_height = 50;
            if (width > 500) {
            google_ad_slot = "567856785678";
            google_ad_width = 468;
            google_ad_height = 60;
        if (width > 1050) {
            google_ad_slot = "901290129012";
            google_ad_width = 728;
          google_ad_height = 90;
    <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  5. FredC

    FredC Well-Known Member

    • Buy/Install XenForo
    • Install favorite Adsense plugin.
    • Configure plugin via your Admin control panel (ACP)
    • Presto!!
  6. ViciousGnome

    ViciousGnome Active Member

    Wow. I'm talking to my partner and I do believe we are switching over to XenForo. You folks are great! Thank you for all your help.
    TsuChi and Walter like this.
  7. Liam W

    Liam W Well-Known Member

  8. ActionMC

    ActionMC New Member

    Im in the same boat as you. i too need to convince a partner to go with xenForo and ditch vB. If you succeed lemme know as my partner is pretty stubborn.
  9. ViciousGnome

    ViciousGnome Active Member

    LOL. Well, at the end of the day, MY partner just contributes to half the cost, but I do all the work. If I want to work with XenForo, then that's what we go with. Or, he can always do the work! :p

    Here is the deal. I believe that vBulletin 5.0.3 is excellent (although buggy) software. It offers a multitude of features that.... I really don't need. Xenoforo is easy to use, reliable, and seems to offer all that I need. With a fast, courteous, and informative support system in place. I ran a forum based website a while back, and I had a programmer who did work for me. We remained in contact, and he is a fair, competent, and respected authority on forum software (in my eyes). He directed me to Xenoforo, and this was his message to me:

    "You may want to think about another piece of forum software. You will eventually want a sexy custom look and last I checked, which was probably a year ago, vBulletin5 makes it basically as difficult as possible. Xenforo.com is run by the original developers of vBulletin after it was bought out by a crap company. IPB (InvisionPower) has always been decent but perhaps a little slow in evolving intelligently, and Vanilla forums are a stylish different-way-to-do-forums. IMHO, XenoForo is the way to go."

    I should have listened to him. Now I'm out $209 for the upgrade, and it looks like I'm spending another $140 for XenoForo.

  10. Slavik

    Slavik XenForo Moderator Staff Member

    Hi Guys,

    At the fear of sounding a little draconian (holy crap did slavik just say that!? must be the hot weather), some comments on verging on vB bashing, and we don't allow any bashing of competitors here.

    All I can say however is welcome, you won't regret moving to XenForo :)
    ActionMC likes this.
  11. ViciousGnome

    ViciousGnome Active Member

    This must be because you stand by your product. Such a novel thought. I do believe I am sold. Thank you sir. ;)
    ActionMC likes this.
  12. MikeMpls

    MikeMpls Well-Known Member

    I think you'll want to move the close of the xen:hook to the bottom, i.e.
    <xen:hook name="ad_below_content">

    yada yada yada

    I do all my AdSense (and formerly Amazon ads) by editing the ad templates directly. It's not a big deal.
  13. Tracy Perry

    Tracy Perry Well-Known Member

    If you do, then the template edit does not apply in 1.2, you get a template compiler error.
  14. MikeMpls

    MikeMpls Well-Known Member


    I've only changed one template in 1.2, which now looks like this:

    <xen:hook name="ad_sidebar_below_visitor_panel"> <!-- close removed from this tag -->

    div style="text-align:center">
    p>Please consider supporting this site with a $5.00 donation through PayPal.<br />&nbsp</>
    form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    input type="hidden" name="cmd" value="_donations">
    input type="hidden" name="business" value="admin@checkpointforums.org">
    input type="hidden" name="lc" value="US">
    input type="hidden" name="item_name" value="Checkpoint Forums:  Resisting Tyranny in America">
    input type="hidden" name="amount" value="5.00">
    input type="hidden" name="currency_code" value="USD">
    input type="hidden" name="no_note" value="0">
    input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
    input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    xen:hook> <!-- closing tag -->
    Moving the close to the bottom (as you would expect for any HTML tag that spans other contents) did not yield a "template compiler error".
  15. Tracy Perry

    Tracy Perry Well-Known Member

    That's what happens when you look at something after being up 30+ hours. I had forgotten to remove the closing "/" from the top statement. :whistle:
    Move along --- nothing to see here but someone admitting to being blind -- move along - nothing to see here.:rolleyes:
    Last edited: Jul 11, 2013
    Jeremy likes this.
  16. dbembibre

    dbembibre Active Member

    I do this in a more easy way :D i create my own templete with the adsense code.
    Later insert the template in the ad_ templates that you want, if tomorrow you need to change anything, only need to touch in a single template.

    <xen:hook name="ad_above_top_breadcrumb" />
    <xen:include template="ad_my_own_template" />
  17. Alex - A2Hosting

    Alex - A2Hosting Active Member

    Looks like your forum is running XenForo now :).

    One suggestion with the header ad is to center it to make it look more appealing / "fitting"

    Good luck with your forum!
  18. Tracy Perry

    Tracy Perry Well-Known Member

    Problem with doing that is if you serve ads both top and bottom and point them at the same add, can't Google ding you?
    Since I only use Adsense Ads this works for serving the ones I have defined there as footer, header and message (and three different sizes of each)
  19. dbembibre

    dbembibre Active Member

    @Tracy Perry, you are correct if you serving ads in diferent sizes this dont work. With respect to use same code in bottom and top, i use in this way from 2006 and never have any problem with google. I see in my panel as two diferent actives ads.

Share This Page