Loading...
 
Skip to main content

phplayers horiz menu breaks overlib popups like userlink

Status
Closed
Subject
phplayers horiz menu breaks overlib popups like userlink
Version
1.9.x
Category
  • Error
Feature
Menu
Theme: Look & feel, Styles, CSS, Theme Control Center
Resolution status
Wont Fix
Submitted by
Nelson Ko
Volunteered to solve
Nelson Ko
Rating
(0)
Description

When you rollover any of the phplayers horiz menu, causing the menu to popup, and then subsequently try to use an overlib, e.g. the userlink popup that appears when you rollover the name of a user, the overlib will fail with javascript error "windowWidth is not a function".

The reason is because phplayers layersmenu.js (or if you have copied its contents into another file like layersmeny-header.ijs) defines windowWidth as it works, destroying the overlib function.

Solution

The reason is because phplayers layersmenu.js (or if you have copied its contents into another file like layersmeny-header.ijs) defines windowWidth as it works, destroying the overlib function.

Possible solution is to rename windowWidth variable in phplayers whereever it is used to avoid conflict.

-- update: I think the best solution is to change all windowWidth references and calls in overLIB to olWindowWidth. However, this is a case of 2 external libraries clashing with each other. I have written to the author of overLIB to suggest he include this change in his next version. Keep watch for it.

Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
928
Created
Friday 03 November, 2006 07:56:47 UTC
by Unknown
LastModif
Tuesday 12 June, 2007 18:47:42 UTC


Show PHP error messages