Hiding options from orange navbar
This is a very minor request, but it might possibly stop questions such as:
"Why can't I access the Calendar/Live Feed/New Posts options"
Would it be possible to edit the template and add some conditionals to hide the aforementioned options if you're not in a group that has access to those items.
Something along the lines of:
6 being the group id.
"Why can't I access the Calendar/Live Feed/New Posts options"
Would it be possible to edit the template and add some conditionals to hide the aforementioned options if you're not in a group that has access to those items.
Something along the lines of:
Code:
<if condition="$post['usergroupid'] == 6"> <a href="livefeed.php">Live Feed</a> </if>
Last edited by Markus; Aug 3, 2007 at 04:31 PM.
LOL
Markus, you crack me up
That code wouldn't work btw, it needs to be $bbuserinfo, not $post.
These code changes can complicate things when its time to upgrade to newer versions of vB so we try to keep them to a minimum.
Also, I think that in some cases it is important for people to be able to see that these features ARE available, and aren't just switched off for everyone.
What we are going to do, however, is make a more explanatory page rather than the standard "you don't have permission" page.
Cheers
Simon
Markus, you crack me up

That code wouldn't work btw, it needs to be $bbuserinfo, not $post.
These code changes can complicate things when its time to upgrade to newer versions of vB so we try to keep them to a minimum.
Also, I think that in some cases it is important for people to be able to see that these features ARE available, and aren't just switched off for everyone.
What we are going to do, however, is make a more explanatory page rather than the standard "you don't have permission" page.
Cheers
Simon
I just had a quick scan of some template conditionals web archive I had on the machine and didn't check too hard with regards to the actual conditional, sorry.
Good point about not hiding the things though, and a more explanatory message would probably be a better way to go.
Good point about not hiding the things though, and a more explanatory message would probably be a better way to go.
Thread
Thread Starter
Forum
Replies
Last Post
Pro-Line Motorsport
Car Parts For Sale
2
Sep 29, 2015 07:36 PM




