Using 1.0.5
I'd like to add a button at the end of the "row of buttons" beginning with "Home", to say "Main Site" and have alink back to my main website homepage.
I've already created the button to look like the others.
How can I add this button, and its link, to my forum?
I did find the buttons code in /Themes/default/index.template.php
Any assistance would be GREAT!
Thanks, J.D.
Search is your friend.
http://www.simplemachines.org/community/index.php?topic=7854.msg75035#msg75035
Thanks! But I have a slight problem. I am getting a text link, not the button. Here is my code for index.template.php:
// How about the [site] button?
echo '
<a href="https://my-domain.com">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/site.gif" alt="' . $txt[801] . '" border="0" />' : $txt[801]), '</a>', $context['menu_separator'];
Anything look amiss?
By the way, I have uploaded my button named site.gif to the images directory.
It should be under images/english if you use that language.
...and that was the problem...it needed to go into the english directory of the images directory. That's fixed.
Now, my button is slightly lower than the others. I made the button by opening one of the others and just putting my info over it, so I didn't change the canvas size or anything at all.
Please see it at:
http://spreadtheblessings.com/forum/
Ideas?
you need to add
style="margin: 2px 0;"
like this
<img src="http://spreadtheblessings.com/forum/Themes/default/images/english/site.gif" alt="site" style="margin: 2px 0;" width="76" height="16" border="0"/>
Thaks E.G....worked like a charm...