Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Eyeball Theme: How to have the hidden "login register" menu -always- visible?  (Read 7535 times)

0 Members and 1 Guest are viewing this topic.

cnymike

  • Coppermine newbie
  • Offline Offline
  • Posts: 16

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
« Last Edit: January 22, 2005, 09:50:21 pm by GauGau »
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray

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')

Logged

cnymike

  • Coppermine newbie
  • Offline Offline
  • Posts: 16

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?
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray

Just make a copy of eyeball and call it something else like eyelid ;) make the changes to the copy.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231

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.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

skypix

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25

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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231

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.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

skypix

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25

Gotcha, thanks a lot

Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.