Hello,
i’m using DirectResize 0.9 rev 6 beta with evolution. It is configured to use thickbox. Thickbox in turn uses jQuery wich conflicts with the Mootools library that I need for a small slideshow in my header.
That’s why I changed DirectResize’s thickbox.config.php to (added [tt]var $j = jQuery.noConflict();[/tt])
<?php
$dr_global["path"] = "
assets/images/
";
$dr_local["header"]["all"] = '
<script type="text/javascript" src="'.DIRECTRESIZE_PATH.'libs/frameworks/jquery.js"></script>
<link rel="stylesheet" href="'.DIRECTRESIZE_PATH.'libs/thickbox/thickbox.css" type="text/css" media="screen" >
<script type="text/javascript">
var tb_pathToImage = "'.DIRECTRESIZE_PATH.'libs/thickbox/loadingAnimation.gif";
var $j = jQuery.noConflict(); /* this line was added */
</script>
<script type="text/javascript" src="'.DIRECTRESIZE_PATH.'libs/thickbox/thickbox-compressed.js"></script> /* this line was moved down, behind the noConflict-call */
';
$dr_local["tpl_thumb"]["all"] = <<<HTML
[+dr.shortcut.source2thumb+]
HTML;
$dr_local["tpl_lightbox"]["all"] = <<<HTML
<a href="[+dr.big.src+]" title="[+dr.source.title+]" class="thickbox">
[+dr.shortcut.tpl_thumb+]
</a>
HTML;
?>
and in thickbox-compressed.js I substituted each "$" with "$j". It now only works "half": The thumb is generated and displayed. I can click the thumb, the thickbox opens, but the image is not loaded any more. The box stays empty.
Maybe I still have to change some "$" in some place, but I can’t find it.
Any help very much appreciated.
Greetings
Martin