Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

How can I create a single line description thumbnail with multiple line pop up ?

More
16 years 4 months ago #14339 by kimberley wesson
Sorry for being dim, but where is this .php file? The only .php file I can find for simple gallery is sigpro_engine.php in the folder /public_html/cfc/mambots/content/plugin_jw_sigpro

I am using v. 1.0.15

Thanks.

Please Log in or Create an account to join the conversation.

More
16 years 4 months ago #14340 by boluak

Sorry for being dim, but where is this .php file? The only .php file I can find for simple gallery is sigpro_engine.php in the folder /public_html/cfc/mambots/content/plugin_jw_sigpro

I am using v. 1.0.15

Thanks.


according to vinikey in earlier post all you need to do for joomla 1.5 version is:

1. Open jwsigpro.php found in your \joomla!_root_folder\plugins\content [for you, that will  be: /public_html/cfc/mambots/content/jwsigpro.php] with your favourite text editor, preferable one with good search functionality.      (would be good If you make a backup)

2. On line 162, replace this string:
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".trim(strtolower($temp[0])))] = $temp[1];

With:
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".trim(strtolower($temp[0])))] ['intro']= $temp[1];
$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_."/".trim(strtolower($temp[0])))] ['main']= $temp[2];

Note your line numbers may have changed by now, search function of your editor would be usefull

3. On line 322  or find
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]!="") {

Replace with:
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['main']!="") {

4. On line 324 or find
$html .= '<a href=\''.$mosConfig_live_site.$rootfolder.$_images_dir_.'/'.$images[$a].'\' target=\'_blank\'><b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])],ENT_QUOTES).'</b></a>';

Replace with:
$html .= '<a href=\''.$mosConfig_live_site.$rootfolder.$_images_dir_.'/'.$images[$a].'\' target=\'_blank\'><b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['main'],ENT_QUOTES).'</b></a>';

5. On line 326, find
$html .= '<b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])],ENT_QUOTES).'</b>';
Replace with:
$html .= '<b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['main'],ENT_QUOTES).'</b>';

6. On line 345, find
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]!="") {

Replace with:
if (@$labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['intro']!="") {
7. On line 351
$final_caption = htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])],ENT_QUOTES);
Replace with:
$final_caption = htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]['intro'],ENT_QUOTES);

That should do it! ;D

Please Log in or Create an account to join the conversation.

More
16 years 4 months ago #14341 by Color Consult AB
Would this hack also make it possible to show the thumbnails without text but let the large images have the text?

Thanks


Jan Suhr
Stockholm, Sweden.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum