2007-05-01, 05:45 AM
I'm attempting to incorporate Lightbox 2 ( http://www.huddletogether.com/projects/lightbox2/ ) into a MyBB forum. You can see the forum at http://homeundone.com/
Its working now, any post with an attached photo will open up in Lightbox. The problem is that it doesn't work properly in Firefox because I had to butcher the code a little.
The problem is that like MyBB, Lightbox 2 utilizes the Prototype framework. When both versions of the javascript (Lightbox's full and MyBB shortened) are included they cause a conflict that messes with the editing tools in the newpost/editpost pages.
My solution was to include the MyBB version in the header as usual, and load the Lightbox version right in the postbit_thumnails_thumnail template. This works awesome in IE and Safari, but is visually off in Firefox. I suppose this has something to do with the javascript not being loaded in the head, or a conflict of some sort, but I'm lost.
Is there anything I can do to make this work? It looks awesome.
Its working now, any post with an attached photo will open up in Lightbox. The problem is that it doesn't work properly in Firefox because I had to butcher the code a little.
The problem is that like MyBB, Lightbox 2 utilizes the Prototype framework. When both versions of the javascript (Lightbox's full and MyBB shortened) are included they cause a conflict that messes with the editing tools in the newpost/editpost pages.
My solution was to include the MyBB version in the header as usual, and load the Lightbox version right in the postbit_thumnails_thumnail template. This works awesome in IE and Safari, but is visually off in Firefox. I suppose this has something to do with the javascript not being loaded in the head, or a conflict of some sort, but I'm lost.
Is there anything I can do to make this work? It looks awesome.