Firefox PHP

Module: Jumpmenu

Posted by Maurice Makaay 
All files from this thread

File Name File Size   Posted by Date  
jumpmenu-1.2.2.zip 17.9 KB open | download Maurice Makaay 08/31/2016 Read message
jumpmenu.jpg 32.6 KB open | download Maurice Makaay 05/25/2009 Read message
Module: Jumpmenu
November 22, 2007 02:21PM
This module adds a menu to the Phorum pages, which can be used to quickly
select a forum to jump to. Forum folders will be shown as submenus.

This module is a full rewrite of the 5.1 jumpmenu module. You can see it in action at [secretsauce.phorum.org] (hover your mouse over "Jump to forum ..." above the search box).

TODO:
  • Add options for showing "Private Messages" and "Followed Topics" in the top level popup.

Changelog:
---------

2016-08-31 v1.2.2 by Oliver Riesen-Mallmann <oliver@riesen.org>

    - Made XHTML 1.0 Transitional compliant.

2015-09-18 v1.2.1 Oliver Riesen <oliver@riesen.org>

    - Bugfix for special characters in forum name.

    - Outdated rel attribut removed.

2011-01-14 v1.2.0

    - Updated the module to make use of jQuery for the javascript code.

    - Fixed various issues that could cause incorrect placement of the
      jumpmenu menus.

    - Added new German language files by Oliver Riesen.

2009-05-24 v1.1.9

    - Added compatibility for using the jumpmenu within a vroot.

    - Added a German translation by Oliver Riesen and a French
      translation by Manu. Thanks guys!

    - Replaced the CSS :hover classes with scripted highlighting
      code. As a result, we were able to visualize the path that the user
      followed in the jumpmenu, by keeping selected entries in higher
      menu levels active. This behavior matches the behavior that one
      can observe by default in OS menus.

2008-11-08 v1.1.8

    - Fixed the rendering of the popup menu with extra options for
      MSIE. In MSIE, the separator was pushing the menu to full screen
      width, which is not too practical for a menu.

    - Fixed bug: when hovering over the separator, the menu code did
      not detect that the pointer was still on the menu and closed the
      popup menu after a little while.

2008-11-08 v1.1.7

    - Added a hook "jumpmenu_add" to the module, which can be used by
      other modules to add extra items to the root level popup of
      the jump menu. The first implementation of an extra menu item
      has been added to the Recent Messages module.

2008-04-15 v1.1.6

    - Added a module template for the "classic" Phorum template.

2007-12-14 v1.1.5

    - Fixed a problem with the jumpmenu for cases where no forums are
      visible at all for the visitor (for example in case all forums are
      restricted for reading by their permissions).
      Thanks to Steve Healy for reporting the problem.

2007-11-26 v1.1.4

    - Some improvements in the javascript library for positioning the
      menus in case the root node is inside an "absolute" or "relative"
      positioned element (thanks to Matthias for having a site design
      that broke my code and for taking the time to test out a *lot*
      of new test versions to fix that ;-).

2007-11-22 v1.1.3

    - Empty folders are no longer shown in the menu.

    - If hovering over a forum menu item, the submenus below the
      folder in which the forum menu item resides will be collapsed.

    - Fixed some JavaScript errors that occurred when hovering over the
      menu during page unloading.

    - Implemented an <iframe> (yech!) based work around for letting the
      menus cover windowed elements in MSIE (like <select> lists, which
      would otherwise always be on top of the menus).

2007-11-02 v1.1.2

    - Implemented the new css_register and javascript_register hooks
      This requires for Phorum 5.2.2 or newer.

2007-10-23 v1.1.1

    - Added Turkish language file.
      Thanks to Serdar of paticik.com.

2007-10-08 v1.1.0

    - Full rewrite of the old jumpmenu. The jumpmenu now makes use of
      javascript driven menus with submenu's to display folders.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 13 time(s). Last edit at 08/31/2016 03:08PM by Oliver Riesen-Mallmann.
Attachments:
open | download - jumpmenu-1.2.2.zip (17.9 KB)
Re: Module: Jumpmenu
November 26, 2007 03:27AM
Uploaded version 1.1.4 of the module, which fixes some problems with positioning the menus in case the root node is within an absolute or relative positioned element. If you tried the module and the menu's did not show up or were visible at the wrong spot, then this might fix it for you.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Jumpmenu
December 13, 2007 02:44AM
I am trying to use this module with 5.2.2 and a slightly modified template, based on emerald. I don't think I've changed anything that would affect this, but who knows?

The module seems to work fine on list.php and read.php.

On index.php, where the breadcrumbs disappear, the jump menu "jumps" to the left side where the breadcrumbs would be, and all the links appear at the bottom of the page, without the javascript menus.

On login.php, it displays the word "Array" at the bottom of the page. This may be due to the fact that all of my forums are private, and so if you're not logged in there are no forums to jump to.

Here is a snippet of the html from login.php with "Array" in it:

                </form>
            </td>
        </tr>

    </table>
</div>

Array










<script type="text/javascript">
//<![CDATA[

// See if we already have an element with id="mod_jumpmenu" in the page.
var m = document.getElementById('mod_jumpmenu_root');



Edited 1 time(s). Last edit at 12/13/2007 02:56AM by stevehealy.
Re: Module: Jumpmenu
December 13, 2007 02:48AM
Quote
stevehealy
On index.php, where the breadcrumbs disappear, the jump menu "jumps" to the left side where the breadcrumbs would be, and all the links appear at the bottom of the page, without the javascript menus.

This behavior disappeared. I think maybe all I needed was a refresh of css?
Re: Module: Jumpmenu
December 13, 2007 11:42AM
I think it's indeed javascript that you were missing here. The "Array" one is strange though. That should not happen. I'll try to find out what causes this. You still see the "Array" in your code?


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Jumpmenu
December 13, 2007 06:35PM
Yes, still seeing "Array".

Also, just noticed a hundred of these in the event log:

Quote
event log
Message:

PHP notice: Array to string conversion

PHP notice generated at /var/www/html/forum/mods/jumpmenu/jumpmenu.php:109

Back trace:

Function implode called at
{path to Phorum}/mods/jumpmenu/jumpmenu.php:109
----
Function phorum_mod_jumpmenu_common called
----
Function call_user_func_array called at
{path to Phorum}/common.php:933
----
Function phorum_hook called at
{path to Phorum}/common.php:571
----
Function include_once called at
{path to Phorum}/index.php:21
Re: Module: Jumpmenu
December 13, 2007 07:03PM
That log is very helpful, since that is with no doubt the one that is related to the Array output. I don't see it in my own logs. I will check after I finish doing the real important things in life (doing the dishes and cleaning up my cat's mess-previously-known-as-hair-ball at the kitchen floor).


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Jumpmenu
December 14, 2007 10:55AM
Please check if version 1.1.5 of the module fixes your problem.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Jumpmenu
December 14, 2007 06:35PM
Yes, all better. Many thanks!!!
Re: Module: Jumpmenu
April 13, 2008 08:37AM
How can I get this to work using the Classic template?
Sorry, only registered users may post in this forum.

Click here to login