SMF Shop
SMFShop => Coding => Topic started by: Raymond on February 09, 2007, 08:16:13 pm
-
I installed this MOD with the "Packages" option in the admin panel.
Everything work fine now.
But it doesnt show how many credits you have on the left side of your post.
Example:
Here you have:
Username
Rank
Offline Offline
Posts: ?
??.?? credits
View Inventory
Send Money to
At my forum you only have:
Username
Rank
Offline Offline
Posts: ?
Can someone please help me?
Thanks
-
Open (yourtheme)/display.template.php
(My display.template.php is located in E:\D2K5Server\www\Themes\babylon\ for example, easier for you to find it this way incase you don't know where it is)
Find:
', $txt[26], ': ', $message['member']['posts'], '';
Add Under:
echo "<a href='$scripturl?action=shop;do=invother2;member={$message['member']['username']}'>Inventory</a><br>";
echo '<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money</a><br />';
echo '
', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />';
Save it and re-upload the display.template.php, it should now appear :)
I've modified the original abit, but you can always change it how you want it to look.
-
Also, note that my original code is listed in the How to get shop working in other themes (http://www.daniel15.com/forum/index.php/topic,39.0.html) topic :)
-
Ok thanks for the help!