![]() |
Different headers on showthread for different rooms
i have this on one of my boards a few years ago with vb2 - ive had a look for it for vb3 but cant find anything
basically, the hack allows you to add different headers to each room you have - the main benefit being that you can sell advertising in all of the different rooms id love to be able to add this to a forum site im launching soon does anyone know if this hack has been done yet for vb3? :) |
So you mean if a thread is in forum x then it should display ad x, if the thread is in forum y it should display ad y?
Then you don't need a hack, you can do this with template conditionals. In template SHOWTHREAD put Code:
<if condition="$thread[forumid] == 12"> The template-code this hack uses for template FORUMDISPLAY also works in template SHOWTHREAD. |
oh right - i didnt realise you could do that with the template system - superb - thanks for that :)
|
If we create a table called t_ads with 2 columns:
ForumID = Integer AdCode = The code from our ad server When a user is browsing forum ID 22, how can we show the ad code FROM Adcode WHERE (ForumID =22) We'd like it to work for any forumID. The add code could be an IFrame, Javascript, or other code. |
There has been a hack released to add banners to the forum.
I think it could be easiliy modified for your needs. |
Where would I find the hack?
|
https://vborg.vbsupport.ru/showthread.php?t=61555
https://vborg.vbsupport.ru/showthread.php?t=65890 As far as I can see, the second hack does exactly what you want. |
All times are GMT. The time now is 11:12 AM. |
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:
|