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

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 46
Total: 46
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Gallery button has wrong link  (Read 1006 times)
Mr.B
Newbie
*
Offline Offline

Posts: 3


View Profile
« on: December 01, 2010, 11:19:46 pm »

I just recently installed SMF 1.1.12, and also installed Gallery lite 3.0.2. Evrything is up and running, but the gallery button links, by default, to the home page. If I add "smf/" between the ".com/" and the "index.php?action=gallery", the gallery opens up. Also I can go into the admin section of gallery, to make changes, using the same smf/ method. But I can't make any changes. Because when I click save, it defaults back to the home page, and doesn't save the changes. I assume that it is either a index.php problem, or a template problem. I'm just too newb to figure it out.

 Thank you for your help.
Logged
Mr.B
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #1 on: December 08, 2010, 09:44:25 pm »

Well it's been about a week now, and I still haven't figured it out. There's over 50 views, but no comments. I've moved files around, with no results. Maybe I should re-install?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #2 on: December 09, 2010, 12:27:58 am »

It should be in the index.template.php of your theme should be point to $scripturl . '?action=gallery'
Logged
Mr.B
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #3 on: December 09, 2010, 01:19:28 am »

Like this? I changed it a period, it didn't help.

   // the [SMF Gallery] button
   if ($context['allow_smfgallery_view'])
      echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</a>
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
« Last Edit: December 09, 2010, 01:21:02 am by Mr.B » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #4 on: December 09, 2010, 08:57:56 am »

That's it and looks correct
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 08:02:50 am]

[Today at 04:11:41 am]

[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]
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 0.211 seconds with 20 queries.