This is a discussion on vBulletin Google Adsense Deep Integration Tutorial within the Ad Networks forums, part of the Monetizing category; Originally Posted by NeutralizeR It should. Make sure you have enough threads in that forum or try viewing other forums. ...
Question 1:
I have post icons disabled on some of my forums, the code provided above wont work properly for these forums, can you please help me here ?
(For displaying advertisements on forumdisplay pages, begining of showthreads and end of showthreads.
Question 2:
How can i display google ads, in between threads, like this image:
http://img109.imageshack.us/img109/7800/snap68am.gif
Ad no. 2 in above image.
Question 3:
How can i integrate advertisements in square boxes on showthread pages, in first post like this example:
http://img119.imageshack.us/img119/2517/snap21ew.th.gif
Thank You for your time and great tutorial![]()
For Questions 1 & 2:
You should use if conditionals for those forums which don't have post icons enabled.
Not tested, but should work...<tr>
<td align="center" class="alt1">-</td>
<if condition="in_array($forumid, array(2, 3, 4, 5, 6))"><else />
<td align="center" class="alt2">-</td></if>
<td class="alt1">
<div>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "22229C";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td>
<td class="alt2 smallfont" align="center">Sponsored Links</td>
<td class="alt1" align="center">-</td>
<td class="alt2" align="center">-</td>
<if condition="$show['inlinemod']"><td class="alt1" align="center">-</td></if>
</tr>
For Question 3:
Open your postbit (postbit_legacy) template and find $post[message].
Add before $post[message]:
Give a try<div>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "22229C";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "youradsensecode";
google_alternate_ad_url = "http://www.yourwebsite.com/collapsible_ad.html";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel ="yourchannelcode";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "22229C";
google_color_url = "000000";
google_color_text = "22229C";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>![]()
you are the man, works awesome, awaiting results now.
thank you once again
I just upgraded to 3.6.5 and this code isn't showing the ad on the last post anymore. How can we get it to show up in the last post now?<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
Try this one:
<if condition="(($post[postcount]==1) or ($post[islastshown])">
Nope...didn't work for me :(
try thisCode:<if condition="(($post[postcount]==1) or ($post[islastshown]))">
Mert Gökçeimam / Crawlability Inc.
vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!
Twitter:@Depkac
Personal Blog : Mert Gökçeimam
It's the same thing is it not? He forgot the last ")" but I added it anyways.
Well...looks like the ads are showing up now...but there has to be multiple pages for it to show up on the last post. Sorry if that was the intention...but I could have sworn that if there were 15 posts, there would be an ad on the 1st and 15th post.
Last edited by jbartle; 03-02-2007 at 12:54 PM.
anything wrong with placing the google ads in the Header and Footer templates ? thats where I have mine.
^^ The reason I asked above is because my page views stats seem to be much higher then the views registered with AdSense.
Not sure if placing it in another template will result in more registered Adsense views.
btw, sorry for the double post.
The page views stats are higher than adsense b/c people have AdBlock. I've noticed the same...most of my frequent users use adblock so I lose a lot of page impressions.
If you are going to have an ad in the header and footer...at least remove the footer. That way your header ad will always have the highest bidder and most of the time no one will click the footer ads.
Hi,
excelent post ! i think this is realy "deep integration"
so, what about this one : i how can i do that ?
http://www.dayza.com/images/7653heradsense.GIF
Last edited by rinka128; 05-16-2007 at 07:38 PM.
Hello,
I'm looking for this kind of adsense integration into my forums:
http://images20.fotosik.pl/259/366f428bb016eb46med.png
Anyone can give me a hand setting this up?
Thanks