2012-04-04, 03:50 PM
Hi
I want admins, only admins, to be able to use html markup in their custom titles, not only via the admin cp (for which there already is a plugin), but also via their user cp.
So far I have this:
in the /inc/datahandlers/user.php,
I changed this
into this
So with these changes EVERYONE, regardless of which usergroup they are in, can use html in their custom title, but I only want admins to be able to.
I already tried a couple functions in addition to the code above to achieve this, but so far no luck
I'm gonna need some help on this, and hoping to find it in here.
Thanks in advance
I want admins, only admins, to be able to use html markup in their custom titles, not only via the admin cp (for which there already is a plugin), but also via their user cp.
So far I have this:
in the /inc/datahandlers/user.php,
I changed this
if(isset($user['usertitle']))
{
$this->user_update_data['usertitle'] = $db->escape_string(htmlspecialchars_uni($user['usertitle']));
}
into this
if(isset($user['usertitle']))
{
$this->user_update_data['usertitle'] = $db->escape_string($user['usertitle']);
}
So with these changes EVERYONE, regardless of which usergroup they are in, can use html in their custom title, but I only want admins to be able to.
I already tried a couple functions in addition to the code above to achieve this, but so far no luck
I'm gonna need some help on this, and hoping to find it in here.
Thanks in advance