Hiya Bloc
This is all
great work and all my site members love your themes.
I do have a question however... I have a stand alone SMF forums and a Coppermine Gallery.
The bridge is a bit over my head, so all I wanted to do is add a button right after HOME that will take viewers to the gallery.
I made a great one using your generator (https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Felite.bixies.com%2Fimages%2Fscreenshots.gif&hash=36db8f1090b734b5e5656930df5303728fa68895) however I am no code monkey and was wondering if you could show me where (and what) to add to the index file?
I use your
Cerberus theme.
I know it should go somewhere in this...
Quote
// Show the menu up top.ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, Something like [home] [help] [profile] [logout]...
function template_menu()
{
ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, global $context, $settings, $options, $scripturl, $txt;
ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, // Show the [home] and [help] buttons.
ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, echo '
ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, <a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
>Like in here maybe????
ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, <a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];
ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ, ÃÆ'ââ,¬Å¡Ãƒâ€šÃ,Â
and should link to the url of my gallery.
I also figured the image should go into the English language folder right?
sorry bout the big quote...
thanks and keep up the great art!
Thats the correct spot..if you use this code it should work fine:
<a href="copperminepath">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/screenshots.gif" alt="Gallery" style="margin: 2px 0;" border="0" />' : 'Gallery'), '</a>', $context['menu_separator'], '
Just put it right where you have marked.:) And yes, put the "screenshots.gif" in images/english folder.
:laugh:
That worked great
Thanks Bloc
Bloc, what file is that in? I also have cerberus, but I see no match for the content shown (so have no clue where that code was inserted).
you place that code in FORUM/THEMES/DEFAULT/index.template.php
Almost at the bottom along with the other buttons
Actually, in the case of the original poster, who was using the Cerebus Theme, he put it in the index.template.php file in the Themes/Cerebus folder.
Just got general reference, every theme will have an index.template.php file, and the menu buttons (that go across near the top of the page) are always found in a small function near the bottom of that page. What the text of the code for each button looks like will vary by theme, but it is all generally the same.
Phew, thanks for that last post Rasyr.. I was modifying the defaul code like a maniac and wodering where my button had gone... LMAO. Thats the spot, works a treat! Thanks guys!
I really gotta say...nice speedy responses in here!