The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I want to add a text ad either at the bottom (preferably) or top of a specific forum. I can't seem to find any mod that can do this. Does anyone know of one that can do this.
|
|
#2
|
||||
|
||||
|
I don't know of a mod but you can edit the forumdisplay template and add a conditional to display text or any HTML code in just a specific forum...
<vb:if condition="$forum[forumid] == X"> HTML Code Here </vb:if> Where X is the forum id of a specific forum. For other conditionals see this article: https://vborg.vbsupport.ru/showthread.php?t=231525 |
|
#3
|
|||
|
|||
|
great, I'll give that a try.
|
|
#4
|
|||
|
|||
|
I tried adding that, but nothing is showing up
|
|
#5
|
||||
|
||||
|
What template did you put the code in? Can you paste in the exact code you used?
|
|
#6
|
|||
|
|||
|
I put it in the FORUMDISPLAY template at the bottom.
Code:
{vb:raw footer}
<vb:if condition="$forum[forumid] == 40">
HTML Code Here
</vb:if>
</body>
</html>
|
|
#7
|
||||
|
||||
|
Quote:
Well that is definitely the right code- can you give a link to a forum page this should be working on? |
|
#8
|
|||
|
|||
|
<a href="http://vbforums.mmobay.net/aion-buy-sell-trade/" target="_blank">http://vbforums.mmobay.net/aion-buy-sell-trade/</a>
I got the forum ID number from the Manage Forum page in admin. |
|
#9
|
||||
|
||||
|
I'm stumped... I confirmed 40 is your correct forumid... That should be working, I imagine your other conditionals must be working b/c your site looks like it is working. Maybe try moving the code to another part of the page just to see what happens.
|
|
#10
|
|||
|
|||
|
i tried putting it in other spots, above the footer, at the top of the template, but nothing. I don't even see the code in the source code when I view the page. Can this be a cacheing issue of some sorts?
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|