Author Topic: No credits at posting profile.  (Read 2907 times)

Offline Raymond

No credits at posting profile.
« 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

Offline Martin

Re: No credits at posting profile.
« Reply #1 on: February 10, 2007, 10:20:54 am »
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:

Code: [Select]
', $txt[26], ': ', $message['member']['posts'], '';
Add Under:

Code: [Select]
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.
« Last Edit: February 10, 2007, 10:27:33 am by MartinD2 »

Offline Daniel15

Re: No credits at posting profile.
« Reply #2 on: February 10, 2007, 12:51:38 pm »
Also, note that my original code is listed in the How to get shop working in other themes topic :)

Offline Raymond

Re: No credits at posting profile.
« Reply #3 on: February 10, 2007, 06:21:40 pm »
Ok thanks for the help!