View Full Version : 2 different postbit?
sammyman
Mon 14th Jun '04, 4:09am
Would it be possible to have different postbits in one category than the next? Or maybe to have legacy in one category, and the other one (not legacy) in the other category?
Zachery
Mon 14th Jun '04, 2:06pm
Yes, its more than possible with conditionals :)
sammyman
Mon 14th Jun '04, 9:50pm
REALLY!!!! How do you use conditionals? I want forum1 to have legacy and the rest to be the other way!!!! Tell me more PLEASE!
Steve Machol
Mon 14th Jun '04, 10:48pm
Do a search for 'template conditionals' on our documentation page:
http://www.vbulletin.com/docs/html/
sammyman
Mon 14th Jun '04, 11:22pm
That helps a lot but where would be the appropriate place to put the conditional?
sammyman
Tue 15th Jun '04, 1:03am
maybe the index.php file?
Steve Machol
Tue 15th Jun '04, 1:18am
Template conditionals go into the template your are editing.
sammyman
Tue 15th Jun '04, 1:28am
like the postbit templates? legacy etc? Thanks a lot! I will try it.
sammyman
Tue 15th Jun '04, 1:50am
Didn't work. Maybe FORUMDISPLAY
Elmer
Tue 15th Jun '04, 2:07am
Didn't work. Maybe FORUMDISPLAY
in the postbit template use something like
<if condition="$forum[forumid] == 1"> postbit code here <else /> the other postbit code here </if>
sammyman
Tue 15th Jun '04, 2:42am
Very good! However, when I try that it makes duplicates of each thread in both the postbit and postbit_legacy styles. Any ideas why?
Zachery
Tue 15th Jun '04, 2:57am
Paste your postbit template inside of the html tags and let us see
sammyman
Tue 15th Jun '04, 3:11am
If you mean:
<if condition="$forum[forumid] == 1"> <html> POSTBIT</html> <else /> <html> POSTBIT_LEGACY </html> </if>
That did the same thing. Double threads, each post printed in postbid and then postbit_legacy.
sammyman
Tue 15th Jun '04, 3:13am
I also tried
<html><if condition="$forum[forumid] == 1"> POSTBIT<else /> POSTBIT_LEGACY </if> </html>
but that did not work either. I feel very close.
Zachery
Tue 15th Jun '04, 11:18am
Can you pm me with an admin login so i can see this for myself?
Powered by vBulletin™ Version 4.0.0 Beta 4 Copyright © 2009 vBulletin Solutions, Inc. All rights