The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Static banner in certain forum
I want to put a static banner in one of my forums which is sponsored. What the simplest way I can go about doing this, the forumid is 19. I would like it so when users are browsing that forum, they see a static banner on the top.
I am familiar with this hack, but its not what I need. https://vborg.vbsupport.ru/showthrea...threadid=26818 |
#2
|
||||
|
||||
in forumdisplay.php, insert
PHP Code:
PHP Code:
Then you can use variable $mycustombanner inside forumdisplay template whereever you like. |
#3
|
||||
|
||||
Thanks alot, how would I go about placing it right above the 'threads list" above where it says "Thread Starter".
|
#4
|
||||
|
||||
It's forumdisplay/forumdisplay template.. Try to find the relevant place you would find the banner nicely fit. For example, you may like to put it before:
PHP Code:
|
#5
|
|||
|
|||
Quote:
i'd create 2 specific templates to match the needs of the two sponsors, but not clear on how to specify that i need 1,2,3 to be one template and 4 to be another |
#6
|
||||
|
||||
PHP Code:
|
#7
|
|||
|
|||
How cand I do so a banner for a category, can be seen in all threads from that category ?
|
#8
|
||||
|
||||
Quote:
I really would love to find out how to do this as I have just changed my whole VB look and need to sort out the banners.... I don?t really want to put messy banners on my front page this hack would work a real treat on our site....... Any help would be much appreciated indeed. XrayHeaD :ermm: |
#9
|
||||
|
||||
PHP Code:
I have created two custom templates, one called mycustombanner_LPS and the other called mycustombanner_WWP. Now I want to show mycustombanner_WWP in forum ID's 49, 50 and 51 and mycustombanner_LPS in forum ID's 1, 22, 23, 25 and 27. And then add mycustombanner_OJI to forum ID's 60, 62, 63, 65 and 67. Can you please tell me if I have altered the above code correctly? Thank you.......... XrayheaD |
#10
|
||||
|
||||
Just to let you all know that the above code works a treat.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|