SMF Shop
SMFShop => Shop Button Requests => Completed Shop Buttons => Topic started by: Daniel15 on April 01, 2006, 03:13:58 pm
-
This is the shop button code for the 'Themis' theme. I wasn't sure what image to use for the shop, so I just used the 'Home' image.
Code modifications:
Open Themes/themis/Index.template.php
Find:
// The [calendar]!
if ($context['allow_calendar']){
$menu1 .= '
<a href="'. $scripturl. '?action=calendar"><img src="' . $settings['images_url'] . '/gnome/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" /></a>';
$menu2 .= ' |
<a href="'. $scripturl. '?action=calendar">'.$txt['calendar24'].'</a>';
}
Add after:
$menu1 .= '
<a href="'. $scripturl. '?action=shop"><img src="' . $settings['images_url'] . '/gnome/home.gif" alt="Shop" style="margin: 2px 0;" border="0" /></a>';
$menu2 .= ' |
<a href="'. $scripturl. '?action=shop">Shop</a>';
Make sure that you add the text AFTER the } in the calendar section.
Then, your shop button should be working :D
-
This is a shop button for the 'Epsilon' theme by Bloc. This theme uses a text-based menu, so we don't need a shop button image :)
_________
Prep4sure.net Microsoft 70-534 Microsoft 70-640 Labs 4A0-101 Testking CTFL_001 Practice Test 250-315 Braindumps 1z0-400 (http://www.prep4sure.net)