SMFHacks.com

SMF Gallery Lite => SMF Gallery Lite => Topic started by: xfinity on January 28, 2011, 04:52:25 pm

Title: SMF Gallery Lite button on menu
Post by: xfinity on January 28, 2011, 04:52:25 pm
This is strange. I had Gallery link it working once and then not sure why it stopped working now. I am using SMF 1.1.12. Using theme called SilentWave_1111.

My Gallery link is http://hmoobforums.net/index.php?action=gallery

I put these in my index.template.php file but not seeing Gallery on the Menu

// Show the [gallery] button.
         echo '<li', $current_action == 'gallery' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=gallery"><b>' , 'Gallery' , '</b></a></li>';

Permission are good too!

Any help?
Title: Re: SMG Gallery Lite button on menu
Post by: SMFHacks on January 28, 2011, 05:06:51 pm
You put in your index.template.php of the theme that your using. Cause that should be it.
Title: Re: SMG Gallery Lite button on menu
Post by: xfinity on January 28, 2011, 05:09:17 pm
You put in your index.template.php of the theme that your using. Cause that should be it.

Thanks. Yes, I did put that in there and it was working fine up until today. I don't remember doing anything to it. Permission hasn't changed at all. The codes are still in the index.template.php in the theme I am using. Weird.

Not sure what else could have caused it not/ no longer showing up.
Title: Re: SMG Gallery Lite button on menu
Post by: SMFHacks on January 28, 2011, 05:18:58 pm
Yeah that should be it you don't have any language strings nor using permissions in the code that you posted.
Title: Re: SMG Gallery Lite button on menu
Post by: xfinity on January 31, 2011, 06:02:48 pm
Hi,

I finally got it to work but it doesn't look right. I'm a total newbie so please tell me what I missed.


Please see image attached here. Thanks for your help
Title: Re: SMF Gallery Lite button on menu
Post by: SMFHacks on February 02, 2011, 01:05:44 pm
Attach your index.template.php