Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4220
Latest: agolac
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 42854
Total Topics: 7464
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 55
Total: 55

Author Topic: "My Images" & "Search" buttons  (Read 12878 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: 16257
    • 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: 16257
    • 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: 16257
    • 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: 16257
    • 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
4026 Views
Last post May 21, 2007, 06:37:59 pm
by SMFHacks
1 Replies
7180 Views
Last post September 28, 2007, 11:46:07 am
by smalldonkey
2 Replies
6449 Views
Last post November 06, 2007, 08:55:18 pm
by dry3210
2 Replies
4152 Views
Last post February 17, 2009, 10:36:44 am
by Nomi
0 Replies
2665 Views
Last post November 02, 2010, 08:35:16 am
by spacecadet

+- Recent Topics

Is the PayPal Sandbox still working? by Nicole
June 02, 2023, 06:51:18 am

Question on Completed Listing & Reserve Price by Nicole
June 01, 2023, 06:06:12 pm

[Mod]GDPR Helper by Nicole
May 29, 2023, 11:58:49 pm

RSS Feed Poster Database Error by SMFHacks
May 22, 2023, 06:26:18 pm

Errors With Older Version. by Ken.
May 09, 2023, 05:35:40 pm

Pretty Urls SEO Pro by SMFHacks
May 06, 2023, 03:30:11 pm

New Post Image Upload Error by Mike66
April 28, 2023, 07:30:28 am

Copyright Removal Key by SMFHacks
April 03, 2023, 02:44:28 pm

Converting from Aeva Media by sudhakar
April 02, 2023, 11:09:54 am

Using SMF's Built-in Search Algorithm by shuban
March 27, 2023, 09:15:10 am

Powered by EzPortal