Thanks for replying. I've already applied everything this forum has to talk abouot making the smf shop mod show in other themes. It only works when I set it the posters info to the top of every post. But its not convenient having a forum like that
So I prefer to show it on the left position. Therefore, I got this problem after changing the current theme options.
I don't quite get what you mean by "post count might be shown twice in the template, and hence you might need to paste the code block two times"
Do I need to paste the codes twice into the theme/igoh/index.template.php ?
Display.template.php of Ig-oh's theme
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
//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
// 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