The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#32
|
||||
|
||||
ARGH I HATE SPACERS
cant make the ad post to show in the right place I ditched the spacers ($spacer_open $spacer_close) and used <br />s and all is fine. Thanks |
#33
|
||||
|
||||
How to make that it doesn't show for admins, mods, supa mods ?
|
#34
|
||||
|
||||
to make it show after the second post the right code is
$post[postcount] == 2 |
#35
|
||||
|
||||
Quote:
can you show the exact code ? |
#36
|
||||
|
||||
The problem I have is whenever I start adding Google Adsense to the postbit template, then the Multi-Quote and Quick Reply buttons cease working.
Is there a hack/module to do this that does not require editing the postbit template?? |
#37
|
||||
|
||||
Here's a revision of the code.
Code:
<!-- Google AdSense in Posts --> <if condition="THIS_SCRIPT == 'showthread' AND $post[postid] == $GLOBALS['qrlastpostid']"> <if condition="$show['spacer']"> </div> $spacer_close </if> <if condition="$show['spacer']"> $spacer_open <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px"> <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if> </if> <table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center"> <tr valign="top"> <td class="alt2" width="175"> <div id="postmenu_$post[postid]"> <if condition="$show['profile']"> <span class="bigusername">Propaganda</span> <else /> Propaganda </if> <br><br><script type="text/javascript"><!-- google_ad_client = "YOUR ADSENSE ID HERE!"; google_ad_width = 125; google_ad_height = 125; google_ad_format = "125x125_as_rimg"; google_cpa_choice = "CAAQtIHDmwIaCDbdURNUSIZ3KJDquosB"; google_ad_channel = ""; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </td> <if condition="$show['moderated']"> <td class="alt2" id=""> <else /> <td class="alt1" id=""> </if> <if condition="$show['messageicon'] OR $post['title']"> <div class="smallfont"> <if condition="$post['title']"><strong>Sponsored links</strong></if> </div> <hr size="1" style="color:$stylevar[tborder_bgcolor]" /> </if> <!-- message --> <div id="post_message_$post[postid]"> <div align="left"> <script type="text/javascript"><!-- google_ad_client = "YOUR ADSENSE ID HERE!"; google_ad_width = 300; google_ad_height = 250; google_ad_format = "300x250_as"; google_ad_type = "text_image"; google_ad_channel = "6284652722"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </div> <!-- / message --> </td> </tr> </table> <!-- / post $post[postid] popup menu --> </if> <!-- / Google AdSense in Posts --> $post[postid] == $GLOBALS['qrlastpostid'] use $post[postcount] == 2 Change the number for other posts. |
#38
|
||||
|
||||
if you just want to make a couple big adsense squares halfway down the page do this
Code:
<center> <!-- START ADSENSE REVENUE --> <if condition="THIS_SCRIPT == 'showthread'AND $post[postcount] == 10 AND (!in_array($forum[forumid], array())) AND (!$show[member])"> <script type="text/javascript"><!-- google_ad_client = "your pub id"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "333333"; google_color_bg = "333333"; google_color_link = "FFFFFF"; google_color_text = "FFFFFF"; google_color_url = "FFFFFF"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <script type="text/javascript"><!-- google_ad_client = "your pub id"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "333333"; google_color_bg = "333333"; google_color_link = "FFFFFF"; google_color_text = "FFFFFF"; google_color_url = "FFFFFF"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </if> </center> |
#39
|
|||
|
|||
is it really good?
i mean to increase the revenue |
#40
|
||||
|
||||
I've tried this in 3.6.4 and it doesn't show up??
|
#41
|
|||
|
|||
can i add it inside the first post .
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|