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.
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:1]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";[/code:1]
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!!