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

Advertise on this site

Joomlapolis Forums  


Mootools / Slightbox enabled gallery
Date: 2008/05/14 01:31 By: teryaki Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 18
graphgraph
Are you tired of fighting with your web 2.0 template and CBGallery? I know I sure was. Here for your enjoyment is some code that will enable your cbgallery to be mootools / Slightbox enabled.

How to install...

1. Download the smoothgallery mambot here.http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1727/Itemid,35/If
you already have it installed, proceed to step 2.

2. Modify lines 24-31 of cb.profolegallery.php to look like this

Code:

 if ($this->addCSS && strpos$mainframe->getHead(), '/templates/' $cur_template '/css/smoothgallery.css' ) === false ) {             $head =     '<link href="'.$mosConfig_live_site .'/mambots/content/smoothgallery/css/jd.gallery.css" rel="stylesheet" type="text/css" />' "\n"                     .'<link href="'.$mosConfig_live_site.'/mambots/content/smoothgallery/css/slightbox.css" rel="stylesheet" type="text/css" />' "\n";         }                          if ($this->addCustomCSS) {             $head .=     '<link href="'.$mosConfig_live_site '/templates/' $cur_template '/css/smoothgallery.css" rel="stylesheet" type="text/css" />' "\n";         }                  // add javascript to head if it's not already added settings specify to add it         if ($this->addJS && strpos$mainframe->getHead(), '/mambots/content/smoothgallery/scripts/jd.gallery.js"></script>' ) === false)             $head     .= '<script type="text/javascript" src="'.$mosConfig_live_site .'/mambots/content/smoothgallery/scripts/mootools.js"></script>' "\n"                      .'<script type="text/javascript" src="'.$mosConfig_live_site .'/mambots/content/smoothgallery/scripts/jd.gallery.js"></script>' "\n"                     .'<script type="text/javascript" src="'.$mosConfig_live_site .'/mambots/content/smoothgallery/scripts/slightbox.js"></script>' "\n";



Copy the smoothgallery.css file from the smoothgallery mambot folder to your templates css folder.

BANG! No moar fighting with Jquery, it isn't even loaded and your slightbox gallery works perfectly with your web 2.0 / mootools enabled template. woohoo!!
Click here to see the profile of this user The administrator has disabled public write access.

Re:Mootools / Slightbox enabled gallery
Date: 2008/05/14 16:02 By: claudeesti Status: CB Doc subscriber  
Karma: 0  
Fresh Joomlapolitan

Posts: 17
graphgraph
any other link for that gallery because the website is down :|
Click here to see the profile of this user The administrator has disabled public write access.

Re:Mootools / Slightbox enabled gallery
Date: 2008/05/16 21:19 By: claudeesti Status: CB Doc subscriber  
Karma: 0  
Fresh Joomlapolitan

Posts: 17
graphgraph
sorry but your post is quite inacurate i just tried it with the CB version i have joomla 1.5,

and i had tons of error and your mambot dosnt even have the smoothgallery.css in it..

So if you'll like to rewrite it with better explanation complete source code files and GOOD working direct link it woul be more than welcome thank you...
Click here to see the profile of this user The administrator has disabled public write access.

Re:Mootools / Slightbox enabled gallery
Date: 2008/05/19 17:35 By: Seurot Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 9
graphgraph
I'm sorry to say this Claudeesti, but currently Nant's Gallery Plugin is not compatible with Joomla 1.5.x in either native or legacy mode. He will release one that'll work in 1.5 after Community Builder releases 1.2

As for this code however, I'm going to have to try it on my site as I am running both this gallery along with many components using MooTools.

Post edited by: Seurot, at: 2008/05/19 17:36
Click here to see the profile of this user The administrator has disabled public write access.

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 RC2, 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