SMFShop > Completed Shop Buttons
Dark Dirge
(1/1)
relinquish:
This template was released on October 14, 2007, from this Topic in which I requested a button until I finally figured it out by myself.
I'll just post here on what I have so far
Find
--- Code: --- if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
--- End code ---
After this code, paste this
--- Code: --- if ($context['current_action'] == 'shop')
$current_action = 'shop';
--- End code ---
Now Find
--- Code: --- // The [calendar]!
if ($context['allow_calendar'])
echo '
<li', $current_action == 'calendar' ? ' id="active"' : '', '><a href="', $scripturl, '?action=calendar">', $txt['calendar24'], '</a></li>';
--- End code ---
And add this after this code
--- Code: ---// The shop
echo '
<li', $current_action == 'shop' ? ' id="active"' : '', '><a href="', $scripturl, '?action=shop">Shop</a></li>';
--- End code ---
And you're done.
Navigation
[0] Message Index
Go to full version