2013-10-19, 05:46 PM
2013-10-21, 08:09 AM
Bump. Exists a plugin for limiting user edit options, or no?
Thanks for any replies.
Thanks for any replies.
2013-10-21, 08:36 AM
IIRC, there is no such plugin available at present on the Mods section. (not sure where this plugin exists now)
in general, we suggest to use template conditionals plugin for the above referred requirements
in general, we suggest to use template conditionals plugin for the above referred requirements
2013-10-21, 09:02 AM
Okay. Thanks .m. So if I've got template conditionals installed. How/Where/What would I put...for example, if I didn't want to allow user group 1 and 2 to change their theme?
2013-10-21, 09:15 AM
^ for the theme change,
if you want specific groups to use a particular theme then that restriction can be put at the theme properties.
admin panel >> themes >> click on a theme --> scroll down for Allowed User Groups
--> select which group members are allowed to use that particular theme & save theme properties
you can allow group 1 and group 2 to use a specific theme and disallow using the other themes
note: you have to edit the properties of all installed themes and select allowed groups
if you want specific groups to use a particular theme then that restriction can be put at the theme properties.
admin panel >> themes >> click on a theme --> scroll down for Allowed User Groups
--> select which group members are allowed to use that particular theme & save theme properties
you can allow group 1 and group 2 to use a specific theme and disallow using the other themes
note: you have to edit the properties of all installed themes and select allowed groups
2013-10-21, 06:12 PM
Awww Yea. That's perfect.
What about for example, not allowing users to limit their forum view to threads from the last 10 days, or keeping them from hiding avatars. Possible to easily affect this without modifying the template... That would modify it for all users....Including myself.
I suppose use the template conditionals as you mentioned above...? But not sure of syntax and placement. It's not extremely important, so if it's not off the top of your head, don't worry.
Thanks .m.
What about for example, not allowing users to limit their forum view to threads from the last 10 days, or keeping them from hiding avatars. Possible to easily affect this without modifying the template... That would modify it for all users....Including myself.
I suppose use the template conditionals as you mentioned above...? But not sure of syntax and placement. It's not extremely important, so if it's not off the top of your head, don't worry.
Thanks .m.
2013-10-21, 06:33 PM
Placement - as the plugin name says, templates.
Syntax - for example to remove the avatar option for certain groups change:
in usercp_options template.
Syntax - for example to remove the avatar option for certain groups change:
<input type="checkbox" class="checkbox" name="showavatars" id="showavatars" value="1" {$showavatarscheck} /></td>
<td><span class="smalltext"><label for="showavatars">{$lang->show_avatars}</label></span>
to:<if !in_array($mybb->user['usergroup'], array(3,8,12)) then><input type="checkbox" class="checkbox" name="showavatars" id="showavatars" value="1" {$showavatarscheck} /></td>
<td><span class="smalltext"><label for="showavatars">{$lang->show_avatars}</label></span>
<else>
<input type="hidden" name="showavatars" id="showavatars" value="1" checked="checked" />
</if>
in usercp_options template.