Slimbox description & html

Phoca Gallery - image gallery extension
ald0413
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 04 Jan 2011, 22:27

Slimbox description & html

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Slimbox description & html

Post by Jan »

Hi, I think, in such case, the slimbox javascript library needs to be customized. :-(

Jan
If you find Phoca extensions useful, please support the project
fdkid
Phoca Member
Phoca Member
Posts: 13
Joined: 13 May 2008, 00:54

Re: Slimbox description & html

Post 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
fdkid
Phoca Member
Phoca Member
Posts: 13
Joined: 13 May 2008, 00:54

Re: Slimbox description & html

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Slimbox description & html

Post 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
If you find Phoca extensions useful, please support the project
fdkid
Phoca Member
Phoca Member
Posts: 13
Joined: 13 May 2008, 00:54

Re: Slimbox description & html

Post 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
NMF101A
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 01 Sep 2016, 13:39

Re: Slimbox description & html

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Slimbox description & html

Post 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
If you find Phoca extensions useful, please support the project
Post Reply