Make Lightbox 1.0 simple enhancement for phpwcms contentpart

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

OK THANKS

where do I get the changes ?
ImagePackging design,labels, catalogs,postcards,
User avatar
Fulvio Romanin
Posts: 394
Joined: Thu 4. Dec 2003, 11:12
Location: Udine, Italy
Contact:

Post by Fulvio Romanin »

i'm interested too, please :)
Completeness is reached through subtraction, not through addition
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Post by breitsch »

'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.
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
jupiterj
Posts: 4
Joined: Mon 8. Jan 2007, 20:50

Some problems ...

Post by jupiterj »

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);)

Code: Select all

$phpwcms["templates"] = TEMPLATE_PATH;
and

changed the line

Code: Select all

$block["htmlhead"] .="<link href=\"".$phpwcms['templates']."/inc_app/lightbox/css/lightbox.css\" rel=\"stylesheet\" type=\"text/css\" />\n";
into

Code: Select all

$block["htmlhead"] .="<link href=\"".$phpwcms['templates']."inc_app/lightbox/css/lightbox.css\" rel=\"stylesheet\" type=\"text/css\" />\n";
(I deleted "/" near "inc_app/lightbox/css/lightbox.css\"

With these changes my installation is working (GREAT).
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

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
ImagePackging design,labels, catalogs,postcards,
jupiterj
Posts: 4
Joined: Mon 8. Jan 2007, 20:50

Post by jupiterj »

Hi breitsch,

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.
jupiterj
Posts: 4
Joined: Mon 8. Jan 2007, 20:50

Post by jupiterj »

Hi culda_a,
aditional question: is it possible to change the color from the background effect?
I think you talk about the default black transparent background:

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;
	}
Then change

Code: Select all

background-color: #000;
like

Code: Select all

background-color: #F00;
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Post by breitsch »

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?
1. No, 'the effect with the black screen' is not possible with the slideshow!
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
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.
only possible with my script-hack!
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

2. if you prefer arrows, that wouldn't be a problem
ok but is it possible to be the arrows always visible>?
ImagePackging design,labels, catalogs,postcards,
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Post by breitsch »

animated as the imagenumbers
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

yes to be visible like the image numbers
ImagePackging design,labels, catalogs,postcards,
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

So HOW do I make to be visible only the first image?
ImagePackging design,labels, catalogs,postcards,
prisma
Posts: 39
Joined: Sun 12. Dec 2004, 18:19
Location: CH-Sils im Domleschg

Fehelr in Lightbox

Post by prisma »

Hi,

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
what is the problem?

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.
flo
Posts: 5
Joined: Sun 23. Oct 2005, 02:12
Location: Frankfurt am Main
Contact:

Post by flo »

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
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Post by breitsch »

culda_a wrote:ok but is it possible to be the arrows always visible>?
currently the arrows-version is active on my example-site:
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 8)

please email me to get the files!
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
Post Reply