Colon between Title & Desciption
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.
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.
I may have found it... imageinfo file line 27
$info[] = '"' . $col . '":"' . str_replace('"', '\"', str_replace("\n", '\n', $val)) . '"';
remove the :
Will that solve it?
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
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:
portfolio-slideshow.php
Thanks
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 ''.
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
The 2nd one.
(strlen($gallery['images'][$i]['title']) > 0 ? '' : '')
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.