Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4260
Latest: Verrick
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43323
Total Topics: 7527
Most Online Today: 302
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 280
Total: 280

Author Topic: "My Images" & "Search" buttons  (Read 15236 times)

0 Members and 1 Guest are viewing this topic.

Offline ib2loud

  • Member
  • *
  • Posts: 12
    • View Profile
"My Images" & "Search" buttons
« 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!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: "My Images" & "Search" buttons
« Reply #1 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?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline ib2loud

  • Member
  • *
  • Posts: 12
    • View Profile
Re: "My Images" & "Search" buttons
« Reply #2 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

Offline ib2loud

  • Member
  • *
  • Posts: 12
    • View Profile
Re: "My Images" & "Search" buttons
« Reply #3 on: September 13, 2008, 09:12:59 pm »
I figured it out, thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: "My Images" & "Search" buttons
« Reply #4 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?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline ib2loud

  • Member
  • *
  • Posts: 12
    • View Profile
Re: "My Images" & "Search" buttons
« Reply #5 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)

Offline Matt5L

  • Member
  • *
  • Posts: 7
    • View Profile
Re: "My Images" & "Search" buttons
« Reply #6 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!
« Last Edit: October 15, 2008, 07:43:18 pm by Matt5L »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: "My Images" & "Search" buttons
« Reply #7 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
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Matt5L

  • Member
  • *
  • Posts: 7
    • View Profile
Re: "My Images" & "Search" buttons
« Reply #8 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?!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: "My Images" & "Search" buttons
« Reply #9 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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Matt5L

  • Member
  • *
  • Posts: 7
    • View Profile
Re: "My Images" & "Search" buttons
« Reply #10 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

Offline Matt5L

  • Member
  • *
  • Posts: 7
    • View Profile
Re: "My Images" & "Search" buttons
« Reply #11 on: October 21, 2008, 07:43:10 pm »
Worked great thanks

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4628 Views
Last post May 21, 2007, 06:37:59 pm
by SMFHacks
1 Replies
9081 Views
Last post September 28, 2007, 11:46:07 am
by smalldonkey
2 Replies
8396 Views
Last post November 06, 2007, 08:55:18 pm
by dry3210
2 Replies
5778 Views
Last post February 17, 2009, 10:36:44 am
by Nomi
0 Replies
6505 Views
Last post November 02, 2010, 08:35:16 am
by spacecadet

+- Recent Topics

Failed to open stream: File name too long by Randem
June 21, 2024, 10:40:41 am

Attachment images Upsidedown or Sideways by SMFHacks
June 18, 2024, 10:53:24 am

JSON decode error: The maximum stack depth has been exceeded by SMFHacks
June 14, 2024, 10:15:16 pm

“Insert from Gallery” by donk
June 10, 2024, 01:26:57 pm

Pretty Urls extras by SMFHacks
May 13, 2024, 10:28:54 am

Mod question by Verrick
May 11, 2024, 02:42:50 pm

i have paid but cant download ad pro. by SMFHacks
May 02, 2024, 11:29:38 pm

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Powered by EzPortal