SMF Shop

SMFShop => Coding => Topic started by: zombozo3eyes on February 15, 2008, 07:28:05 am

Title: shop button?
Post by: zombozo3eyes on February 15, 2008, 07:28:05 am
I know how to make the whole code for all mods except for the shop

The codes usually look like this on my theme......
// Show the [arcade] button.
   echo '
               <li', $current_action == 'arcade' ? ' id="active"' : '', '><a href="', $scripturl, '?action=arcade">', $txt['arcade'], '</a></li>';

So i know how to edit it all but...
// Show the [shop] button.
   echo '
               <li', $current_action == 'shop' ? ' id="active"' : '', '><a href="', $scripturl, '?action=shop">', $txt['?!?!?!?!'], '</a></li>';

I dont know what the $txt[] should be.....can u tell me daniel?



Title: Re: shop button?
Post by: Daniel15 on February 15, 2008, 08:01:54 am
I was kind a noob when I made the shop, I didn't add a text string in the normal files for it. So just do something like:
   echo '
               <li', $current_action == 'shop' ? ' id="active"' : '', '><a href="', $scripturl, '?action=shop">Shop</a></li>';
Title: Re: shop button?
Post by: zombozo3eyes on February 15, 2008, 08:07:17 am
Thanks man

-zombozo-