11
Burning
Re: Main Menu - Unordered List ??
  • 2009/9/27 7:29

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

A correct code to display User menu could be somthing like :
/*============ Usermenu block ============*/
#usermenu a {
displayblock;
background-colorinherit;
padding2px;
colorblack;
font-size0.9em;
font-weightnormal;
line-height1em;
}
#usermenu a:hover {
background-colorinherit;
padding-left5px;
color#555;
text-decorationnone !important;
}
#usermenu a.menuTop {}
#usermenu a.highlight {
background-color#333;
color#ccc;
}


It should work. Have you clean XOOPS cache (and browser cache also) ?

12
ghia
Re: Main Menu - Unordered List ??
  • 2009/9/27 7:54

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


These things may differ a little bit depending on the theme or templates used.
.menuSub {
padding-left:60px;
}

For the user menu you have to look in the HTML source of your browser to look up the appropriate selectors for in the CSS file.

(Something weird: the code under two seems to work if it is repeated)

13
darlond
Re: Main Menu - Unordered List ??
  • 2009/9/29 5:40

  • darlond

  • Just popping in

  • Posts: 14

  • Since: 2009/8/7 2


Thanks so much. I did get everything to work ... check it out. It is very strange ... the only way I got the subMenu to padding-left to work was to repeat the code twice in the CSS file. I have not clue why this is but hopefully there will not be problems because of it. Thanks again both of you for all the help.

Another question, although not related to my previous questions. None of the pop-up menus on my site work.

For example, when I am writing this post in this forum, above this text box is a title for the section called "Message" and to the right of the title "Message" are icons to add a link, email, image, image manager, smilies, code, and comment. In every situation on my site, when you click on these icons that are suppose to create a pop-up window, nothing happens.

Any clue on what could be happening here? Is there a preference setting I might have set incorrectly?

Thanks again.

14
ghia
Re: Main Menu - Unordered List ??
  • 2009/9/29 7:34

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Sorry, I made a typing error in my previous post:
#mainmenu a {display: block};

should be
#mainmenu a {display: block;}

(It is corrected now in previous posts)
Probably this is the cause of the weird behaviour and the duplicate rule shouldn't be necessary after correcting this in your file (two occurences).

Your popups don't function, because xoops.js is missing.
See if your theme has this line just before </head>
<{$xoops_module_header}>


15
darlond
Re: Main Menu - Unordered List ??
  • 2009/9/29 21:24

  • darlond

  • Just popping in

  • Posts: 14

  • Since: 2009/8/7 2


I am assuming you mean in the theme.html doc because looking at the XOOPS Default Theme theme.html doc, it has <{$xoops_module_header}> in it. It looks like my theme.html doc is missing <{$xoops_module_header}> and possibly more crucial lines of code. Below is the entire Head section of theme.html. So ... do I just add <{$xoops_module_header}> within the head tag to fix the js problem? Thanks again!!


<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="XOOPS" />
<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_themecss}>" />
</head>

16
optikool
Re: Main Menu - Unordered List ??
  • 2009/9/30 1:09

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Wow, I remember that theme... sorry it is giving you so much trouble. That was a theme I created when I was first learning XOOPS theme development, so some things might be missing. If I was creating it today I would do it differently. Looks nice though.

17
darlond
Re: Main Menu - Unordered List ??
  • 2009/10/2 22:21

  • darlond

  • Just popping in

  • Posts: 14

  • Since: 2009/8/7 2


I have got most things worked out at this point ... at least the ones I know of ... except the JavaScript issue. Any suggestions on getting JavaScript implemented in the site would be helpful. I am not proficient enough to create this from the ground up so plan on continuing to use this one for now.

Login

Who's Online

175 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 175


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits