SOLVED:
HOW TO USE SLIMBOX/lightbox in JOOMLA 1.5 RC3 [in your template]
I managed to do it, with SLIMBOX, and Joomla 1.5 RC3, it's quite simple after all.
STEPS:
1. Download SlimBox Files
http://www.digitalia.be/file_download/8 Put them (the folders) in your template's folder
2. Open your TEMPLATE index.php
Add in the header the following codes:
Code:
<link href="<?php echo $mosConfig_live_site;?>/templates/NAME OF YOUR TEMPLATE'S FOLDER/css/slimbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/media/system/mootools.js"></script>
<script type="text/javascript" src="/templates/NAME OF YOUR TEMPLATE'S FOLDER/js/slimbox.js"></script>
3. Upload your modified files to your server
4. Go to the admin panel. If you are using the TinyMCE as editor, you need to add rel , as an accepted html code so the editor doesnt strip it out.
We need also to modify one file in order to disable the automatic messy code cleanup:
In the original post I did it by another way that resulted to make some readmore links dissapear. Now thanks to the help of
Tia (uroboros) we have another way, much more cleaner...
GO TO /plugins/editors/ and open with the word pad (or any other simple text editor.. or php editor), the
tinymce.phpand search for "
extended_valid_elements" (without quotes), you need to add the rel to the accepted lines:
Code:
extended_valid_elements : \"a[class|name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],$elements\",
And add the rel as showed below:
Code:
extended_valid_elements : \"a[class|name|href|rel|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],$elements\",
Now save your tinymce.php and upload it to your server (in the same location /plugins/editors). Overwrite the existing file in your server.
5. Once you are editing one article and want the slimbox/lightbox to work, just ad in the code rel="lightbox"
Example:
Code:
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
For sets of related images that you want to group and make navigable, add a group name to the rel attribute after “lightbox”:
imagen 1imagen 2imagen XAnd that is all! [Be careful not to use the CleanUp messy code Button in the Editor, because that will make you loose the rel="lightbox" that you wrote.
I hope I was clear enaugh,
See you!
Morty
PS: Warn me if there is any error or if someone couldn't do it following my steps, thank you!