View Full Version : Hide new thread buttons
Graham
11-13-2004, 10:37 AM
Hi,
What code would I add and to which template do I edit to hide new thread and reply buttons if a member is not logged in?
Colin F
11-13-2004, 12:04 PM
You'd have to add a template conditional around the code for the button.
<if condition="$bbuserinfo[userid] == 0">code for button</if>
you'd have to add that in the showthread and forumdisplay templates probably...
Zachery
11-13-2004, 12:21 PM
You'd have to add a template conditional around the code for the button.
<if condition="$bbuserinfo[userid] == 0">code for button</if>
you'd have to add that in the showthread and forumdisplay templates probably...
That would only show the button to logged out users colin :)
<if condition="$bbuserinfo[userid] != 0">code for button</if>
That will work
Colin F
11-13-2004, 12:41 PM
That would only show the button to logged out users colin :)
<if condition="$bbuserinfo[userid] != 0">code for button</if>
That will work
Of course... kind of tired probably... excuse me ;)
Zachery
11-13-2004, 12:44 PM
Of course... kind of tired probably... excuse me ;)
I've made the mistake before Colin, been working with the conditionals since beta 3, forever and a day ago :D
Graham
11-13-2004, 04:52 PM
Thanks for the help, i´ll give it ago......
Graham
11-13-2004, 05:45 PM
Cool! Took me 40 mins to work that out, not bad for a newbie!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.