Hello,
I´m using the “Squeezebox Image Button” because ist is very easy to make a picture in an article – popup in a lightbox.
But wiht the JA Templates it doesn`t work. So I have to insert a little code somewhere, but I dont know where. Here is the text that comes with squeezebox:
SqueezeBoxImg plugin allows you to insert a special link from your TinyMCE editor. This link will open your image in the Joomla lightbox (SqueezeBox).
IMPORTANT: Requires that you add this code to your template between the “<head>” and “</head>” tags.
<script type=”text/javascript” src=”<?php echo $this->baseurl ?>/media/system/js/modal.js”> </script>
<link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/media/system/css/modal.css” type=”text/css” />
<script type=”text/javascript”>
// <!–
window.addEvent(‘domready’, function(){ var JTooltips = new Tips($$(‘.hasTip’), { maxTitleChars: 50, fixed: ‘false’}); });
// –>
</script>
<script type=”text/javascript”>
// <!–
window.addEvent(‘domready’, function() {
SqueezeBox.initialize({});
$$(‘a.modal’).each(function(el) {
el.addEvent(‘click’, function(e) {
new Event(e).stop();
SqueezeBox.fromElement(el);
});
});
});
// –>
</script>
IMPORTANT: Your TinyMCE editor must not remove “rel=” attribute.
You must edit plugins/editors/tinymce.php around line 329 to include “|rel|” like this:
$elements[] = ‘img’;
Please tell me in which file I have to paste the code!
Or someone has an good substitute for for this plugin-button…