Page 1 of 1

Slimbox description & html

Posted: 14 Feb 2012, 01:36
by ald0413
Hello,

I'd like to use the slimbox in my phoca gallery. Unfortunately the description display is ignoring the basic HTML and has the entire description as one run-on text as though no <p> tags are there. Is there a solution to this? You can see here:
http://temp.thetincantourist.com/index.php/gallery

Thanks in advance.

Re: Slimbox description & html

Posted: 16 Feb 2012, 01:24
by Jan
Hi, I think, in such case, the slimbox javascript library needs to be customized. :-(

Jan

Re: Slimbox description & html

Posted: 01 May 2012, 20:36
by fdkid
Any tips on how to customize the slimbox javascript library in order to included HTML Tags? Have searched for a solution to that online without success. I'm very interested in this feature that was available in prior version of slimbox but for some reason it's not anymore. Thanks. Fdki

Re: Slimbox description & html

Posted: 21 May 2012, 22:58
by fdkid
Hello Guys, is there any possibilities that it's not a slimbox issue? but a mootools issue? I've found that mootools have a native function called StripTags, and does exactly that, strips HTML tags from Strings. I have no idea how Phocagallery integrates Slimbox, or its relationship with Joomla Native Mootools, or else.
Prior versions of Slimbox (1.4) didn't strip tags and shipped with their own mootools.js. In this Mootools file, there is no "striptags" instances. However, joomla Native Mootools file have seven instances of it.
Phocagallery is shipping with Slimbox 1.7. Is it possible to downgrade slimbox to 1.4 in current version of Phocagallery? (just in case it's not possible to include the HTML tags entered in phocagallery images description).

Thanks very much, and of course, WHAT A GREAT COMPONENT THIS IS, Congrats and thank you Jan!

Re: Slimbox description & html

Posted: 23 May 2012, 16:55
by Jan
Hi, in fact, I cannot say :-( because really no idea if this can be a mootools or slimbox feature (really hard to say which function does the library made by itself and which uses from mootools :-( ) :idea:

Jan

Re: Slimbox description & html

Posted: 25 May 2012, 13:40
by fdkid
Hi Jan, thanks for your reply. Just hired a developer to look into this isuue. He fixed it for me by hacking phocagallery. It has a limitation, characters such as ' and " cannot be used on description due to they break the html layout. It's not perfect but it will do it for me.
I just wanted to show you what he did since he hacked your code, to get your opinion? many thanks
http://www.11suns.com/proofs/phocagalle ... box1.7.zip

Re: Slimbox description & html

Posted: 01 Sep 2016, 13:42
by NMF101A
Does anyone have a solution to this issue (the last post is 4 years old and it is still a problem). I am using Joomla 3.6.2 and Phoca Gallery 4.3.1.

Please advise.

Re: Slimbox description & html

Posted: 02 Sep 2016, 13:54
by Jan
Hi, I think, maybe asking developr of the Slimbox will be possible way :idea:

Some javascript methods use attributes inside html tag to render the description so in such case of course html cannot be used as inside the tag attributes there is no possible to render html :idea:

Jan