SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 23, 2012, 01:33:23 pm

Login with username, password and session length
Members
Total Members: 10069
Latest: tetsujrock
Stats
Total Posts: 28682
Total Topics: 4975
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 75
Total: 75
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: "My Images" & "Search" buttons  (Read 6579 times)
ib2loud
Newbie
*
Offline Offline

Posts: 12


View Profile
« 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!
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« 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?
Logged
ib2loud
Newbie
*
Offline Offline

Posts: 12


View Profile
« 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
Logged
ib2loud
Newbie
*
Offline Offline

Posts: 12


View Profile
« Reply #3 on: September 13, 2008, 09:12:59 pm »

I figured it out, thanks
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« 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?
Logged
ib2loud
Newbie
*
Offline Offline

Posts: 12


View Profile
« 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)
Logged
Matt5L
Newbie
*
Offline Offline

Posts: 7


View Profile
« 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 » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« 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
Logged
Matt5L
Newbie
*
Offline Offline

Posts: 7


View Profile
« 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?!
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« 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.
Logged
Matt5L
Newbie
*
Offline Offline

Posts: 7


View Profile
« 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

* Gallery.php (55.96 KB - downloaded 313 times.)
Logged
Matt5L
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #11 on: October 21, 2008, 07:43:10 pm »

Worked great thanks
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]

[May 17, 2012, 12:38:16 pm]

[May 15, 2012, 09:32:27 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 5.094 seconds with 19 queries.