SMFHacks.com

SMF Gallery Lite => SMF Gallery Lite => Topic started by: ib2loud on September 13, 2008, 10:55:17 am

Title: "My Images" & "Search" buttons
Post by: ib2loud on September 13, 2008, 10:55:17 am
They show up as dead image links in IE, and nothing at all in FireFox. Is there a way to make them show a button image that I've made up?

thanks!
Title: Re: "My Images" & "Search" buttons
Post by: SMFHacks on September 13, 2008, 12:00:51 pm
They are actually tabs built into SMF 1.1.x and not images. What theme are you using?
Title: Re: "My Images" & "Search" buttons
Post by: ib2loud on September 13, 2008, 03:20:06 pm
i am using the helios theme. i have button images made up but i can't seem to find where to make it show them instead of the tabs for the default theme
Title: Re: "My Images" & "Search" buttons
Post by: ib2loud on September 13, 2008, 09:12:59 pm
I figured it out, thanks
Title: Re: "My Images" & "Search" buttons
Post by: SMFHacks on September 14, 2008, 11:02:20 pm
I figured it out, thanks
What did you do? Just wondering how you were able to fix it?
Title: Re: "My Images" & "Search" buttons
Post by: ib2loud on September 15, 2008, 07:28:13 am
I opened gallery.php in the sources directory and changed all instances of:
Quote
// MyImages

   if ($g_add && !($context['user']['is_guest']))   

   
   $context['gallery']['buttons']['mylisting'] =  array(
      
      'text' => 'gallery_myimages',

      'url' =>$scripturl . '?action=gallery;sa=myimages;u=' . $ID_MEMBER,

      'lang' => true,



   );



   

   // Search

   $context['gallery']['buttons']['search'] =  array(

      'text' => 'gallery_search',
      
      'url' => $scripturl . '?action=gallery;sa=search',

      'lang' => true,



   );

to

Quote
// MyImages

   if ($g_add && !($context['user']['is_guest']))   

   
   $context['gallery']['buttons']['mylisting'] =  array(
      'image' => 'myimages.gif',
      
      'text' => 'gallery_myimages',

      'url' =>$scripturl . '?action=gallery;sa=myimages;u=' . $ID_MEMBER,

      'lang' => true,



   );



   

   // Search

   $context['gallery']['buttons']['search'] =  array(
      'image' => 'search.gif',

      'text' => 'gallery_search',
      
      'url' => $scripturl . '?action=gallery;sa=search',

      'lang' => true,



   );


worked like a charm. the images are in the Themes/helios/images/english directory. I did change the menu search button to search2.gif because I wanted different buttons (backwards I know but I had already changed the code before i realized it and it's easier to change one code snippet in the menu)
Title: Re: "My Images" & "Search" buttons
Post by: Matt5L on October 15, 2008, 07:31:33 pm
same thing with me im not seeing the buttons, is the 'gallery.php' the 'Gallery.template.php' in my default folder?

Im using the Black Rain theme, and I cant find any of the code above in that file...?  So how do I get those to show up?!

Thanks!
Title: Re: "My Images" & "Search" buttons
Post by: SMFHacks on October 15, 2008, 07:49:44 pm
same thing with me im not seeing the buttons, is the 'gallery.php' the 'Gallery.template.php' in my default folder?

Im using the Black Rain theme, and I cant find any of the code above in that file...?  So how do I get those to show up?!

Thanks!
Make sure you have the latest version of SMF Gallery Lite
Title: Re: "My Images" & "Search" buttons
Post by: Matt5L on October 16, 2008, 12:39:44 pm
im sure I do, I downloaded it last week from:
http://www.smfhacks.com/smf-gallery-lite.php

so think you could help me out please?!
Title: Re: "My Images" & "Search" buttons
Post by: SMFHacks on October 16, 2008, 06:56:11 pm
Double check under your Package Manager the latest version for SMF 1.1.x is 1.9.3 SMF Gallery Lite.

Then check your Sources/Gallery.php file and do the above changes.
Title: Re: "My Images" & "Search" buttons
Post by: Matt5L on October 21, 2008, 07:40:20 pm
yes its all updated, I found the file and made the changes but the "My Images" button still isnt showing the "Search" worked fine?!

I attached my gallery.php file.  Can you please take a look?

Thanks in advance,
Matt
Title: Re: "My Images" & "Search" buttons
Post by: Matt5L on October 21, 2008, 07:43:10 pm
Worked great thanks