1. This is an easy fix. Find the following lines in ubbt.inc.php:<br />
<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 /><br />And replace them with this:<br />
<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 /><br /><br />Then add this line to your config file (and change 5 to the number of the group you want to allow images for):<br />$config['imagegroup'] = "5";<br /><br />2. This is almost as easy. Open up your editbasic.php file and do the following:<br /><br />Find these lines:<br />
<br />// -----------------<br />// Get the user info<br /> $userob = new user;<br /> $user = $userob -> authenticate(); <br />
<br /><br />Replace them with this:<br />
<br />// -----------------<br />// Get the user info<br /> $userob = new user;<br /> $user = $userob -> authenticate("U_Groups"); <br /><br /><br />Now find these lines:<br />
<br /> if ($theme['PictureView']) {<br /> if ( ($config['avatars']) && (ini_get('file_uploads')) ){<br /><br /><br />And replace them with this:<br />
<br /> if ($theme['PictureView'] && stristr($user['U_Groups'], "-{$config['avatargroup']}-")) {<br /> if ( ($config['avatars']) && (ini_get('file_uploads')) ){<br /><br /><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:<br />$config['avatargroup'] = "5";<br /><br />