Make Lightbox 1.0 simple enhancement for phpwcms contentpart
- marcus@localhorst
- Posts: 815
- Joined: Fri 28. May 2004, 11:31
- Location: localhorst
- Contact:
- marcus@localhorst
- Posts: 815
- Joined: Fri 28. May 2004, 11:31
- Location: localhorst
- Contact:
sorry for no reply, the last time i've answered, i could not posting, because I was kicked out by spam protection of this forum.culda_a wrote:why is not working the lightbox anymore???? it apears a lot of images and is not working
I've changed the links on my first post.
please download again and try.
If it not work, please send me a link if possible.
best
marcus
- anthony.abraira
- Posts: 99
- Joined: Sun 11. Sep 2005, 07:42
- Location: Mars Hill, NC
- Contact:
article image (enlarge image)...use lightbox?
does anyone know if its possible to implement the lightbox feature to all articles that have the "enlarge image" option checked off in their article settings?
"The trick is living without an answer."
- marcus@localhorst
- Posts: 815
- Joined: Fri 28. May 2004, 11:31
- Location: localhorst
- Contact:
Re: article image (enlarge image)...use lightbox?
must correct this - it's not easy to solve, because of lack of the full sized picture information!anthony.abraira wrote:does anyone know if its possible to implement the lightbox feature to all articles that have the "enlarge image" option checked off in their article settings?
m
I did not read the all of this thread, but:
To get lightbox enhancement startet in phpwcms 1.30 and possibly in 1.28 / 1.29 when your phpwcms root is not your site root it is necessary to change the code of lightbox.php beginning at line 44:
has to look like this:
There is just a slash at the begining of $phpwcms['templates'], that has to be trimed with ltrim().
Bye,
Metti
To get lightbox enhancement startet in phpwcms 1.30 and possibly in 1.28 / 1.29 when your phpwcms root is not your site root it is necessary to change the code of lightbox.php beginning at line 44:
Code: Select all
$block["htmlhead"] .="<script type=\"text/javascript\" src=\"".$phpwcms['templates']."inc_app/lightbox/js/prototype.js\"></script>\n";
$block["htmlhead"] .="<script type=\"text/javascript\" src=\"".$phpwcms['templates']."inc_app/lightbox/js/scriptaculous.js?load=effects\"></script>\n";
$block["htmlhead"] .="<script type=\"text/javascript\" src=\"".$phpwcms['templates']."inc_app/lightbox/js/lightbox.js\"></script>\n";
$block["htmlhead"] .="<link href=\"".$phpwcms['templates']."/inc_app/lightbox/css/lightbox.css\" rel=\"stylesheet\" type=\"text/css\" />\n";
Code: Select all
$block["htmlhead"] .="<script type=\"text/javascript\" src=\"".ltrim($phpwcms['templates'], "/")."inc_app/lightbox/js/prototype.js\"></script>\n";
$block["htmlhead"] .="<script type=\"text/javascript\" src=\"".ltrim($phpwcms['templates'], "/")."inc_app/lightbox/js/scriptaculous.js?load=effects\"></script>\n";
$block["htmlhead"] .="<script type=\"text/javascript\" src=\"".ltrim($phpwcms['templates'], "/")."inc_app/lightbox/js/lightbox.js\"></script>\n";
$block["htmlhead"] .="<link href=\"".ltrim($phpwcms['templates'], "/")."/inc_app/lightbox/css/lightbox.css\" rel=\"stylesheet\" type=\"text/css\" />\n";
Bye,
Metti
#GeorgeWBush { position:absolute; bottom:-6ft; }
- marcus@localhorst
- Posts: 815
- Joined: Fri 28. May 2004, 11:31
- Location: localhorst
- Contact:
I've update the install instructions (now in german too) and post a new package for lightbox 2.02 which run by default on fresh phpwcms 1.3.0 installations. If you have still a folder phpwcms_templates - then you need to change a little bit more but it is not so much.
SEE THE STARTPOSTING!
Test and report bugs.
best marcus
SEE THE STARTPOSTING!
Test and report bugs.
best marcus
Great job markus, and very easy to install... real "newbee-like"!
Now it only integrates into the html-head, if there is at least one image or more on the special page...
Would be a little bit better, if the inclusion works only, if the images have popup-marks.
Pages with small thumbs only - without any popup marks - do now render with the included code too! Do you think its possible....?
But nevertheless "good work man"!
Now it only integrates into the html-head, if there is at least one image or more on the special page...
Would be a little bit better, if the inclusion works only, if the images have popup-marks.
Pages with small thumbs only - without any popup marks - do now render with the included code too! Do you think its possible....?
But nevertheless "good work man"!
Kann es sein dass man noch etwas einbinden muß?
Nachdem ich es nach anleitung installiert habe und
In der config...
eingetragen habe und nun mein Bild klicke passiert leider gar nichts.
Muß man noch etwas einbauen (Javascripts oder CSS?)?? Bekomme nur ein einfaches Fenster das sich öffnet. Habe Version 1.3.
Vielleicht kannst Du das auch noch in die Anleitung mitaufnehmen?
In der config...
Code: Select all
$template_default['article']['imagelist_table_class'] = 'imagelisttable';
$template_default['article']['imagelist_table_bgcolor'] = '';
$template_default['article']['imagelist_bgcolor'] = '';
$template_default['article']['imagelist_align'] = '';
$template_default['article']['imagelist_valign'] = '';
$template_default['article']['imagelist_border'] = 0;
$template_default['article']['imagelist_class'] = 'imagelisttd';
$template_default['article']['imagelist_imgclass'] = 'imagelistimg';
$template_default['article']['imagelist_caption_class'] = 'imglistcaption';
Muß man noch etwas einbauen (Javascripts oder CSS?)?? Bekomme nur ein einfaches Fenster das sich öffnet. Habe Version 1.3.
Vielleicht kannst Du das auch noch in die Anleitung mitaufnehmen?
Problem gelöst
Habe in der vorlage Datei die javascript funktionen eingebunden und das CSS file unter Vorlage Header. Jetzt klappt es auch. Das wäre vielleicht nicht schlecht noch in die Anleitung zu schreiben ...
Trotzdem Danke für die Beantwortung.
Trotzdem Danke für die Beantwortung.