Spread the word...If we did a good job for you, don't be afraid to tell em who helped ya out.
0 Members and 1 Guest are viewing this topic.
wdm2005, it is possible to switch the current SMF menu with one of these. Although, it is past my knowledge.
/**** These are for the dropdown menus.****/a.subPro-link:link, a.subPro-link:visited, a.subPro-link:active { color: #005177; text-decoration: none; border: 0; display: block; background-color: #d8d8d7; text-align: left; padding-left: 5px; line-height: 20px; vertical-align: middle; }a.subPro-link:hover { color: #003366; text-decoration: none; border: 0; background-color: #d1edff; }a.subMenu-link:link, a.subMenu-link:visited, a.subMenu-link:active { color: #005177; text-decoration: none; border: 0; display: block; background-color: #d8d8d7; text-align: left; padding-left: 5px; line-height: 20px; vertical-align: middle; }a.subMenu-link:hover { color: #003366; text-decoration: none; border: 0; background-color: #d1edff; }
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script> <script language="javascript" type="text/javascript" src="', $settings['theme_url'], '/dropdown.js"></script>
// Show the menu up top. Something like [home] [help] [profile] [logout]...function template_menu(){ global $context, $settings, $options, $scripturl, $txt; // Show the [home] and [help] buttons. echo '<a href="', $scripturl, '">' .$txt[103] . '</a>', $context['menu_separator'], '<a href="', $scripturl, '?action=help">' . $txt[119] . '</a>', $context['menu_separator'];/* <!-- TPortal Section -->if($settings['TPortal_front_type']!='boardindex') // Show the [forum] button. echo '<a href="', $scripturl, '?action=forum">'.$txt['tp-forum'].'</a>', $context['menu_separator'];*//* // How about the [downloads] button? if ($context['user']['is_logged'])echo '<a href="', $scripturl, '#dwnldlinks" onmouseover="return overlay(this, \'dwnldlinks\',\'bottom\')">' . $txt[dwnldlinks] . ' </a> <!--Do not remove outer most DIV tag with id="downldlinks"--><DIV id="dwnldlinks" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 150px; padding: 2px; display:none">'; if ($context['user']['is_logged']) echo '<a class="subDwn-link" href="', $scripturl, '?action=tpmod;dl=upload">' . $txt[tp-dlupload] . '</a>';echo '<div align="left"><a class="subDwn-link" href="#" onmouseout="overlayclose(\'downldlinks\'); return false"></a></div></DIV>';<!-- End TPortal Section --> */ // How about the [admin info] button? if ($context['allow_admin'])echo ' <a href="', $scripturl, '#adminlinks" onmouseover="return overlay(this, \'adminlinks\',\'bottom\')">' . $txt[adminlinks] . ' </a> <!--Do not remove outer most DIV tag with id="adminlinks"--><DIV id="adminlinks" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 150px; padding: 2px; display:none">'; // Is the user allowed to administrate at all? ([admin]) if ($context['allow_admin']) echo '<a class="subPro-link" href="', $scripturl, '?action=admin">Admin Main</a><a class="subPro-link" href="', $scripturl, '?action=news">' . $txt[102] . '</a><a class="subPro-link" href="', $scripturl, '?action=packages">Packages</a><a class="subPro-link" href="', $scripturl, '?action=manageboards">Boards</a><a class="subPro-link" href="', $scripturl, '?action=postsettings">Post & Topics</a><a class="subPro-link" href="#" onmouseout="overlayclose(\'adminlinks\'); return false"></a></DIV>', $context['menu_separator'];// How about the [search] button? if ($context['user']['is_logged']) echo '<a href="', $scripturl, '?action=search">' . $txt[182] . '</a>', $context['menu_separator'];// How about the [user info] button? if ($context['user']['is_logged'])echo '<a href="', $scripturl, '#userlinks" onmouseover="return overlay(this, \'userlinks\',\'bottom\')">' . $txt[userlinks] . ' </a> <!--Do not remove outer most DIV tag with id="userlinks"--><DIV id="userlinks" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 150px; padding: 2px; display:none">'; // Edit Profile... [profile] if ($context['allow_edit_profile']) echo '<a class="subMenu-link" href="', $scripturl, '?action=profile">' . $txt[79] . ' Main</a><a class="subMenu-link" href="', $scripturl, '?action=profile;u=', $context['user']['id'], ';sa=forumProfile">Forum Info</a><a class="subMenu-link" href="', $scripturl, '?action=profile;u=', $context['user']['id'], ';sa=account">Account Settings</a><a class="subMenu-link" href="', $scripturl, '?action=profile;u=', $context['user']['id'], ';sa=theme">Look & Layout</a><a class="subMenu-link" href="', $scripturl, '?action=pm">' . $txt[pm_short] . '</a><a class="subMenu-link" href="#" onmouseout="overlayclose(\'userlinks\'); return true"></a></DIV>', $context['menu_separator']; // The [calendar]! if ($context['allow_calendar']) echo '<a href="', $scripturl, '?action=calendar">' . $txt['calendar24'] . '</a>', $context['menu_separator']; // If the user is a guest, show [login] and [register] buttons. if ($context['user']['is_guest']) { echo '<a href="', $scripturl, '?action=login">' . $txt[34] . '</a>', $context['menu_separator'], '<a href="', $scripturl, '?action=register">' . $txt[97] . '</a>'; } // Otherwise, they might want to [logout]... else echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' . $txt[108] . '</a>'; }
A long time back I implemented a Milonic menu into a forum and played around withthe default them a little. It's still there today
should be the same way, Wayne.. might want to check the subs.php file for it tho.. post back with any problems
// Show the menu up top. Something like [home] [help] [profile] [logout]...function template_menu(){ global $context, $settings, $options, $scripturl, $txt; // Work out where we currently are. $current_action = 'home'; if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers'))) $current_action = 'admin'; if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'shop','arcade', 'pm', 'gallery'))) $current_action = $context['current_action']; if ($context['current_action'] == 'search2') $current_action = 'search'; if ($context['current_action'] == 'theme') $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin'; if ($context['current_action'] == 'chat') $current_action = 'chat'; // Are we using right-to-left orientation? if ($context['right_to_left']) { $first = 'last'; $last = 'first'; } else { $first = 'first'; $last = 'last'; } // Show the start of the tab section. echo ' <div id="topmenu"> <ul>'; // Show the [home] button. echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>'; // SMF Arcade echo '<li><a' , $current_action=='arcade' ? ' class="current"' : '' , ' href="', $scripturl, '?action=arcade"><span>' , Arcade , '</span></a></li>'; // SMF Shop echo '<li><a' , $current_action=='shop' ? ' class="current"' : '' , ' href="', $scripturl, '?action=shop"><span>' , Shop , '</span></a></li>'; // SMF Gallery echo '<li><a' , $current_action=='gallery' ? ' class="current"' : '' , ' href="', $scripturl, '?action=gallery"><span>' , Gallery , '</span></a></li>'; // Show the Chat button. echo '<li><a' , $current_action=='chat' ? ' class="current"' : '' , ' href="', $scripturl, '?action=chat"><span>' , Chat , '</span></a></li>'; // How about the [search] button? if ($context['allow_search']) echo '<li><a' , $current_action=='search' ? ' class="current"' : '' , ' href="', $scripturl, '?action=search"><span>' , $txt[182] , '</span></a></li>'; // The [calendar]! if ($context['allow_calendar']) echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>'; // Is the user allowed to administrate at all? ([admin]) if ($context['allow_admin']) echo '<li><a' , $current_action=='admin' ? ' class="current"' : '' , ' href="', $scripturl, '?action=admin"><span>' , $txt[2] , '</span></a></li>'; // Edit Profile... [profile] if ($context['allow_edit_profile']) echo '<li><a' , $current_action=='profile' ? ' class="current"' : '' , ' href="', $scripturl, '?action=profile"><span>' , $txt[79] , '</span></a></li>'; // Go to PM center... [pm] if ($context['user']['is_logged'] && $context['allow_pm']) echo '<li><a' , $current_action=='pm' ? ' class="current"' : '' , ' href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span></a></li>'; // the [member] list button if ($context['allow_memberlist']) echo '<li><a ' , $current_action=='mlist' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>'; // If the user is a guest, show [login] button. if ($context['user']['is_guest']) echo '<li><a ' , $current_action=='login' ? ' class="current"' : '' , ' href="', $scripturl, '?action=login"><span>' , $txt[34] , '</span></a></li>'; // If the user is a guest, also show [register] button. if ($context['user']['is_guest']) echo '<li><a ' , $current_action=='register' ? ' class="current"' : '' , ' href="', $scripturl, '?action=register"><span>' , $txt[97] , '</span></a></li>'; // Otherwise, they might want to [logout]... if ($context['user']['is_logged']) echo '<li><a ' , $current_action=='logout' ? ' class="current"' : '' , 'href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>' , $txt[108] , '</span></a></li>'; echo ' </ul> </div>';}// Generate a strip of buttons.function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = ''){ global $settings, $buttons, $context, $txt, $scripturl; // Create the buttons... foreach ($button_strip as $key => $value) { if (isset($value['test']) && empty($context[$value['test']])) { unset($button_strip[$key]); continue; } elseif (!isset($buttons[$key]) || $force_reset) $buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>'; $button_strip[$key] = $buttons[$key]; } if (empty($button_strip)) return '<td> </td>'; echo ' <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td> <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' | ', $button_strip) , '</td> <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';}
You want a drop down menu in the tab area is that what you mean. Welcome to the site btw.
Ah I see. Have you tried here for the right code to use. I have never replaced them but I have put additional row of tabs across the top of the forum:http://www.dynamicdrive.com/dynamicindex1/index.htmlThis is a great place to pick a menu and get all the stuff you need for it; then all we have to do is impliment it.
I Need help with dropdown in DzStudio's DarkBreak Theme... Its not showing dropdown....