Advertisement:

Author Topic: Display Item. SMF shop :)  (Read 1181 times)

Offline silber112

  • Jr. Member
  • **
  • Posts: 253
Display Item. SMF shop :)
« on: November 20, 2017, 06:36:53 AM »
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 ;)



Code: [Select]
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 "&nbsp;<img src='{$boardurl}/Sources/shop/item_images/{$row['image']}'title='{$row['desc']}'></a></legend>";           
                         }           
                         echo '</div></center>';       

                         }       

echo '
</td></tr><tr>
    <td height="17">&nbsp;</td>
  </tr></table>';

Offline Irisado

  • Doc Coordinator
  • SMF Hero
  • *
  • Posts: 9,013
  • Soñando debajo del arco iris
Re: Display Item. SMF shop :)
« Reply #1 on: November 20, 2017, 09:07:23 AM »
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.
Soñando con una playa donde brilla el sol, un arco iris ilumina el cielo, y el mar espejea iridescentemente