Author Topic: Button for SMFone theme  (Read 3693 times)

Offline Daniel15

Button for SMFone theme
« on: March 03, 2006, 06:20:36 pm »
This is a shop button for the 'SMFone' theme by A.M.A (one of Simple Machine's Lead Graphic Designers). This theme is like the SMF 1.1RC2 default theme, in the fact that it uses text buttons. However, these buttons have small images next to them. Since I don't know what image to use, I'm just using the 'Home' button image.

Code modifications:
Open Themes/amber/index.template.php
Find:
Code: [Select]
// The [calendar]!
if ($context['allow_calendar'])
echo '
<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" /><a class="menub" href="', $scripturl, '?action=calendar">' , $txt['calendar24'], '</a>', $context['menu_separator'];

Add After:
Code: [Select]
echo '
<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="Shop" /><a class="menub" href="', $scripturl, '?action=shop">Shop</a>', $context['menu_separator'];

Your shop button should now be working! To show the amount of credits a user has next to their posts, please see the How to get shop working in other themes topic.