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^ Thu 1 May - 10:32

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


Last edited by J0k3R^ on Thu 1 May - 12:14; 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 Thu 1 May - 11:07

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^ Thu 1 May - 11:22

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 Thu 1 May - 11:27

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^ Thu 1 May - 11:30

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 Thu 1 May - 11:33

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 Thu 1 May - 15:42

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