SMF Shop

SMFShop => Shop Button Requests => Completed Shop Buttons => Topic started by: Daniel15 on January 14, 2006, 02:38:56 pm

Title: Shop button for Cerberus theme by Bloc
Post by: Daniel15 on January 14, 2006, 02:38:56 pm
This is a shop button for the 'Ceberus' theme by Bloc. It was made using the Bloc Zone Button Generator (http://www.tinyportal.net/button-generator/apollo.php).

The file for the button is attached to this post. Please save this to Themes/cerberus/images/english/shop.gif

Code modifications:
Open Themes/cerberus/Index.template.php
Find:
Code: [Select]
        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:
Code: [Select]
                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'];

Then, your shop button should be working :D
Quote