The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Signatures only for Mods & Admins

View previous topic View next topic Go down

Solved Signatures only for Mods & Admins

Post by J0k3R^ on 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^
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 on 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
Forumember

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

Back to top Go down

Solved Re: Signatures only for Mods & Admins

Post by J0k3R^ on 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^
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 on 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
Forumember

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

Back to top Go down

Solved Re: Signatures only for Mods & Admins

Post by J0k3R^ on 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^
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 on 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
Forumember

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

Back to top Go down

Solved Re: Signatures only for Mods & Admins

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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