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

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:

xDebate.com

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!
 
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:

xDebate.com

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!


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

http://xenforo.com/community/resources/visual-list-of-ad-locations.1383/

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

http://xenforo.com/community/resources/conditional-statements.1604/
 
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).
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).
Code:
<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>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 
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:

xDebate.com

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!
  • Buy/Install XenForo
  • Install favorite Adsense plugin.
  • Configure plugin via your Admin control panel (ACP)
  • Presto!!
 
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.

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.

 
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 :)
 
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).
Code:
<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>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


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

yada yada yada

</xen:hook>

I do all my AdSense (and formerly Amazon ads) by editing the ad templates directly. It's not a big deal.
 
I think you'll want to move the close of the xen:hook to the bottom, i.e.
PHP:
<xen:hook name="ad_below_content">

yada yada yada

</xen:hook>

I do all my AdSense (and formerly Amazon ads) by editing the ad templates directly. It's not a big deal.
If you do, then the template edit does not apply in 1.2, you get a template compiler error.
 
???

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

PHP:
<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">
</form>
</div>
</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".
 
???

I've only changed one template in 1.2, which now looks like this:
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".
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:
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).
Code:
<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>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

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.

Code:
<xen:hook name="ad_above_top_breadcrumb" />
<xen:include template="ad_my_own_template" />
 
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.

Code:
<xen:hook name="ad_above_top_breadcrumb" />
<xen:include template="ad_my_own_template" />
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)
 
@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.
 
Top Bottom