News:

Wondering if this will always be free?  See why free is better.

Main Menu

Gallery and SMF

Started by Poisonhearts, March 27, 2007, 12:47:17 PM

Previous topic - Next topic

Poisonhearts

I have a custom theme installed for SMF and I installed the SMF Gallery Mod. I figured out how to put a link near my other buttons but it's off to the top a bit. Also how would I make it a button like the rest. URL is www.darkbrotherhoodsociety.com/forum .Here's the code where I put it (thought I'd include the code I inserted and some code surrounding it) :

// The start of tab section.

   // Show the [galley] button.
   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">Gallery</a>
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
   // Show the [home] button.
   echo '<div id="tabs6"><ul>';
    echo '<li><a href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';
   // Show the [help] button.
   echo '<li><a href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';
   // How about the [search] button?
   if ($context['allow_search'])

IchBin™

IchBin™        TinyPortal

Poisonhearts

I've already looked over that. And it's how to do it on a default theme, not the custom theme I use :).

IchBin™

#3
If you look at your button code and compare it to the home button code do you see similarities?

You be using something similar to this:
// Show the [help] button.
   echo '<li><a href="', $scripturl, '?action=gallery"><span>Gallery</span></a></li>';


Also make sure you place this after the home button so that its inside the <ul> tag.
IchBin™        TinyPortal

Poisonhearts

Ok thanks I removed my code and inserted that code and it worked perfectly, thanks for the help.

~Much Love

Advertisement: