Error on my menu link ... Any suggestions ?

Discussion in 'PHP' started by Eskarina, Apr 3, 2008.

  1. #1
    Hi,

    I'm trying to customize an smf forum theme and add google member maps plug in to it. I have got it all working except for one thing ... the google member map button is messing up the menu bar.

    The problem I think (total noob) is that the default button code has some style attached and all my other buttons are in css/list format. I've managed to edit some of the other buttons and get them to look how I want, but I just can't get the map button to do what I want.

    Here is the map button code:

    // Google Maps Mod
    	if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))
    		echo ($current_action == 'googlemap' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
    				<td class="maintab_' , $current_action == 'googlemap' ? 'active_back' : 'back' , '">
    					<a href="', $scripturl, '?action=googlemap">' , $txt['googleMap'] , '</a>
    				</td>' , $current_action == 'googlemap' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
    Code (markup):
    And here is one of my other buttons that works fine on my menu:

    // FlashChat!
    	global $modSettings;
    	if ($context['user']['is_logged'])
    		echo '
    		        <li><a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>' ,'Chat', (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
    				</li>';
    Code (markup):
    Here is a picture of what it's doing, it has aligned itself up the top and making the log out button under it :(
    [​IMG]

    I'd really appreciate any suggestions because I don't want to drop the google member map add-on just because of this.

    :)
     
    Eskarina, Apr 3, 2008 IP
  2. Eskarina

    Eskarina Guest

    Messages:
    608
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's ok, I fixed it now :)
     
    Eskarina, Apr 3, 2008 IP