Items:Profile Image
From SMFShopWiki
| Profile Image | |
| Latest Item Version: | 0.1 |
|---|---|
| SMFShop Version Required: | Any |
| PHP Version Required: | Any |
| MySQL Version Required: | Any |
This is an item for SMFShop that allows your members to show an image next to their posts. This item comes with a set of flag images, although you can delete the original images and use whatever images you'd like.
Download this item
When the user uses the item, they can choose an image from the selection available:
Then, once they choose, the image is displayed alongside their posts:
[edit] Using the item in other themes
The Profile Image item requires you to edit a template (namely, Display.template.php). If you're using a custom theme, you'll need to do this:
Open Themes/[themename]/Display.template.php (where [themename] is the name of the theme). Find:
echo ' ', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
Add after:
//BEGIN SMFShop Profile Images Item 0.1 Beta $result_flag = db_query("SELECT shop_Flag FROM {$db_prefix}members WHERE ID_MEMBER = {$message['member']['id']} LIMIT 1", __FILE__, __LINE__); if($row_flag['shop_Flag'] !== "") echo "Flag: <img src='{$boardurl}/Sources/shop/flag_images/{$row_flag['shop_Flag']}'><br />"; //END SMFShop Flag Item


