1021
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
// The [calendar]!
if ($context['allow_calendar'])
echo '
<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" /><a class="menub" href="', $scripturl, '?action=calendar">' , $txt['calendar24'], '</a>', $context['menu_separator'];
echo '
<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="Shop" /><a class="menub" href="', $scripturl, '?action=shop">Shop</a>', $context['menu_separator'];
// The shop
echo '
<a href="', $scripturl, '?action=shop">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif" alt="Shop" style="margin: 2px 0;" border="0" />' : "Shop"), '</a>', $context['menu_separator'];
That should work. Please tell me if it doesn't.This is kind of unrelated, but is it possible to not use a decimal point for money amount? I could probably figure it out on my own if knew which files to editSMFShop doesn't show the decimal places, although it does store all the money amounts as decimal. Only certain sections show the money amount as decimal.
Open Sources/shop/ShopAdmin.php and find this line (line 162):
include "Sources/shop/items/$file";
Replace it with this:
include "$boarddir/Sources/shop/items/$file";
Also, in the same file, Find this (line 157):
include "Sources/shop/item_engine.php";
Replace with:
include "$boarddir/Sources/shop/item_engine.php";
......try opening Sources/shop/ShopAdmin.php and changing:
include "Sources/shop/item_engine.php";
include "Sources/shop/items/{$_POST['item']}.php";
to:
include "$boarddir/Sources/shop/item_engine.php";
include "$boarddir/Sources/shop/items/{$_POST['item']}.php";
Also, open Sources/shop/Shop.php and change
require("Sources/shop/item_engine.php");
to
require("$boarddir/Sources/shop/item_engine.php");
Also, change:
require("Sources/shop/items/{$row['module']}.php");
to:
require("$boarddir/Sources/shop/items/{$row['module']}.php");
I believe that you would have to manually edit that into the Helios theme. There is a post on the SMF boards that should help youIt's OK. I made a reply to his other post, and now have a button for the Helios theme in the Shop Buttons section.
how can I allow my Global Mods to edit Credits?Sorry, but there currently is no way to do this. You may instead give them lots of money, and then they can send money to people
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
// BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';
echo '
', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
<a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a><br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a><br />';
//END SMFShop code
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';
//BEGIN Shop MOD 0.2 Code
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';
//I couldn't find where all these $message['member'][whatever] variables
//are set, so I just send an extra database query to get the member's
//money. Can someone tell me where (file and line) the $message variables
//are set?
global $ID_MEMBER, $db_prefix;
$result_money = db_query("SELECT money
FROM {$db_prefix}members
WHERE ID_MEMBER = {$message['member']['id']}
LIMIT 1", __FILE__, __LINE__);
$row_money = mysql_fetch_array($result_money, MYSQL_ASSOC);
echo $modSettings['shopCurrencyPrefix'].$row_money['money'].$modSettings['shopCurrencySuffix']."<br><br>";
//END SHOP MOD
//BEGIN SMFShop MOD 1.31 (Build 7) CODE
echo "<a href='$scripturl?action=shop;do=invother2;member={$message['member']['username']}'>View Inventory</a><br>";
//END SMFShop MOD 1.31 code
//BEGIN SMFShop MOD 2.2 (Build 10) code
echo "<a href='$scripturl?action=shop;do=sendmoney;member={$message['member']['username']}'>Send Money to {$message['member']['name']}</a><br />";
//END SMFShop code