SMFHacks.com

SMF Gallery Pro => Support => Topic started by: kerbe on May 10, 2008, 11:27:27 am

Title: Help on new installation
Post by: kerbe on May 10, 2008, 11:27:27 am
I just bought pro and installed it, I had lite before
The pro installed with no errors but now I have two buttons for the gallery, they both go to the same area
I tried uninstalling lite but it gave me errors and I do not want to lose all the images in the gallery, any ideas???
Title: Re: Help on new installation
Post by: SMFHacks on May 10, 2008, 01:39:54 pm
You need to edit themes/default/index.template.php and remove the second gallery button.

You maybe also missing some permissions since you did not uninstall the lite edition before pro.
Title: Re: Help on new installation
Post by: kerbe on May 10, 2008, 02:45:03 pm
hey kind of new to this, I went to the code but didnt see the code, isnt that dynamic?
Title: Re: Help on new installation
Post by: SMFHacks on May 10, 2008, 03:10:47 pm
Search for inside index.template.php

Find
Code: [Select]
// the [SMF Gallery] button
if ($context['allow_smfgallery_view'])
echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

And just remove one since there should be two in your case.
Title: Re: Help on new installation
Post by: kerbe on May 10, 2008, 03:25:21 pm
Thanks for your help but there is no such code in there why would that be
Title: Re: Help on new installation
Post by: SMFHacks on May 10, 2008, 03:27:07 pm
Attach your Themes/default/index.template.php file and I will take a look.
Title: Re: Help on new installation
Post by: kerbe on May 10, 2008, 03:50:47 pm
attached
Title: Re: Help on new installation
Post by: SMFHacks on May 10, 2008, 04:08:34 pm
I do not see any gallery buttons in that file attached is that the one from the default theme folder?
Title: Re: Help on new installation
Post by: kerbe on May 10, 2008, 04:09:48 pm
yep, and I checked the other two I have installed but not using, weird right
Title: Re: Help on new installation
Post by: SMFHacks on May 10, 2008, 04:13:56 pm
Are you copying it from the right forum from your ftp?
Title: Re: Help on new installation
Post by: kerbe on May 10, 2008, 04:22:25 pm
what an ass, I forgot my programmer made two directories for testing, THANK YOU
hey you need a job?? I could use some good programmers
Title: Re: Help on new installation
Post by: SMFHacks on May 10, 2008, 04:30:56 pm
Nah I am good I got lots of projects to work on.