Preset and lock 'account preferences' ?
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #2
RE: Preset and lock 'account preferences' ?
I use the Default profile plugin for my new registrations. I can assign them an avatar etc. If you want to fix the edit options so that the user can never change them then you need to restrict access to this url:

http://path_to_you_forum/usercp.php?action=options

As you can remove the edit options link from the UCP but a user who knows the url can get to it anyway direct. I think that would have to be programmed in. You can try inserting this conditional at the top of the usercp_options template like so:

Code:
1
2
3
4
5
6
7
8
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->edit_options}</title>
{$headerinclude}
</head>
<body>
{$header}
<if in_array($GLOBALS['mybb']->user['usergroup'], array(4)) then>


and at the bottom:

Code:
1
2
3
4
5
6
7
</form>
<else>
ERROR
</if>
{$footer}
</body>
</html>



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 03-03-2012 03:36 PM by leefish.)
03-03-2012 03:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Preset and lock 'account preferences' ? - leefish - 03-03-2012 03:11 PM

 Standard Tools
Forum Jump: