SMFHacks.com
SMF Gallery Lite => SMF Gallery Lite => Topic started by: Richard_P_Harvey on February 26, 2007, 12:38:40 pm
-
I have read tons here and I clearly understand that this is going to require modification to a template but I'm totally new at this and after three failed attempts, I wonder if I could beg you to do it for me. What I would like is have a button just like the ones already there but one that gets to the gallery. Attached is my template file.
-
Open index.template.php
Find
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];
Add after
// Gallery
if ($context['allow_smfgallery_view'])
echo '
<a href="', $scripturl, '?action=gallery">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="Gallery" style="margin: 2px 0;" border="0" />' : 'Gallery'), '</a>', $context['menu_separator'];
-
I have attempted this exactly 3 times and all 3 times I end up making the template crash SMF, could you PLEASE do it for me.....! :'(
-
That is the code. That I used. normal members here are not allowed to download attachments.