Firefox PHP

Javascript Forum Menu Module

Posted by Joe Curia 
Re: Javascript Forum Menu Module
February 23, 2007 03:41AM
Quote

However I did run into a problem with your custom id. In the help you said to use 'id="javascript_forummenu"' but when I looked in your code you only had "forummenu". I have updated "forummenu" and "forummenu_child" to append "javascript_" to each in v1.02a above.

You're right. That was a help error. I still don't know what the best name would be. After a night of sleep, I think javascript_forummenu would be best, since that matches the mods name. Still, better would be to allow the admin to enter a specific id in case Custom was selected. That would also help them if they already have assigned an id to the element which they want to attach the menu to. On other thing could be to always be able to provide the parent id in the settings. That would give all the tools needed for preventing namespace clashes. The default locations can use the id or generate one themselves if none is filled in. For making things easy, the id can also be put in template variables, so you can use id="{JAVASCRIPT_JUMPMENU_PARENTID}" or so in the templates. That way, the template adapts to the id that was entered in the settings.

Yeah, that's how it should be ;-)

* always provide a parent id field, so the admin can set the id to use;
* custom acts like it does now;
* make parent id available in a template variable.

Quote

My code should do that.

I believe you, no demo required. It was just a bit late and I guess I read over it. I'll take another look today and will probably see something completely different this time.

Quote
Evil Phorum User
FrontPage

*looks the other way and tries to gulp away the nausea*


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Module Update - Version 1.03
February 28, 2007 12:08PM
I have finished v1.03 with these changes:

- Added ability to choose your own folder and forum bullets for the menu. The bullets were also moved to their own "images" folder.
- Added ability to choose custom element id.
- Removed "Goto" and "ForumList" as options as they are not always unique on a page. They may be returned in a future release

The file above contains the latest version of this module.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module Update - Version 1.03
February 28, 2007 12:58PM
I have some other ideas for the mod. To prevent simultaneous editing:
tell me when I can take it and wreck it some more ;-)


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module Update - Version 1.03
February 28, 2007 01:07PM
I am going to use my scarce free-time to work on my colorscheme mod now, so go ahead and run with this one. I will post again if I see a real need or feel a real desire to work on this one again before you release a new version.

BTW, I think you can delete your dutch.php attachment as it is now included. Also, I really mangled the settings.php file now (created my own form instead of using the nice $frm/show you have set up). Sorry if that complicates things for you, but as you coded the original, I'm sure it will be no problem :)


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module Update - Version 1.03
March 01, 2007 11:19AM
Many thanks for a useful, easy to install module!
I've just put it on www.moviedeaths.com/phorum/ - I think my template for that site has the default menu ID removed which confused me at first, but I added the ID to my header and then it worked flawlessly.

/\dam

--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz
Re: Javascript Forum Menu Module
March 05, 2007 10:45PM
Maurice,

Have you started your work on this mod? I have thought of a useful feature I would like to code, but I will wait if you have started your work. I want to add the new flag that appears in the forum list to this menu mod as well.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Javascript Forum Menu Module
March 06, 2007 02:57AM
I didn't start yet, because I'm finishing some other things on my site first. So go ahead please. The lock is yours :)


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Module Update - Version 1.04
March 06, 2007 10:20PM
I have finished v1.04 with these changes:

- Added new message count to drop down menu.
- Added version number to module name in modules list so that admins can easily see if they need to upgrade.

The file in the first post contains the latest version of this module.

Maurice, the ball is back in your court. Thanks for letting me run with it a bit more. Eventually, I would like to learn enough AJAX that the new flag could be up-to-date rather than static with each page load. But that won't be happening any time soon.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald




Edited 1 time(s). Last edit at 03/06/2007 10:23PM by Azumandias.
Re: Module Update - Version 1.04
March 07, 2007 03:22AM
I'm not sure if making this menu that dynamic would really be a requirement. It's all extra load and work for the server. But hey, if people like it this way, why not? As long as I can turn it off I'm happy with it ;-)

"Added version number to module name in modules list so that admins can easily see if they need to upgrade"

Beware that Phorum 5.2 will show the version automatically if there's a version: header in the info.txt file. So on Phorum 5.2, the mod will show up with a double version identification in it. Not interesting for now, but only something to remember for the future.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 1 time(s). Last edit at 03/07/2007 03:25AM by mmakaay.
Re: Javascript Forum Menu Module
March 09, 2007 03:50PM
Maurice,

I have added CMU compatibility to version 1.04. Please be sure to use the new info.txt if you are working on an update.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Your IP address, domain or ISP has been blocked. Please contact the forum administrators.
Sorry, only registered users may post in this forum.

Click here to login