forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: cnymike on January 22, 2005, 03:33:24 pm

Title: Eyeball Theme: How to have the hidden "login register" menu -always- visible?
Post by: cnymike on January 22, 2005, 03:33:24 pm
In the Eyeball Theme, the Register Login menu is hidden until you mouse-over the home.gif icon. How can I modify the code to prevent this behavior? I would like the login menu to always be visible.

It looks like it's using javascript to accomplish that and I don't know  much about using javascript.

Thanks.

Michael
Title: Re: Eyeball Theme: How to have the hidden "login register" menu -always- visible?
Post by: donnoman on January 22, 2005, 05:32:53 pm
in eyeballs template.html
remove this entire section:
Code: [Select]
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
and Remove visibility:hidden; from the following:
Code: [Select]
<div id="Menu1" style="position:absolute; width:780px; height:30px; z-index:1; left: 22px; top: 47px; visibility: hidden;">



In eyeballs theme.php

in $template_main_menu2

remove all of the occurances of
Code: [Select]
onMouseOver="MM_showHideLayers('Menu1','','hide')and
Code: [Select]
onMouseOver="MM_showHideLayers('Menu1','','show')

Title: Re: Eyeball Theme: How to have the hidden "login register" menu -always- visible
Post by: cnymike on January 22, 2005, 06:49:38 pm
Thanks for the help. One further question though...

Would it be a good idea to comment out that section of code, instead of removing it, in case I change my mind later?
Title: Re: Eyeball Theme: How to have the hidden "login register" menu -always- visible?
Post by: donnoman on January 22, 2005, 08:37:31 pm
Just make a copy of eyeball and call it something else like eyelid ;) make the changes to the copy.
Title: Re: Eyeball Theme: How to have the hidden "login register" menu -always- visible
Post by: Casper on January 22, 2005, 08:48:46 pm
If you do what Donnoman suggested, you will have to make sure every url in the theme.php, template.html and style.css that is currently at 'themes/eyeball/...' is also changed.(unless you have both folders on your server)

Commenting out is fine.
Title: Re: Eyeball Theme: How to have the hidden "login register" menu -always- visible
Post by: skypix on February 03, 2005, 08:45:22 pm
Casper, not sure what you mean by "every url in the theme.php, template.html and style.css that is currently at 'themes/eyeball/..."  which URLs do you mean in those files?

thanks for your help
Title: Re: Eyeball Theme: How to have the hidden "login register" menu -always- visible
Post by: Casper on February 03, 2005, 09:17:30 pm
if you make a theme called 'skypix' which is a copy of the theme called 'eyeball' then the images etc in the new theme will be at the location 'themes/skypix/images/.....', so you will have to change every reference in the template.html, theme.php, and style.css, that refers to 'themes/eyeball' to themes/skypix'.

If you don't, either the effects of the theme will still use the eyeball pics and css, if the theme exists in the themes folder, or they will be missing if it doesn't.
Title: Re: Eyeball Theme: How to have the hidden "login register" menu -always- visible
Post by: skypix on February 04, 2005, 12:24:27 am
Gotcha, thanks a lot