Well I created this item using a variant of Daniel's Flag item. So if you have the flag item then you CANT use my version. But I have a bunch of icons there, and they displace underneath your signature. I added it via the package manager but it seems to have a problem doing the modificiation of the template so you will have to do that manually yourself, its only a couple of lines and all ur doing is adding it in, but it works perfectly other than that.
Its attached, download it, upload it via package manager, it WILL give you an error on Display.template.php, go ahead and do the install anyways. Once done, go to your Display.template.php and find
<div class="signature">', $message['member']['signature'], '</div>';
After that add:
//BEGIN SMFShop Profile Images Item 0.1 Beta
global $db_prefix, $boardurl;
$result_flag = db_query("SELECT shop_Flag
FROM {$db_prefix}members
WHERE ID_MEMBER = {$message['member']['id']}
LIMIT 1", __FILE__, __LINE__);
$row_flag = mysql_fetch_assoc($result_flag);
// Is there a flag set?
if ($row_flag['shop_Flag'] !== '')
{
// Output the text at the start
echo '
<hr width="100%" size="1" class="hrcolor" />';
echo 'Icons: <br />' ;
// Get the flags into an array
$flags = explode(',', $row_flag['shop_Flag']);
// Loop through the array
foreach ($flags as $flag)
{
// Is the flag real (not a blank string)?
if ($flag != '')
echo '<img src="', $boardurl, '/Sources/shop/flag_images/', $flag, '"> ';
}
// Insert a line break
echo '<br />';
}
//END SMFShop Icon Item
AGAIN! If you have the FLAG Item that was provided by Daniel installed, do NOT attempt to install this item. I did not bother to rename any of the tables or otherwise. If someone wants to do so please feel free. This is my first attempt at php coding and all i really did was modify the flag item's code.
The item comes with over 100 icons already in place. If you want to add ur own, just FTP to the flag_images folder on ur server and add the images. They will automatically appear on the drop down list of icon selections.
There isnt a way to remove an icon ones a member has purchased and added it to their name unless u go into the MySQL data base and find the member and manually remove it. Once its there its pretty much permanent.