Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 251
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 136
Total: 136

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

+- Recent Topics

Please Help! by SMFHacks
Today at 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

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal