The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I Remove ad after first postbit
Right now I have each forum set up so that there's a banner ad below the first post on each thread. How do I keep this from happening in one specific forum, without affecting the others?
Can anyone help? |
#2
|
||||
|
||||
Try wrapping the whole adsense code block with this:
Code:
<if condition="$forum[forumid] != XX">ADSENSE CODE</if> |
#3
|
|||
|
|||
That seems like a great solution! I'm just not sure about where to put the code. Here's what I have. Maybe you can tell me where to put it? Thanks!
Code:
</div> <!-- / post $post[postid] popup menu --> <if condition="$show['spacer']"> </div> $spacer_close </if> <!-- / post #$post[postid] --> <if condition="$post[postcount] % $vboptions[maxposts] == 1"> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">Sponsored Links</td> </tr> <tr> <td class="alt1" align="center"> <script type="text/javascript"><!-- google_ad_client = "NUMBER HERE"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "F4F4FF"; google_color_link = "4B548B"; google_color_text = "000000"; google_color_url = "4B548B"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> </div> $spacer_close </if> |
#4
|
||||
|
||||
Code:
</div> <!-- / post $post[postid] popup menu --> <if condition="$show['spacer']"> </div> $spacer_close </if> <!-- / post #$post[postid] --> <if condition="$post[postcount] % $vboptions[maxposts] == 1"> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <if condition="$forum[forumid] != XX"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">Sponsored Links</td> </tr> <tr> <td class="alt1" align="center"> <script type="text/javascript"><!-- google_ad_client = "NUMBER HERE"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "F4F4FF"; google_color_link = "4B548B"; google_color_text = "000000"; google_color_url = "4B548B"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> </if> </div> $spacer_close </if> |
#5
|
|||
|
|||
Now that's a puzzle. I copied your code EXACTLY (and I was sure to replace the XX with the forum name) and it didn't work. Any thoughts? Greatly appreciate your help. This is driving me nuts!
|
#6
|
||||
|
||||
You're sure you entered the right forum id? Because it worked on my test board.
|
#7
|
|||
|
|||
you need to use the forumid number, not the forum name. For example, this forum that we are in now is forumid=97
|
#8
|
|||
|
|||
Yep. The forum ID is "Ask The Expert," so I entered the following:
Ask_The_Expert Here's the code I used: Code:
</div> $spacer_close </if> <!-- / post #$post[postid] --> <if condition="$post[postcount] % $vboptions[maxposts] == 1"> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <if condition="$forum[forumid] != Ask_The_Expert"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">Sponsored Links</td> </tr> <tr> <td class="alt1" align="center"> <script type="text/javascript"><!-- google_ad_client = "NUMBER HERE"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "F4F4FF"; google_color_link = "4B548B"; google_color_text = "000000"; google_color_url = "4B548B"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> </if> </div> $spacer_close </if> |
#9
|
|||
|
|||
The forumid is a number.
hover your mouse over the forum title and the url will have a number in it. eg, hovering your mouse over the text vbulletin discussions in the navbar here will display a url ending in 97 that number is what you need to place in there, NOT the forum name. |
#10
|
|||
|
|||
Also, this code is more accurate, and won't give you grief later.
Code:
</div> $spacer_close </if> <!-- / post #$post[postid] --> <if condition="$post[postcount] % $vboptions[maxposts] == 1"> <if condition="$forum[forumid] != Ask_The_Expert"> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">Sponsored Links</td> </tr> <tr> <td class="alt1" align="center"> <script type="text/javascript"><!-- google_ad_client = "NUMBER HERE"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "F4F4FF"; google_color_link = "4B548B"; google_color_text = "000000"; google_color_url = "4B548B"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> </div> $spacer_close </if> </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|