The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Signatures only for Mods & Admins

3 posters

Go down

Solved Signatures only for Mods & Admins

Post by J0k3R^ May 1st 2014, 12:32 pm

Hi,
what js code to use to make the signatures available only for mods and admins?
thanks  :rose:


Last edited by J0k3R^ on May 1st 2014, 2:14 pm; edited 1 time in total
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Signatures only for Mods & Admins

Post by RadioHead May 1st 2014, 1:07 pm

Hi,

It is not a JS Code, please review the options in the admin panel Wink

Admin panel >> Users & Groups > User Options > Signature Permissions.


RH.
RadioHead
RadioHead
Forumember

Posts : 336
Reputation : 23
Language : English (der?)

Back to top Go down

Solved Re: Signatures only for Mods & Admins

Post by J0k3R^ May 1st 2014, 1:22 pm

oh thanks, i didnt notice this, i thought its something about 
Code:
if (_userdata.user_level == 1) {

but nvm..


*Solved*
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Signatures only for Mods & Admins

Post by RadioHead May 1st 2014, 1:27 pm

Yes, that is the installed coding that works with the usergroups that you select via the admin panel.

You can do it via coding however requires constant updating when you want a new user to add in and requires a little bit of time to test on regards to getting the specific user code linking right.
RadioHead
RadioHead
Forumember

Posts : 336
Reputation : 23
Language : English (der?)

Back to top Go down

Solved Re: Signatures only for Mods & Admins

Post by J0k3R^ May 1st 2014, 1:30 pm

there are 3 levels and each number affect only to what is written there Smile 

_userdata.user_level = 0 : guests / members
_userdata.user_level = 1 : administrators
_userdata.user_level = 2 : moderators

thats what i meant Smile
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Signatures only for Mods & Admins

Post by RadioHead May 1st 2014, 1:33 pm

You are correct, however there is more to the code then just a power user, as you can see, a non-power user (ie non-moderator) can use signatures via this locked method if he is given his own group and added to the permitted group Wink
Just like you, or I can be permitted signatures here, yet were not able to moderate Wink
RadioHead
RadioHead
Forumember

Posts : 336
Reputation : 23
Language : English (der?)

Back to top Go down

Solved Re: Signatures only for Mods & Admins

Post by Ange Tuteur May 1st 2014, 5:42 pm

Thanks to a discreet update, _userdata can be used regardless if the toolbar is activated however, the toolbar still provides more user and board information when activated. Wink

Topic solved and archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum