Make Lightbox 1.0 simple enhancement for phpwcms contentpart
- Fulvio Romanin
- Posts: 394
- Joined: Thu 4. Dec 2003, 11:12
- Location: Udine, Italy
- Contact:
'OK THANKS' he wrote!
I fixed most of the bugs now.
AND I included Highslide JS 2.2.7 as well, so now you have all the three options: lightbox, slideshow, highslide - it just depends on the little HTML-container placed in the article.
see examples:
http://web.casa-loca.com/index.php?lightbox
Of course it's not the Rolls-Royce, it's just a little VW!
The Rolls-Royce would be to have it included in the CP-Images as described here:
http://www.phpwcms.de/forum/viewtopic.p ... 0&start=59
It's much easier for non-html-css-users (just fill the controls in backend) and, more important, it's much faster because it's rendered with the site at once.
Because Highslide JS is not free for commercial use I can not distribute the script for free!
You have to confirm me/highslide that you use it for non-commercial use only!
PM me or e-mail me or send a message from my website:
http://web.casa-loca.com/index.php?contact
there is a paypal-button as well 
including the required confirmation of free or commercial use.
Then you get further infos and the link to download the files with an instruction for installation. Note, that the highslide-file-pack you have to download from their website, however.

I fixed most of the bugs now.
AND I included Highslide JS 2.2.7 as well, so now you have all the three options: lightbox, slideshow, highslide - it just depends on the little HTML-container placed in the article.
see examples:
http://web.casa-loca.com/index.php?lightbox
Of course it's not the Rolls-Royce, it's just a little VW!
The Rolls-Royce would be to have it included in the CP-Images as described here:
http://www.phpwcms.de/forum/viewtopic.p ... 0&start=59
It's much easier for non-html-css-users (just fill the controls in backend) and, more important, it's much faster because it's rendered with the site at once.
Because Highslide JS is not free for commercial use I can not distribute the script for free!
You have to confirm me/highslide that you use it for non-commercial use only!
PM me or e-mail me or send a message from my website:
http://web.casa-loca.com/index.php?contact


