News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

menu buttons are black text

Started by hellbent64, May 06, 2011, 09:00:59 PM

Previous topic - Next topic

hellbent64

i finally got the buttons to show up on my custom theme menu bar, but they are in black instead of white.  it is very hard to read.  is there a setting to change the text color?

http://aquaponicsinparadise.com/APforums/index.php?action=forum

"Gallery Picasa Gallery Fishy Shop Contact" are off centered and black.  any suggestions?

i am using a theme called blue23 but its been modified.
v 1.1.13

mashby

The extra menu items aren't wrapped in <li></li> dealios. Look in the index.template.php file for that theme, specifically the template_menu() function. If you want to attach that file to a reply, I could have a look at it too.
Always be a little kinder than necessary.
- James M. Barrie

hellbent64

i cant access the file from here, but i can edit it.  i see what you mean, but where do i put in the <li> tags?

   // 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>' : '';

     
   // the [picasagallerybrowser] button
      echo ($current_action == 'picasagallerybrowser' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'picasagallerybrowser' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=picasagallerybrowser">' , $txt['picasa_gallery']  , '</a>
            </td>' , $current_action == 'picasagallerybrowser' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
           
   //Begin SMFShop code
   //loadLanguage("shop");
   echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
         <td valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
            <a href="', $scripturl, '?action=shop">Fishy Shop</a>
         </td>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
   //END SMFShop code

   // the [contact] button
   if ($context['allow_view_contact'])
      echo ($current_action == 'contact' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'contact' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=contact">' , $txt['smfcontact_contact']  , '</a>
            </td>' , $current_action == 'contact' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // If the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
   echo '<li', $current_action == 'login' ? ' id="active"' : '', '><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';

   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
   echo '<li', $current_action == 'register' ? ' id="active"' : '', '><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';

   // Otherwise, they might want to [logout]...
   if ($context['user']['is_logged'])
   echo '<li', $current_action == 'logout' ? ' id="active"' : '', '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';
   echo '
           </ul>';

mashby

Replace all of that with this:
   // the [SMF Gallery] button
   if ($context['allow_smfgallery_view'])
   echo '<li', $current_action == 'gallery' ? ' id="active"' : '', '><a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</a></li>';
     
   // the [picasagallerybrowser] button
   echo '<li', $current_action == 'picasagallerybrowser' ? ' id="active"' : '', '><a href="', $scripturl, '?action=picasagallerybrowser">' , $txt['picasa_gallery']  , '</a></li>';
           
   //Begin SMFShop code
   //loadLanguage("shop");
   echo '<li', $current_action == 'shop' ? ' id="active"' : '', '><a href="', $scripturl, '?action=shop">Fishy Shop</a></li>';
   //END SMFShop code

   // the [contact] button
   echo '<li', $current_action == 'contact' ? ' id="active"' : '', '><a href="', $scripturl, '?action=contact">' , $txt['smfcontact_contact']  , '</a></li>';

   // If the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
   echo '<li', $current_action == 'login' ? ' id="active"' : '', '><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';

   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
   echo '<li', $current_action == 'register' ? ' id="active"' : '', '><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';

   // Otherwise, they might want to [logout]...
   if ($context['user']['is_logged'])
   echo '<li', $current_action == 'logout' ? ' id="active"' : '', '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';
   echo '
           </ul>';

The theme you are using constructs the menu using <li> elements rather than <td> elements.
Always be a little kinder than necessary.
- James M. Barrie

hellbent64

wow, awesome!  thank you very much!
i been ignoring it for weeks, wish i had posted this sooner!

Advertisement: