Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 5 6 7 8 Next > End >>
Lightbox Feature with Mootools
Date: 2007/03/02 05:47 By: pointri Status: User  
Karma: 26  
Gold Joomlapolitan

Posts: 211
graphgraph
Hi Nant (and anyone else that's interested),

I've been playing around with the gallery plugin for a while now, and I noticed that its lightbox feature uses an installation of both prototype and what I guess is the effects set from script.aculo.us. This is fine until you have two Javascript engines (like JQuery, Xajax or Mootools) running with equivalent helper functions, like addEvent(), removeEvents(), etc., and conflicts emerge, depending on what order those scripts are included on a profile page, for example.

With Joomla! working around Mootools in 1.5, would you consider a lightbox alternative that uses Mootools for a future version instead? I only ask that specifically because I have a mod of the gallery plugin using Slimbox that uses a lighter script call to generate an identical effect. It only required a couple changes to the plugin's output code. Anyone interested?
Joomlapolitan zealot and a somewhat stealthy, rather passive CB3PD developer.

http://www.constructionlounge.com Construction Lounge: Online resource and networking portal for the construction and remodeling industries.
Click here to see the profile of this user The administrator has disabled public write access.

Re:Lightbox Feature with Mootools
Date: 2007/03/02 06:16 By: nant Status: Admin  
Karma: 462  
Admin

Posts: 6004
graph
sure send over a copy
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The administrator has disabled public write access.

Re:Lightbox Feature with Mootools
Date: 2007/03/03 01:28 By: pointri Status: User  
Karma: 26  
Gold Joomlapolitan

Posts: 211
graphgraph
Sent it over to you. You can probably ignore the mods to the Profile Gallery's PHP file. Slimbox uses the same HTML syntax as the Script.aculo.ous Lightbox.
Joomlapolitan zealot and a somewhat stealthy, rather passive CB3PD developer.

http://www.constructionlounge.com Construction Lounge: Online resource and networking portal for the construction and remodeling industries.
Click here to see the profile of this user The administrator has disabled public write access.

Re:Lightbox Feature with Mootools
Date: 2007/03/28 14:04 By: Graphixx Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 3
graphgraph
Anything happened here yet?
would be interested to try it out, since i have a problem with the plug in and my template
Click here to see the profile of this user The administrator has disabled public write access.

Re:Lightbox Feature with Mootools
Date: 2007/03/30 21:07 By: pointri Status: User  
Karma: 26  
Gold Joomlapolitan

Posts: 211
graphgraph
Here are the JavaScript files. You should be able to just replace the plugin's js directory with this one, then get into cb.profilegallery.php and change the script includes at around line 1000:

Code:

 // Hack - Include Mootools and Slimbox to simulate the lightbox effect.                     // In Joomla! 1.5, Mootools would be called from /includes/js/mootools.js with  a check to see if it already been called.                     $mainframe->addCustomHeadTag("<link rel=\"stylesheet\" href=\"components/com_comprofiler/plugin/user/plug_cbprofilegallery/css/slimbox.css\" type=\"text/css\" media=\"screen\" />");                     $htmltext2 .= "<script type=\"text/javascript\" src=\"templates/scripts/mootools.js\"></script>";                     $htmltext2 .= "<script type=\"text/javascript\" src=\"components/com_comprofiler/plugin/user/plug_cbprofilegallery/js/slimbox.js\"></script>";                     $htmltext2 .= "<script type=\"text/javascript\" language=\"JavaScript\">\n";                     $htmltext2 .= "var pg_imagestring = \"" . _pg_LBImageString . "\";\n";                     $htmltext2 .= "var pg_ofstring = \"" . _pg_LBOfString . "\";\n";                     $htmltext2 .= "</script>\n";                     break;


File Attachment:
File name: gallery.zip
File size:20248 bytes


Post edited by: pointri, at: 2007/03/30 21:07
Joomlapolitan zealot and a somewhat stealthy, rather passive CB3PD developer.

http://www.constructionlounge.com Construction Lounge: Online resource and networking portal for the construction and remodeling industries.
Click here to see the profile of this user The administrator has disabled public write access.

Re:Lightbox Feature with Mootools
Date: 2007/06/20 14:45 By: murx Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 2
graphgraph
hy pointri / nant / everyone!

it would be a good idea to be able to switch between the lightbox popup srciptengines in your gallery. like it is possible in the simple image pro gallery mambot. http://www.joomlaworks.gr

i found out that the current version of Nant's CB Gallery 1.0 RC2 plugin is in conflict with the current version of jce utilities 1.2 part of jce 1.1.5 or better said with the scripts to genarate the lightbox popup --> only the jce feature works correctly if enabled! jce utilities disabled gallery popup works correct.(as far as i know the problem is the mootools / lightbox conflict.

is there a way to have both engines working correct on one page without conflicts?
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 4 5 6 7 8 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login