The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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? |
#2
|
||||
|
||||
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"> Ad for Forum ID 12 </if> <if condition="$thread[forumid] == 16"> Ad for Forum ID 16 </if> The template-code this hack uses for template FORUMDISPLAY also works in template SHOWTHREAD. |
#3
|
||||
|
||||
oh right - i didnt realise you could do that with the template system - superb - thanks for that
|
#4
|
|||
|
|||
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. |
#5
|
||||
|
||||
There has been a hack released to add banners to the forum.
I think it could be easiliy modified for your needs. |
#6
|
|||
|
|||
Where would I find the hack?
|
#7
|
||||
|
||||
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. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|