SMF Shop
SMFShop => Shop Button Requests => Topic started by: GameBox 47 on December 02, 2007, 04:45:07 am
-
Theme Name: Alak
Link to Theme: http://custom.simplemachines.org/themes/index.php?lemma=335
Thanks a lot! :)
-
here ya go :) just add that after the [calendar] button in index.template.php
// The [shop] button
echo '<li><a class="shop' , $current_action == 'shop' ? ' active' : '', '" href="', $scripturl, '?action=shop">' , $txt['shop'] , '</a></li>';
-
Hmm... it didn't work. I added it like this:
// The [calendar]!
echo '<li><a class="calendar' , $current_action == 'calendar' ? ' active' : '', '" href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';
// The [shop] button
echo '<li><a class="shop' , $current_action == 'shop' ? ' active' : '', '" href="', $scripturl, '?action=shop">' , $txt['shop'] , '</a></li>';
-
oops, change
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
to:
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'shop')))
$current_action = $context['current_action'];
sorry about that. :)
-
oops, change
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
to:
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'shop')))
$current_action = $context['current_action'];
sorry about that. :)
Weird, it still didn't work... :(
http://ubuntupocket.bryansoft.com/forum/index.php
-
It looks like you're using SoftMC_Blue now?