The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Navbar Customization - Display Ad on Homepage Only
I've given up on using the weighting system trying to figure out how to make this happen... so I need some help. In VB3, I used the following code to implement an ad in the navbar that displayed an AD only on the homepage.
Need help converting it to VB4 and where to place it. Code:
<if condition="THIS_SCRIPT == 'index'"> <!-- / ADS BEGIN --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" width="100%">INTERCOT Sponsors</td> </tr> <tr> <td class="alt1" width="100%"> THE AD CODE GOES HERE </td> </tr> </table> <!-- / ADS END --> </if> JOHN |
#2
|
|||
|
|||
Anyone have any idea how to accomplish this on vb4? Would really appreciate the help.
|
#3
|
|||
|
|||
Now I've moved into begging mode? Anyone? Anyone? Bueller?
|
#4
|
||||
|
||||
Use the ad manager in admincp and choose the location you want to have the ad code appear and then put it the code that went where you have "the ad code goes here" in that location.
|
Благодарность от: | ||
Levelbest |
#5
|
||||
|
||||
Quote:
But, in your code, the if needs to be vb:if Code:
<vb:if condition="THIS_SCRIPT == 'index'"> <!-- / ADS BEGIN --> <table class="tborder" cellpadding="{vb:stylevar cellpadding}" cellspacing="{vb:stylevar cellspacing}" border="0" width="100%" align="center"> <tr> <td class="tcat" width="100%">INTERCOT Sponsors</td> </tr> <tr> <td class="alt1" width="100%"> THE AD CODE GOES HERE </td> </tr> </table> <!-- / ADS END --> </vb:if> |
Благодарность от: | ||
Levelbest |
#6
|
|||
|
|||
Thanks folks... Will give it a shot this afternoon.
--------------- Added [DATE]1447440667[/DATE] at [TIME]1447440667[/TIME] --------------- Let me just say - you guys are awesome. And the solution is elegant in it's simplicity and execution. Can't thank you enough! |
Благодарность от: | ||
Dragonsys |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|