SMFHacks.com

SMF Gallery Lite => SMF Gallery Lite => Topic started by: Richard_P_Harvey on February 26, 2007, 12:38:40 pm

Title: No Gallery Button in Bayblon Theme
Post 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.
Title: Re: No Gallery Button in Bayblon Theme
Post by: SMFHacks on February 26, 2007, 12:45:21 pm
Open index.template.php
Find
Code: [Select]
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
Code: [Select]
// 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'];
Title: Re: No Gallery Button in Bayblon Theme
Post by: Richard_P_Harvey on February 26, 2007, 01:15:54 pm
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.....!   :'(
Title: Re: No Gallery Button in Bayblon Theme
Post by: SMFHacks on February 26, 2007, 01:20:48 pm
That is the code. That I used. normal members here are not allowed to download attachments.