1. This is an easy fix. Find the following lines in ubbt.inc.php:
<br /> // ----------------------------<br /> // Convert email markup -> html<br /> $Body = preg_replace("/\[{$ubbt_lang['TEXT_EMAIL']}\]([^\[]*)\[\/{$ubbt_lang['TEXT_EMAIL']}\]/i","<a href=\"mailto:\\1\">\\1</a>",$Body);<br /><br /> // ---------------------<br /> // Convert image markup <br /> if ($config['allowimages']) {<br />
And replace them with this:
<br /> // ----------------------------<br /> // Convert email markup -> html<br /> $Body = preg_replace("/\[{$ubbt_lang['TEXT_EMAIL']}\]([^\[]*)\[\/{$ubbt_lang['TEXT_EMAIL']}\]/i","<a href=\"mailto:\\1\">\\1</a>",$Body);<br /><br /> // ---------------------<br /> // Convert image markup <br /> Global $user;<br /> if ($config['allowimages'] && stristr($user['U_Groups'], "-{$config['imagegroup']}-")) {<br />
Then add this line to your config file (and change 5 to the number of the group you want to allow images for):
$config['imagegroup'] = "5";
2. This is almost as easy. Open up your editbasic.php file and do the following:
Find these lines:
<br />// -----------------<br />// Get the user info<br /> $userob = new user;<br /> $user = $userob -> authenticate(); <br />
Replace them with this:
<br />// -----------------<br />// Get the user info<br /> $userob = new user;<br /> $user = $userob -> authenticate("U_Groups"); <br />
Now find these lines:
<br /> if ($theme['PictureView']) {<br /> if ( ($config['avatars']) && (ini_get('file_uploads')) ){<br />
And replace them with this:
<br /> if ($theme['PictureView'] && stristr($user['U_Groups'], "-{$config['avatargroup']}-")) {<br /> if ( ($config['avatars']) && (ini_get('file_uploads')) ){<br />
That's it. Now you need to add a new configuration option to your config file, so open that up and insert this at the end:
$config['avatargroup'] = "5";