The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi, basically, i have a section in my forum that is called "News headlines"
When they click on it, it will normally bring them to see the forum with threads, posts, etc. Instead, I want: When they click on it, it will bring them to a forum that does NOT have threads, and they will not be able to post. Rather, it will show my custom content. I have included an image for better explanation. |
#2
|
|||
|
|||
![]()
In the FORUMDISPLAY template, find $threadbits, and put a conditional around it, like this:
HTML Code:
<if condition="!$foruminfo[forumid] == X"> $threadbits <else /> YOUR_CODE </if> |
#3
|
|||
|
|||
![]()
hm, i got the condition working by using:
PHP Code:
|
#4
|
|||
|
|||
![]()
Hmm, thats a php condition, that shouldn't work in templates :/
|
#5
|
|||
|
|||
![]()
Maybe you should finish your idea before you try to code it? :/
|
#6
|
|||
|
|||
![]()
oh forum display TEMPLATE, lol i was editting the file forumdisplay.php
Ah, ok got it, that was easy. I was just editting the wrong file lol. Thanks! |
#7
|
|||
|
|||
![]()
Hehe, no problem
![]() |
#8
|
|||
|
|||
![]()
oh btw your code doesnt work, it shows my code on every forum!
|
#9
|
|||
|
|||
![]()
Try replacing foruminfo[forumid] with forum[forumid].
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|