![]() |
Forum Sponsor
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.
|
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 |
great, I'll give that a try.
|
I tried adding that, but nothing is showing up :(
|
What template did you put the code in? Can you paste in the exact code you used?
|
I put it in the FORUMDISPLAY template at the bottom.
Code:
{vb:raw footer} |
Quote:
Well that is definitely the right code- can you give a link to a forum page this should be working on? |
<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. |
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.
|
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?
|
Out of curiosity change == to != (does not equal) and see what happens...
I've never heard of a cache issue doing this, You may want to ask about this in the VB4 general discussion forum here, likely to have more people browsing than this forum. |
just wanted to update with a solution.
It should be $foruminfo not $forum: Code:
<vb:if condition="$foruminfo[forumid] == 40"> |
Great :up:
|
All times are GMT. The time now is 01:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|