Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Edit Profile page tabs (tab Auth)
Avatar
B E Thrower
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2012 - 8:04 am

Hi, 

 

I would like to display set tabs in the edit profile page based on the users permission / group and have navigated to the profile section in the admin area and can see when opening up the tabs they have a tab auth section.

do i use this to set which users can use it if so how as I can't find any clear instruction? 

Any help would be much appriciated.

Cheers

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 16, 2012 - 8:51 am

I am not really understanding what you mean I am afraid. What do you mean by 'set tabs'. Actually perhaps you could explain in more detail the whole request...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 16, 2012 - 10:36 pm

you can use the auth section of forum - profile - tabs and menus to control access to a tab or menu...  you cannot directly do it by users though as its an auth (permission)...  so you would put in there an existing permission (see forum - permissions - manage permissions) to see your current list...  take a look at the signature menu under profile and you will see it already checks the auth for using signatures...

I suspect that wont give you what you want so you would need to use the permissions api to create a new permission... thus you could create a permission for each menu and or tab and then only grant that permission to specific usergroups that you want to be able to access that menu or tab...

a new permission is easily created by using calling the create auth function...  here is its prototype:

function sp_add_auth($name, $desc, $active=1, $ignored=0, $enabling=0)

you could do that in your sp theme spFunctions.php template file...

I have thought about adding a create permission api in the admin, but its not there now...

Avatar
B E Thrower
Member
Free Members
sp_UserOfflineSmall Offline
May 17, 2012 - 8:05 am

Thanks for the info it's what I was looking for and sort of expected. sorry the question wasn't that clear.

 

Cheers

 

Ben

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 17, 2012 - 8:54 am

Glad to see Steve was able to help you.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626