View Full Version : Adsense inside first post text (aligned right)
GiaNNi
02-01-2007, 09:25 PM
Id like to do something like this:
forrie
02-02-2007, 09:36 AM
count me in on that too i like that idea
Neutral Singh
02-02-2007, 10:42 AM
me too for a long time.
Try this-
In postbit search:
<!-- message -->
after add:
<span style="float: right;"><if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))">
===YOUR AD CODE===
</if></span>
Above code will display adverts in first post and in last post
If you want advert in 1st post only, try this:
<span style="float: right;"><if condition="(($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
===YOUR AD CODE===
</if></span>
Demo: http://img239.imageshack.us/img239/8869/sssl0.gif
Enjoy :rolleyes:
GiaNNi
02-02-2007, 03:03 PM
Thanks, im trying to insert it ;)
What is !$GLOBALS['vbulletin']->GPC['ajax'] for?
Smitty
04-18-2007, 09:46 AM
I tried this and I get an ad in the first post in the first page of a thread and in the last post in every page of a thread.
I'm looking for a way to get an ad to show in the first post on every page AND the last post on every page.
Any ideas?
Edit Add: I've got <!-- Start AdSense Google within post message -->
<if condition="(($post[postcount] % $vboptions[maxposts] == 1) or ($post))">
<span style="margin: 2px; float: right; width: 301px; height: 251px;">
GOOGLE ADSENSE CODE HERE
</span>
</if>
<div id="post_message_$post[postid]">$post[message]</div>
<!-- End AdSense Google within post message --> to work, but if someone uses the 'quick edit' on a post with adsense in it (first or last post in a thread), the ajax of Quick Edit kicks in but the google ad that is there is superimposed over part of the editing box....
Thanks, im trying to insert it ;)
What is [I]!$GLOBALS['vbulletin']->GPC['ajax'] for?
I echo this question.
Keloran
10-22-2007, 01:17 PM
i think its to stop, if your the person who when posts on quick reply, is the post on the next page, then it will only show hte advert
i think that stops it, testing to find out
unitedpunjab
11-21-2007, 07:54 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=140664" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=140664</a>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.