Notices
Bugs / Feature Requests Archive This is a read only forum containing old policy topics.

Hiding options from orange navbar

 
Thread Tools
 
Search this Thread
 
Old 03 August 2007, 04:28 PM
  #1  
Markus
Scooby Regular
Thread Starter
 
Markus's Avatar
 
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes on 0 Posts
Default 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:

Code:
<if condition="$post['usergroupid'] == 6">
<a href="livefeed.php">Live Feed</a>
</if>
6 being the group id.

Last edited by Markus; 03 August 2007 at 04:31 PM.
Markus is offline  
Old 04 August 2007, 03:56 PM
  #2  
ex-webby
Orange Club
 
ex-webby's Avatar
 
Join Date: Oct 1998
Posts: 13,763
Likes: 0
Received 1 Like on 1 Post
Default

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
ex-webby is offline  
Old 07 August 2007, 02:35 PM
  #3  
Markus
Scooby Regular
Thread Starter
 
Markus's Avatar
 
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes on 0 Posts
Default

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.
Markus is offline  
 
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
SilverM3
ScoobyNet General
8
24 February 2021 01:03 PM
Frizzle-Dee
Essex Subaru Owners Club
13
01 December 2015 09:37 AM
Ganz1983
Subaru
5
02 October 2015 09:22 AM
johnnybon
Subaru Parts
13
29 September 2015 10:47 PM
Pro-Line Motorsport
Car Parts For Sale
2
29 September 2015 07:36 PM



Quick Reply: Hiding options from orange navbar



All times are GMT +1. The time now is 03:10 PM.