including the required confirmation of free or commercial use.
Then you get further infos and the link to download the files with an instruction for installation. Note, that the highslide-file-pack you have to download from their website, however.
Some problems ...
My installation of the lightbox failed.
The problem is, that the Site doesn´t find the Java-Scripts.
I implemeted the following line in lightbox.php (after the line: preg_match_all($searchcp,$content["all"],$matchcp, PREG_PATTERN_ORDER);)
and
changed the line
into
(I deleted "/" near "inc_app/lightbox/css/lightbox.css\"
With these changes my installation is working (GREAT).
The problem is, that the Site doesn´t find the Java-Scripts.
I implemeted the following line in lightbox.php (after the line: preg_match_all($searchcp,$content["all"],$matchcp, PREG_PATTERN_ORDER);)
Code: Select all
$phpwcms["templates"] = TEMPLATE_PATH;
changed the line
Code: Select all
$block["htmlhead"] .="<link href=\"".$phpwcms['templates']."/inc_app/lightbox/css/lightbox.css\" rel=\"stylesheet\" type=\"text/css\" />\n";
Code: Select all
$block["htmlhead"] .="<link href=\"".$phpwcms['templates']."inc_app/lightbox/css/lightbox.css\" rel=\"stylesheet\" type=\"text/css\" />\n";
With these changes my installation is working (GREAT).
Hi breitsch, I like the idea of the slideshow how you made it... I have only one question : is it possible to keep the effect with the black screen when you press on the picture, and to have always visible 2 arrows with next and preview down by the close buton?
aditional question: is it possible to change the color from the background effect?
Thanks a lot
aditional question: is it possible to change the color from the background effect?
Thanks a lot

Hi culda_a,
Goto lightbox.css and search for
Then change like
I think you talk about the default black transparent background:aditional question: is it possible to change the color from the background effect?
Goto lightbox.css and search for
Code: Select all
#overlay{
position: absolute;
top: 0;
left: 0;
z-index: 90;
width: 100%;
height: 500px;
background-color: #000;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
}
Code: Select all
background-color: #000;
Code: Select all
background-color: #F00;
1. No, 'the effect with the black screen' is not possible with the slideshow!culda_a wrote:Hi breitsch, I like the idea of the slideshow how you made it... I have only one question : is it possible to keep the effect with the black screen when you press on the picture, and to have always visible 2 arrows with next and preview down by the close buton?
I guess what makes lightbox so cool is the transitions between the images. This doesn't make sense when you only have 1 pic to show. I think in this case the highslide js effect is better.
2. if you prefer arrows, that wouldn't be a problem
only possible with my script-hack!jupiterj wrote:how do you integrated the option: "Caption only in Popup?"
I use the lightbox and I want to display the captions (Bildunterzeile) only in the popup and not on the normal page.
Fehelr in Lightbox
Hi,
sorry, i c'ant english. My Problem is that i have follow problem:
what is the problem?
thanks prisma
In der zwischenzeit auf einer anderen Seite funktioniert es.
sorry, i c'ant english. My Problem is that i have follow problem:
Code: Select all
Parse error: parse error in /var/www/vhosts/xxx/subdomains/immo/httpdocs/template/inc_script/frontend_render/lightbox.php(70) : regexp code on line 1
Fatal error: Failed evaluating code: makelightbox('ZjY2MWUxMDBiMTA3ZTFjOGRjZjIzNDQwN2ZjMmM1ODYuanBnP3dpZHRoPSI1MzgiIGhlaWdodD0iMzMxIg%3D%3D','<img src=\"content/images/1fae90c67a8909c26c59387a46e01031.jpg\" width=\"450\" height=\"277\" border=\"0\" class=\"imagelistimg\" alt=\"kasetten.jpg\" />','<a href="image_zoom.php?show=ZjY2MWUxMDBiMTA3ZTFjOGRjZjIzNDQwN2ZjMmM1ODYuanBnP3dpZHRoPSI1MzgiIGhlaWdodD0iMzMxIg%3D%3D" onclick="checkClickZoom();clickZoom('image_zoom.php?show=ZjY2MWUxMDBiMTA3ZTFjOGRjZjIzNDQwN2ZjMmM1ODYuanBnP3dpZHRoPSI1MzgiIGhlaWdodD0iMzMxIg%3D%3D','previewpic','width=538,height=331');return false;"><img src="content/images/1fae90c67a8909c26c59387a46e01031.jpg" width="450" height="277" border="0" class="imagelistimg" alt="kasetten.jpg" /></a>','gallery_0') in /var/www/vhosts/xxx/subdomains/immo/httpdocs/template/inc_script/frontend_render/lightbox.php on line 70
thanks prisma
In der zwischenzeit auf einer anderen Seite funktioniert es.
Last edited by prisma on Fri 2. Feb 2007, 19:28, edited 1 time in total.
Hey hey... ich habe leider dasselbe Problem... Woran könnts liegen?
Code: Select all
Parse error: parse error, unexpected T_STRING in C:\Programme\Xampp\xampp\htdocs\public\musikemper\phpwcms\phpwcms_template\inc_script\frontend_render\lightbox.php(70) : regexp code on line 1
Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: makelightbox('MzM5MGI4ODMwNmVmMTEyNGZkY2QxNWE1OTU0ODgxNDEuanBnP3dpZHRoPSIzMTMiIGhlaWdodD0iNDAwIg%3D%3D','<img src=\"content/images/fca9703577cba8b464bab89b9269570d.jpg\" width=\"117\" height=\"150\" border=\"0\" class=\"imagelistimg\" alt=\"000072_072dpi_(Medium).jpg\" />','<a href="image_zoom.php?show=MzM5MGI4ODMwNmVmMTEyNGZkY2QxNWE1OTU0ODgxNDEuanBnP3dpZHRoPSIzMTMiIGhlaWdodD0iNDAwIg%3D%3D" onclick="checkClickZoom();clickZoom('image_zoom.php?show=MzM5MGI4ODMwNmVmMTEyNGZkY2QxNWE1OTU0ODgxNDEuanBnP3dpZHRoPSIzMTMiIGhlaWdodD0iNDAwIg%3D%3D','previewpic','width=313,height=400');return false;"><img src="content/images/fca9703577cba8b464bab89b9269570d.jpg" width="117" height="150" border="0" class="imagelistimg" alt="000072_072dpi_(Medium).jpg" /></a>','gal in C:\Programme\Xampp\xampp\htdocs\public\musikemper\phpwcms\phpwcms_template\inc_script\frontend_render\lightbox.php on line 70
currently the arrows-version is active on my example-site:culda_a wrote:ok but is it possible to be the arrows always visible>?
http://web.casa-loca.com/index.php?slideshow
you can change the images for the arrows (gif)
you can switch from arrows to cursors by only change one variable in the lightbox_slideshow.php file

please email me to get the files!