SMFShop > Items

'Profile Image' item

(1/10) > >>

Daniel15:
The 'Profile Image' item is an item for SMFShop that allows your members to show an image next to their posts. This item is a standard SMF package, so please install it using the package manager.

This item comes with a set of flag images, although you can delete the original images and use whatever image you'd like.

You may downlaod the item via the 'SMFShop Items' downloads section of the DanSoft Australia site. Have fun!

EDIT: If you'd like to get this working in other themes, here's how:
Open Themes/[themename]/Display.template.php
Find:

if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';

Add after:

            //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_array($result_flag, MYSQL_ASSOC);
            
            if($row_flag['shop_Flag'] !== "") {
                echo "Flag: <img src='{$boardurl}/Sources/shop/flag_images/{$row_flag['shop_Flag']}'><br>";
            }
            //END SMFShop Flag Item

tazpot:
 :D  i Have just bought a flag on this site and it looks exactly what i was looking for.  Good work Daniel and thanks O0

Daniel15:
No problem :)

As I said before, I already had the code. I just needed to do some bug fixes to it (some of the code was from September 2005 :P)

TechnoDragon:
would it be possible to tweak this a bit?  The idea is to use images of small animals "pets" but I would like a page to display all of the available "pets" as images and then allow the buyer to name it.

tazpot:
There is already a post about this HERE   8)

Navigation

[0] Message Index

[#] Next page

Go to full version