The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
exclude forum in ad code
Can someone help me edit the code below to allow me to exclude certain forums? Like exclude forum id: 301.
Code:
<vb:if condition="$post['isfirstshown']"> <li class="firstpost_advert_container"><div class="firstpost_advert"> <script type="text/javascript"> google_ad_client = "ca-pub-6546546546546"; google_ad_slot = "6401555550"; google_ad_width = 728; google_ad_height = 90; </script> <!-- 728x90, created 8/7/09 --> <script type="text/javascript" src="//pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </li> </vb:if> |
#2
|
||||
|
||||
Code:
<vb:if condition="$forum[forumid] != x">Show this if forum id is not x</vb:if> Code:
<vb:if condition="!in_array($forum['forumid'], array(1,2,3))">Show this to all forums except forum 1, 2 and 3</vb:if> |
#3
|
||||
|
||||
Also here is the list of conditionals for vB4:
https://vborg.vbsupport.ru/showthread.php?t=231525 Then I noticed you're doing something with advertising in posts? You can also look at the template conditionals listed in post #2 here: https://vborg.vbsupport.ru/showpost....59&postcount=2 ^ There are more conditional examples in the mod's thread where I help some others out previously, even if you don't use my mod specifically (I need to update it regardless to be more modern etc) the template conditionals posted will give you better ideas on how to use them and hide/show/other code based on tons of conditionals that many don't even know you can use . Edit: This is a link from vbulletin.com as well with slightly older 3.x <if> conditionals, simply apply the new <vb:if> instead and they should work fine as well, basically the same thing you're trying to achieve was outline here long ago: http://www.vbulletin.com/forum/forum...google-adsense |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|