The Arcive of vBulletin Modifications Site. |
|
Add Advertising after first post - Postbit Alteration Details »»
|
|||||||||||||||||||||||||||
|
Add Advertising after first post - Postbit Alteration
Developer Last Online: Feb 2016
go into your postbit or postbit_legacy template and add this to the END of the template:
Code:
<if condition="!$GLOBALS['FIRSTPOSTID']">
<br>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
Sponsored Links
</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxx";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="xxxxxxx";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</td>
</tr>
</table>
</if>
This is the standard code without ads inside. Code:
<if condition="!$GLOBALS['FIRSTPOSTID']">
<br>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
Sponsored Links
</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
<center>
------PLACE AD CODE HERE------
</center>
</td>
</tr>
</table>
</if>
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Hi, thanks for this one!
*installed* |
|
#3
|
|||
|
|||
|
does quick reply work with this?
|
|
#4
|
|||
|
|||
|
How Can I make this only appear for guests?
|
|
#5
|
|||
|
|||
|
Quote:
@Gotti And for add advertising before last post? |
|
#6
|
|||
|
|||
|
Yea i also want to know how to add advert after/before last post ?
|
|
#7
|
|||
|
|||
|
I had to disable this for all users as it conflicts with a quick reply issue ..
http://www.vbulletin.com/forum/showt...ply+page+white But enabling for GUESTS only makes it all better... Just in case anyone else is having this issue.. its an FF issue.. not noticed in IE. |
|
#8
|
|||
|
|||
|
Quick Reply Issue FiX:
HTML Code:
<if condition="(!$GLOBALS['FIRSTPOSTID'] and !$GLOBALS['vbulletin']->GPC['ajax'])">
|
|
#9
|
|||
|
|||
|
quick question .. is it possible to set by FORUM ID where the ads should show up? similar to restricting it to certain usergroups, what if an array of forum ids equal that then dont show the ads ..
possible or too much to ask? |
|
#10
|
|||
|
|||
|
thank you
|
![]() |
|
|