Module: Jumpmenu
Posted by Maurice Makaay
Re: Module: Jumpmenu August 13, 2009 08:37PM |
Registered: 15 years ago Posts: 753 |
Re: Module: Jumpmenu August 14, 2009 06:07AM |
Admin Registered: 19 years ago Posts: 8,532 |
Sorry, that is not how the module was built. It only acts on the #mod_jumpmenu_root id. Allowing it to display it beneath multiple objects on the same page would require some fundamental changes to the internal architecture of the mod's javascript code.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Jumpmenu August 14, 2009 11:07PM |
Registered: 15 years ago Posts: 753 |
Re: Module: Jumpmenu August 15, 2009 04:38AM |
Admin Registered: 19 years ago Posts: 8,532 |
I don't know really. What is "beneath" and how does it take care of a more convenient selection process? A page where things don't work might help.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Jumpmenu September 02, 2009 10:09PM |
Registered: 20 years ago Posts: 666 |
I don't suppose it's possible to shorten a long list on the hover menu and apply a down arrow so the person can scroll down to more forums? I have a really long list but I can't shorten them, since they're on individual species.
Also, I'm not sure how to get the CSS working. I copied the contents of the module's emerald's css.tpl to my template's css.tpl, and copied over before_footer.php, as well as adding id="mod_jumpmenu_root" to where I wanted the menu to be displayed. The menu displays fine but the css I copied and modified in my css.tpl is being ignored. What did I do wrong?
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Edited 1 time(s). Last edit at 09/02/2009 10:30PM by Ryan.
Also, I'm not sure how to get the CSS working. I copied the contents of the module's emerald's css.tpl to my template's css.tpl, and copied over before_footer.php, as well as adding id="mod_jumpmenu_root" to where I wanted the menu to be displayed. The menu displays fine but the css I copied and modified in my css.tpl is being ignored. What did I do wrong?
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Edited 1 time(s). Last edit at 09/02/2009 10:30PM by Ryan.
Re: Module: Jumpmenu September 03, 2009 02:43AM |
Admin Registered: 19 years ago Posts: 8,532 |
You are right about the first question. Unless somebody writes a new dropdown menu that supports this, there's no easy way to handle this. Maybe some max height on the menu container, which would result in a scrollbar on the side, however that would not be too standard behavior.
For modifying the css, you need to copy mods/jumpmenu/templates/emerald to mods/jumpmenu/templates/yourtemplate and then edit the css from there. The main CSS-file is loaded before the CSS from the module, so your changes are overwritten now.
A quick hack that you could try: change the where parameter to "before" instead of "after" for the two css registrations in jumpmenu.php, function phorum_mod_jumpmenu_css_register(). That would prepend the css code to the main one instead of appending it. If that doesn't break the CSS, then you could override the CSS from the main one.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
For modifying the css, you need to copy mods/jumpmenu/templates/emerald to mods/jumpmenu/templates/yourtemplate and then edit the css from there. The main CSS-file is loaded before the CSS from the module, so your changes are overwritten now.
A quick hack that you could try: change the where parameter to "before" instead of "after" for the two css registrations in jumpmenu.php, function phorum_mod_jumpmenu_css_register(). That would prepend the css code to the main one instead of appending it. If that doesn't break the CSS, then you could override the CSS from the main one.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Jumpmenu September 03, 2009 06:18AM |
Registered: 20 years ago Posts: 666 |
I was able to change all the colors with the default css.tpl supplied, except for the link color (when not highlighted). For some reason it was a color I didn't specify in settings.tpl, I may look into that later. If there is something there for it in the mod's css.tpl, then I missed it--pardon me, just really tired. So I added:
#phorum a.mod_jumpmenu_menu_item {
color: {border_font_color};
}
Edit: Unfortunately for the min-height idea, it stops the coloration of the div menu at the specified height, but the links keep going, providing no scroll bar. Should have known but my css has been rusty lately. What about working with some kind of div overflow: auto?
Edit edit: Scratch that. Although it provides a scroll bar, the cursor can't linger long enough on it before it disappears. With as many forums as I have, I'm disheartened that I can't use this useful mod.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Edited 2 time(s). Last edit at 09/03/2009 06:28AM by Ryan.
#phorum a.mod_jumpmenu_menu_item {
color: {border_font_color};
}
Edit: Unfortunately for the min-height idea, it stops the coloration of the div menu at the specified height, but the links keep going, providing no scroll bar. Should have known but my css has been rusty lately. What about working with some kind of div overflow: auto?
Edit edit: Scratch that. Although it provides a scroll bar, the cursor can't linger long enough on it before it disappears. With as many forums as I have, I'm disheartened that I can't use this useful mod.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Edited 2 time(s). Last edit at 09/03/2009 06:28AM by Ryan.
Re: Module: Jumpmenu November 14, 2009 07:02AM |
Registered: 14 years ago Posts: 41 |
Re: Module: Jumpmenu November 19, 2009 09:55AM |
Registered: 15 years ago Posts: 753 |
Validation of my site results in this last error message:
Attribute "rel" exists, but can not be used for this element.
Error occured in this line:
Let me know if this should concern me or not.
Also, is it possible to inactivate this module within "after_login"? For one user type I do not need it.
Thank you!
Attribute "rel" exists, but can not be used for this element.
Error occured in this line:
Language: HTML…JumpMenu.vroot = 0</script><div rel="mod_jumpmenu_menu" class="mod_jumpmenu_m
Let me know if this should concern me or not.
Also, is it possible to inactivate this module within "after_login"? For one user type I do not need it.
Thank you!
Re: Module: Jumpmenu November 19, 2009 01:24PM |
Admin Registered: 19 years ago Posts: 8,532 |
I see no reason why one would ever need to be really concerned by validation issues. Validation is a nice tool to fix things if they are broken and you want to make sure that your HTML isn't crapped up. Checking an already working website, not that useful IMO. So whether it concerns you is up to you.
after_login is only called at login time, so that's not useful for tweaking behavior for every page. You could check what user is logged in from the common_post_user hook and tweak the list of enabled modules from there.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
after_login is only called at login time, so that's not useful for tweaking behavior for every page. You could check what user is logged in from the common_post_user hook and tweak the list of enabled modules from there.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.