1
Coding / Re: Send money using "Membergroup Functions" to "Post count based membergroups"
« on: November 17, 2007, 12:47:10 am »
where have allt he coding help people gone, im sure there must be a quick fix to this...
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.
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';
//BEGIN SMFShop Code IP EDIT
if ($modSettings['ShopIpDis'] == 0)
{
// BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';
echo '
<br>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<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
}
else{
// BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';
echo '
<br>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a><br />';
//END SMFShop code
}
//END SMFShop Code IP EDIT
//BEGIN SMFShop IPM
//Check if postbit is the chosen display section or if IPM is even turned on
if ($modSettings['ShopIpDis'] == 1 && $modSettings['ShopIpPos'] == 0)
{
//Check there actually are items in the array
if (count($message['member']['shopitems']) != 0)
{
//Set up the fieldset with legend link to members inventory
echo '<fieldset><legend><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Entire Inventory</a></legend>';
//Loop through all the items and output
foreach ($message['member']['shopitems'] as $shopitem)
{
echo "<img src='{$boardurl}/Sources/shop/item_images/{$shopitem['image']}'title='{$shopitem['desc']}'> ";
}
echo '</fieldset>';
}
}
//END SMFShop IPM
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
if (in_array($context['current_action'], array('shop_general', 'shop_items_add', 'shop_items_edit', 'shop_cat', 'shop_inventory', 'shop_restock', 'shop_usergroup')))
isn't it just in "display.template"?
in or near "==Show signature?=="
it looks like a HTML table <td></tr> etc...
oh ok, good i hope the fresh install works! anddoubletriple check your permissions after that
so yeah if nothing works maybe you should resort to contacting your host (absolute LAST resort lol) or maybe, idk, something w/ the host conflicts w/ the smf shop mod. but your last host had no problems, did it not?
Does the Shop-Buy.php file actually exist? It should be at httpdocs/forum/Sources/shop/Shop-Buy.php.
Does everything else in the shop work?
Fatal error: Shop() [function.require]: Failed opening required 'Shop-Buy.php' (include_path='.:') in /var/www/vhosts/psp-customs.com/httpdocs/forum/Sources/shop/Shop.php on line 136