Customizing SMF > SMF Coding Discussion
Making a button only visible to certain member groups.
wargames:
So I have followed the directions here http://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0 and work 100% as intended but I would like to restrict who can veiw it by member groups. How can I do this, and can I make multiple member groups view it?
Arantor:
The code is dependent on the membergroups. What member groups are we talking about, exactly?
wargames:
Custom member group id 10 along with admins and mods.
Arantor:
What kind of moderators? Even the moderators who are only moderators of individual boards (and not in group 10 but should see it anyway)?
(That's why I ask, it suddenly gets a lot more complicated)
wargames:
I am looking for member group ids of 1, 2, and 10. Also thanks in advance. Another thing of note I don't use the submenu for this button incase that messes anything up.
Navigation
[0] Message Index
[#] Next page
Go to full version