SMF Shop
SMFShop => Shop Button Requests => Topic started by: żεχเ๏ภ on December 06, 2010, 03:33:57 pm
-
Index.template.php file attached (as "index.template.txt" won't let me attach .php files ::)), I just want the simple "Shop" button added to the navigation menu on this theme (Black Metal) for me. Next to "Arcade" and "My Messages" would be nice but it really doesn't matter.
(This is SMF 1.1.12)
Thanks loads,
Jason
-
Can you set the black Metal theme as default, and link me to your site. Does the site have custom images in the menu, or are they text? I have your file, and making the edits.
EDIT: NM, i see what you want. gimme a few minues.
-
I seen how the buttons worked on black metal, now, test this out on your forum.
I simply copied the button info for arcade, but made the changes to link to the shop.
Original Shop button code
//Begin SMFShop code
//loadLanguage("shop");
echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=shop">Shop</a>
</td>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
//END SMFShop code
Edit to match other buttons for your theme
// Shop Button
echo '<li><a' , $current_action=='shop' ? ' class="current"' : '' , ' href="', $scripturl, '?action=shop"><span>Shop</span></a></li>';
-
Thanks so much for replying and helping me. :) Sadly though, there is a problem...
http://mainmedia.negative0.net/forum/
^That's what I get.
OK, my bad. I uploaded your attached index.template.php when I should've just changed the code myself. (Confusing yes)
Thanks for your help! :) works great
-
Yeah, i forgot to mention, i uploaded 2 versions of the shop button for you, and wanted to see which would work best. But, I posted the edits as well, in case you wanted to try the edit yourself. :)
Glad it's working.
-
Yeah, i forgot to mention, i uploaded 2 versions of the shop button for you, and wanted to see which would work best. But, I posted the edits as well, in case you wanted to try the edit yourself. :)
Glad it's working.
Me too ^_^
-
I simply copied the button info for arcade, but made the changes to link to the shop.
-
It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently.