Customizing SMF > SMF Coding Discussion

Help me please... I need to ad a button to my menu!

(1/1)

Zeke:
 Hey, I need a bit of help. I need to ad a button that gose back to the WEBSITE for the forums but I want it to go nexted to the home button. How do I et it there?

Owdy:
http://www.simplemachines.org/community/index.php?topic=7854.msg75035#msg75035

Zeke:
Tryed that Owdy and this is what I get...

Top of Page at the forums:


--- Code: ---Notice: Undefined offset: 801 in /home/virtual/site7/fst/var/www/html/AIF/Themes/classic/index.template.php on line 266

--- End code ---

and this is what I added.


--- Code: ---echo '

<a href="http://animeinvasion.dbgtn.com">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/Themes/classic/images/english/site.gif" alt="Website' . $txt[801] . '" border="0" />' : $txt[801]), '</a>', $context['menu_separator'];
--- End code ---

right about


--- Code: ---echo '
<a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];
--- End code ---

So whats wrong?

[Unknown]:
You didn't add the string he referenced to the language files.  Even if you want it to be something other than gallery, you DO have to add the string.

-[Unknown]

Navigation

[0] Message Index

Go to full version