PDA

View Full Version : Colon between Title & Desciption


biz295654
02-15-2010, 10:43 AM
A client would like to remove the colon that automatically appears between the title and description in PowerGallery. Where can I find this default setting? Thanks much.

biz295654
02-15-2010, 10:47 AM
I may have found it... imageinfo file line 27

$info[] = '"' . $col . '":"' . str_replace('"', '\"', str_replace("\n", '\n', $val)) . '"';

remove the :

Will that solve it?

Justin Nemeth
02-16-2010, 09:20 AM
You will need to update the gallery.js file for the gallery you are working with. For example, if you are using the Ribbon+Fullsize, you would the edit galleries/ribbon_fullsize/js/gallery.js file. On line 59 you would change it to remove the : part so it looks like this:

thumb.store('title', parts[1].length > 0 ? parts[1] : ' ');

The line number will be a little different for each gallery, but the change should be the same.

-justin

biz295654
02-16-2010, 09:41 AM
Thanks... I tried it:

//-----thumb.store('title', parts[1].length > 0 ? parts[1] + ':' : ' '); THIS IS TO REMOVE THE : THIS ONE IS DEFAULT//
thumb.store('title', parts[1].length > 0 ? parts[1] : ' ');

but will it only work for new images? It's not removing colons from existing images:

http://canada-klein.com/portfolio-slideshow.php

Thanks

Justin Nemeth
02-16-2010, 09:49 AM
It looks like you are referring to the lightbox popup? The original fix I gave you was for the : that shows up in the page itself. If you want to fix it for the lightbox popup, edit the galleries/grid_lightbox/index.php file. On line 59, there should be some code that looks like this (strlen($gallery['images'][$i]['title']) > 0 ? ':' : '') - replace the ':' with ''.

biz295654
02-16-2010, 10:03 AM
pls clarify


replace the ':' with ''.


or with

"

in that the . was end of your sentence...


so....

(strlen($gallery['images'][$i]['title']) > 0 ? ':' : '')


becomes

(strlen($gallery['images'][$i]['title']) > 0 ? '')
or
(strlen($gallery['images'][$i]['title']) > 0 ? " : '')

thanks

Justin Nemeth
02-16-2010, 10:06 AM
The 2nd one.
(strlen($gallery['images'][$i]['title']) > 0 ? '' : '')

biz295654
02-16-2010, 10:08 AM
much thanks