Dispaly "@" menu automatically Dispaly "@" menu automatically
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Dispaly "@" menu automatically

Started by Antifmradio, January 06, 2006, 02:47:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Antifmradio

at my gallery www.clubexl.com/gallery

in the main menu you can see the "@" symbol
im afraid that most people will not understand here are functions under that link

How can i display all the menu items when that page loads w/o the user having to scroll over it.

When the page loads it looks like "@" between this and that menu link

when you roll over it theres a popout menu which displays all the
" | Home | My gallery | Upload file | FAQ | Logout [Whatever User] | "
at page load?

Blueiris

Open style.css for that theme. Look for #SYS_MENU. In the style list for #SYS_MENU, find the line "visibility: hidden;" and delete it.

The visibility of that menu is toggled by the javascript function MM_showHideLayers() which is at the top of the file template.html. Open that file and either comment out the function, or delete it.

Next, open theme.php for that theme. Find "// HTML template for template sub_menu". That is an if/else statement. Scroll down through the code below that line and look for the td tag shown below in BOTH the if and the else, and delete exactly that code:

Quote<td class="top_menu_bttn">
                                                <a href="javascript:;" onmouseover="MM_showHideLayers('SYS_MENU','','show')">@</a>
                                        </td>
                                        <td><img src="themes/GalleryGrey/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>

That will remove the @ button, since it's not needed if the menu is to be visible all the time.

Next, just to clean up the code, look through that if/else statement again, and delete every instance of

Quoteonmouseover="MM_showHideLayers('SYS_MENU','','hide')"

My users don't get the @ sign either, so I had just mapped out how to keep the menu showing on my Gallery. I recommend that you back up styles.css, theme.php, and template.html before you make the changes!
You can lead a horse to water, but you can't make him drink - he's got to discover that it's wet for himself.

Antifmradio

Thanks Iris
got it all worked out.. seems like it works fine
theres some kinda little off TWEEK that is showing from one of my menus now though

when you look at the SYSTEM menu (the one that starts with the button Clubexl, Album List, etc)
the background looks off because it seems theres an extra "RETUN"

what do you think? or is it just my screen?
www.clubexl.com/gallery

...and yes i have backed up the files

Blueiris

What I'm seeing when I go to your URL is the login page. On the menu there, it looks like "Album list" got misplaced when you deleted the @ button out of the if/else statement in theme.php. "Album list" is now in plain text above the buttons, which is pushing the buttons down a line.

The box below shows what the if/else statement in theme.php should be after the @ button is removed. Try copying and pasting into your theme.php, and see if it puts things back in the right places!

Quote// HTML template for template sub_menu
// special note: I left the java 'hide' off of the first and third buttons to help avoid trouble keeping sys_menu open. :Donnoman
if ($CONFIG['custom_lnk_url'] != '') {
$template_sub_menu = <<<EOT
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
<!-- BEGIN custom_link -->
                              <td class="top_menu_left_bttn">
                                                <a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
<!-- END custom_link -->
                                        <td class="top_menu_bttn">
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                       
                                        <td class="top_menu_bttn">
                                                <a href="{LASTUP_TGT}" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTCOM_TGT}" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPN_TGT}" title="{TOPN_LNK}">{TOPN_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPRATED_TGT}" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{FAV_TGT}" title="{FAV_LNK}">{FAV_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_right_bttn">
                                                <a href="{SEARCH_TGT}" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
                                        </td>
                                        <td width="100%">&nbsp;</td>
                                </tr>
                        </table>
EOT;

} else {

$template_sub_menu = <<<EOT
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
<!-- BEGIN custom_link -->
<!-- END custom_link -->
                                        <td class="top_menu_left_bttn">
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                       
                                        <td class="top_menu_bttn">
                                                <a href="{LASTUP_TGT}" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTCOM_TGT}" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPN_TGT}" title="{TOPN_LNK}">{TOPN_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPRATED_TGT}" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{FAV_TGT}" title="{FAV_LNK}">{FAV_LNK}</a>
                                        </td>
                                        <td><img src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" alt="" /><br /></td>
                                        <td class="top_menu_right_bttn">
                                                <a href="{SEARCH_TGT}" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
                                        </td>
                                        <td width="100%">&nbsp;</td>
                                </tr>
                        </table>
EOT;
}

You can lead a horse to water, but you can't make him drink - he's got to discover that it's wet for himself.