TinyPortal

Development => Support => Topic started by: morris on May 12, 2009, 11:52:42 AM

Title: Help me add a button
Post by: morris on May 12, 2009, 11:52:42 AM
I've read a few things on this website about adding a button and i manage to do it but when its added, all the buttons after my one [commands] drops down a level.

I was ondering if anyone could fix it for me.

I'v attached my index.template.php
Title: Re: Help me add a button
Post by: Lafemme on May 12, 2009, 02:38:09 PM
Hai!

Posting the guidelines really is crusial, since there can be so many different things be happening... this really speeds up you request ;)

Anyway.. maybe this mod is something for you.
Custom Tab (http://custom.simplemachines.org/mods/index.php?mod=1402)

Good Luck!
Title: Re: Help me add a button
Post by: Ianedres on May 12, 2009, 05:46:07 PM
You are inserting another TD column, based on if IE4 was set. But the other buttons don't... so try this instead:

// The [commands] option
if ($current_action == 'commands')
echo '<li><a' , $current_action=='commands' ? ' class="current"' : '' ,
' href="http://www.ultrastunting.com/commands"><span>Commands</span></a></li>';