SMF Shop
SMFShop => Shop Button Requests => Completed Shop Buttons => Topic started by: SKETCHi on April 25, 2006, 01:04:08 pm
-
Well, I needed to make it for one of my sites so why not share? :)
Find:
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];
Add After:
// The [shop]
echo '
<a href="', $scripturl, '?action=shop">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif" alt="Shop" style="margin: 2px 0;" border="0" />' : 'Shop'), '</a>', $context['menu_separator'];
-
Thanks SKETCHi! I've added this button to the list of completed shop buttons (with thanks to you, of course :))
-
I did everything perfecly. And its working.
Only problem is that on the menu, instead of a image button, it is just showing a text button "shop". I even uploaded the shop.gif in icons folder of the theme. But still its not working.
Can u plz tell me where exactly should i put the shop.gif???
-
Just right click > view image on one of the other menu images. That will tell you exactly where to put it.
Without checking, I'm pretty sure it's... /Themes/theme_folder/images/english/