Hello!
I am trying to display one item next to in the amount of post in the display.template.php
It worked in smf 2.0.8. Dont know why it doesnt work now(2.0.14)..
would apriciate any kind of help :). Thanks ;)
online and offline buttons?
echo '
<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>
<td height="70"><center>';
//SMFShop Inventory Signature
//get the inventory
global $db_prefix, $boardurl;
$result = mysql_query("SELECT it.desc, it.image, inv.id FROM {$db_prefix}shop_inventory AS inv, {$db_prefix}shop_items AS it WHERE inv.ownerid = {$message['member']['id']} AND inv.itemid = it.id ORDER BY RAND() LIMIT 1");
if(mysql_num_rows($result) > 0)
{
echo '<div><legend><a href="javascript:window.open(\'', $scripturl, '?action=shop;do=invother2;member=', $message['member'] ['username'], '\',\'Tienda\',\'width=1024,height=664\');void(0);"">';
while ($row = mysql_fetch_assoc($result))
{
echo " <img src='{$boardurl}/Sources/shop/item_images/{$row['image']}'title='{$row['desc']}'></a></legend>";
}
echo '</div></center>';
}
echo '
</td></tr><tr>
<td height="17"> </td>
</tr></table>';
You've already asked for help in the support topic for this mod, which is the right place. Please do not cross post the same issue elsewhere. Topic locked.