View Full Version : Change entire forum section to display custom content rather then threads
renderstream
04-02-2005, 02:45 PM
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.
Deaths
04-02-2005, 02:53 PM
In the FORUMDISPLAY template, find $threadbits, and put a conditional around it, like this:
<if condition="!$foruminfo[forumid] == X">
$threadbits
<else />
YOUR_CODE
</if>
Replace X with the forumid of the news headlines forum.
renderstream
04-02-2005, 03:10 PM
hm, i got the condition working by using:
if($foruminfo[forumid] == 29){
//mycode here
}else{
$threadbits = '';
}
Bur i am not sure what to put as my code. I want to stop it from displaying threads, and basically have some text.
Deaths
04-02-2005, 03:19 PM
Hmm, thats a php condition, that shouldn't work in templates :/
noppid
04-02-2005, 03:23 PM
Maybe you should finish your idea before you try to code it? :/
renderstream
04-02-2005, 03:30 PM
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!
Deaths
04-02-2005, 03:36 PM
Hehe, no problem :)
renderstream
04-02-2005, 09:48 PM
oh btw your code doesnt work, it shows my code on every forum!
Deaths
04-03-2005, 07:59 AM
Try replacing foruminfo[forumid] with forum[forumid].
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.