Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 05:41:56 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
149621
Posts in
21098
Topics by
7537
Members
Latest Member:
lotte2
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
New Module: Lightbox
Pages:
1
2
3
[
4
]
5
6
Go Down
Author
Topic: New Module: Lightbox (Read 39961 times)
vyni
Offline
Posts: 566
Re: New Module: Lightbox
«
Reply #75 on:
October 15, 2008, 09:10:57 PM »
Quote from: groloff on October 15, 2008, 07:23:50 PM
thanks vyni, that looks good, but... how do I use it to show picasa albums?
Exactly the same way as I described for YouTube - video.
You have it installed? Latest Version 03b ?
copy the code and past it in a code2-section, save it and view it.
If You see the viedeo it is ok.
Now view Your picasa-album in a different window - fullsceen. Copy the adress from the adress-line - switch back to the code2-section and replace the url. Save again and You are done.
regards from Himberg.
PS: if You would provide me Your album I could write the code. It would be much easier than explaining.
Logged
PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen, ungefähr verfolgen und glauben.
bosserik
Offline
Posts: 3
Re: New Module: Lightbox
«
Reply #76 on:
October 31, 2008, 01:56:10 PM »
Quote from: sparkdigital on October 14, 2008, 03:57:46 PM
Anyone know how to add captions to each image so that a short description of the image appears below it?
Thanks!
Konrad
I need to know this as well! How can you add descriptions to images through the backend of WB? Any answer would really be appreciated!
Erik
Logged
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2093
Re: New Module: Lightbox
«
Reply #77 on:
October 31, 2008, 02:33:05 PM »
Lightbox uses the image title as description when it is displaying the image.
To do that you need to modify the view.php a bit, and use filenames that is the actual description.
The code below is replacing lines 152-154.
Code: (Original code from view.php)
<?php
//this line is for colorcoding only
if (
$img_total
>
$img_count
){
echo
'<a href="'
.
WB_URL
.
$gallery_path
.
$img_list
[
$img_count
] .
'" class="lb_image_link" rel="lightbox['
.
$gallery_name
.
']" title="'
.
$gallery_name
.
'"><img class="lb_image" src="'
.
WB_URL
.
$thumb_path
.
$img_list
[
$img_count
] .
'" border="0" /></a>'
;
}
Code: (Replacement code)
<?php
//this line is for colorcoding only - do not add
if (
$img_total
>
$img_count
){
$img_name
=
explode
(
"."
,
$img_list
[
$img_count
]);
//get imagename without extension
$img_name
=
str_replace
(
"-"
,
" "
,
$img_name
);
//replace - in the filename
$img_name
=
str_replace
(
"_"
,
" "
,
$img_name
);
//replace _ in the filename
echo
'<a href="'
.
WB_URL
.
$gallery_path
.
$img_list
[
$img_count
] .
'" class="lb_image_link" rel="lightbox['
.
$gallery_name
.
']" title="'
.
$img_name
[
0
] .
'"><img class="lb_image" src="'
.
WB_URL
.
$thumb_path
.
$img_list
[
$img_count
] .
'" border="0" /></a>'
;
}
Now the image name will be in the title field of the image. Lightbox will include that as description.
Ruud
Logged
Professional WebsiteBaker Developer
dimat66
Offline
Posts: 133
IE Problem mit Lightbox2
«
Reply #78 on:
November 17, 2008, 06:05:25 PM »
Ich habe eine Problem mit dem Lightbox2 (ver 0.91d)
Wenn man es im IE aufruft läuft die Slideshow automatisch an ( das ist ja auch so erwünscht)
Aber leider lässt sich das Modul nur mit dem Browser Pfeil "zurück"stoppen.
Ausserdem ist das "next Schild" ganz unten. Siehe Bild:
Hier der Link zum Modul auf der Seite:
http://avli.de/pages/restaurant.php
Logged
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4753
Re: IE Problem mit Lightbox2
«
Reply #79 on:
November 17, 2008, 06:37:33 PM »
Huii...
beid Deinem Problem kann ich Dir leider keine große Hilfe sein.
Aber einmal dick Lob für das Webdesign aussprechen, das geht.
Hervorragende Arbeit.
(Da gibt es auch ein Showcase im Forum, solltest Du dringend reinstellen, bitte.)
MfG,
Stefek
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
dimat66
Offline
Posts: 133
Re: New Module: Lightbox
«
Reply #80 on:
November 17, 2008, 08:14:51 PM »
Danke für die Blumen,
da steht es schon drin.
Gruß Dirk
Logged
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4753
Re: New Module: Lightbox
«
Reply #81 on:
November 17, 2008, 08:29:59 PM »
Quote from: dimat66 on November 17, 2008, 08:14:51 PM
Danke für die Blumen,
da steht es schon drin.
Gruß Dirk
Entschuldige, muss ich übersehen haben.
Ja, das design gefällt mir allenfalls sehr gut.
MfG,
Stefek
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
RobH
Offline
Posts: 1
Re: New Module: Lightbox
«
Reply #82 on:
December 22, 2008, 02:37:23 PM »
Hai Everybody
Can anyone tell me how I change the language in the Lightbox:
I want to change the words: Bild, von, weiter, Turug, and Stop Bildershow.
I want change these words to the Dutch language.
Thanks!
Logged
masarin
Offline
Posts: 51
Re: New Module: Lightbox
«
Reply #83 on:
February 06, 2009, 06:01:33 PM »
Quote from: RobH on December 22, 2008, 02:37:23 PM
Hai Everybody
Can anyone tell me how I change the language in the Lightbox:
I want to change the words: Bild, von, weiter, Turug, and Stop Bildershow.
I want change these words to the Dutch language.
Thanks!
I've just changed this words to Swedish in lightbox.js line 97-904
I have also made a Swedish language file.
Is there a way to make these words a part of the language file instead of lightbox.js ?
Logged
babsy
Offline
Posts: 311
Re: New Module: Lightbox
«
Reply #84 on:
May 22, 2009, 12:34:41 PM »
HI
I have installed this module, but it doesn´t work, my pictures keep opening in the browser, and not like lightbox!
my website is not lying in the root, so i tought maybe thats my problem, and i tried to change all the paths to (http://...... ) but it didn´t help!
does anyone have a solution?
here is the link to the page:
http://www.summarfestivalur.fo/wb/pages/test.php
Logged
aldus
Offline
Posts: 1238
Re: New Module: Lightbox
«
Reply #85 on:
May 22, 2009, 01:24:04 PM »
As far as i can see, there seems to be a JS error while loding the page
Quote
Fehler: $H({animate: true, autoPlay: true, borderSize: 10, containerID: document, enableSlideshow: true, googleAnalytics: false, imageDataLocation: "south", initImage: "", loop: true, overlayDuration: 0.2, overlayOpacity: 0.8, prefix: "", relAttribute: "lightbox", resizeSpeed: 7, showGroupName: false, slideTime: 4, strings: {closeLink: "close", loadingMsg: "loading", nextLink: "next »", prevLink: "« prev", startSlideshow: "start slideshow", stopSlideshow: "stop slideshow", numDisplayPrefix: "Image", numDisplaySeparator: "of"}}).merge is not a function
Quelldatei:
http://www.summarfestivalur.fo/wb/modules/lightbox2/js/lightbox.js
Zeile: 106
so i gues it could be a path-problem while some JS-Files are not loaded proper.
Teh second one are the embedded SWF-Files that could be causes into problems ... but i'm not sure about this one.
Kind regards
Aldus
Logged
babsy
Offline
Posts: 311
Re: New Module: Lightbox
«
Reply #86 on:
May 22, 2009, 01:29:21 PM »
ok, thanks.. i'll check this..
UPDATE - problem solved:
i got it to work, my problem was that i also had (smooth gallery in the template).... and those can´t be together...
so now it works
after i deleted smooth gallery
«
Last Edit: May 22, 2009, 01:42:00 PM by babsy
»
Logged
Luisehahne
Board Member
Development Team
Online
Posts: 2949
Re: New Module: Lightbox
«
Reply #87 on:
July 10, 2009, 12:22:09 PM »
I suggest to change all gallery module with jquery
Dietmar
Logged
We are human beings - and nobody is perfect at all.
mviens
Offline
Posts: 55
New Module: Lightbox - 2 W3C validation errors fixed
«
Reply #88 on:
July 29, 2009, 07:36:59 PM »
Thanks for yet another great module!
I ran my gallery page through W3C validation and found 2 errors which are both in:
modules/lightbox2/view.php
1) alt tag is missing on the generated image thumbnail. I updated one line of code and have resolved the issue in my file.
EXISTING (line 153 of view.php):
echo '<a href="' . WB_URL . $gallery_path . $img_list[$img_count] . '" class="lb_image_link" rel="lightbox[' . $gallery_name . ']" title="' . $gallery_name . '"><img class="lb_image" src="' . WB_URL . $thumb_path . $img_list[$img_count] . '" border="0" /></a>';
UPDATED:
echo '<a href="' . WB_URL . $gallery_path . $img_list[$img_count] . '" class="lb_image_link" rel="lightbox[' . $gallery_name . ']" title="' . $gallery_name . '"><img class="lb_image" src="' . WB_URL . $thumb_path . $img_list[$img_count] . '"
alt="' . $img_list[$img_count] . '"
border="0" /></a>';
2) Having the following reference to the style sheet located within a <body></body> is not valid.
EXISTING (line 22 of view.php):
echo '<link rel="stylesheet" type="text/css" href="' . WB_URL . '/modules/lightbox2/frontend.css" media="screen" />';
I simply removed this line and included a reference to the style sheet in my main template css with:
@import url("/modules/lightbox2/frontend.css");
I hope that is of some use - they aren't major issues but it's great to validate! I'm not sure how to update the module so I'll leave that to someone more capable.
Michael
«
Last Edit: July 29, 2009, 07:40:41 PM by mviens
»
Logged
DarkViper
Development Team
Offline
Posts: 1049
Re: New Module: Lightbox - 2 W3C validation errors fixed
«
Reply #89 on:
August 12, 2009, 05:12:24 PM »
Quote from: mviens on July 29, 2009, 07:36:59 PM
...
2) Having the following reference to the style sheet located within a <body></body> is not valid.
EXISTING (line 22 of view.php):
echo '<link rel="stylesheet" type="text/css" href="' . WB_URL . '/modules/lightbox2/frontend.css" media="screen" />';
I simply removed this line and included a reference to the style sheet in my main template css with:
@import url("/modules/lightbox2/frontend.css");
...
Why complicated?
If you've included the
register_frontend_m
odfiles()
in your templates index.php it's enough to delete the link from LB's view.php.
Logged
Anleitungen lesen und selber nachdenken ist anstrengend... Da lass ich doch lieber andere für mich denken...
In
1984
: Nineteen Eighty-Four is a unrealistic utopia!!
In
2012
: Nineteen Eighty-Four is a little piece only of our reality!!
Luisehahne
Board Member
Development Team
Online
Posts: 2949
Re: New Module: Lightbox
«
Reply #90 on:
August 12, 2009, 05:36:10 PM »
Code:
f you've included the register_frontend_modfiles() in your templates index.php
and set it in the head not in body
Dietmar
Logged
We are human beings - and nobody is perfect at all.
Gaertner
Offline
Posts: 25
Re: New Module: Lightbox
«
Reply #91 on:
September 08, 2009, 11:37:55 PM »
I've also the problem with missing labels below the picture. Its possible to see the "close" gif, but the others for next and previous are not displayed. But the path for all images is the same in css.
I can't find the bug, but there mus tbe something wrong. Any Idea?
Greetings
Peter
Logged
casi
Offline
Posts: 49
Re: New Module: Lightbox
«
Reply #92 on:
September 27, 2009, 12:54:21 PM »
hi, i have the same problem, the pictures are not displayed. are there any solutions yet? thanks casi
Logged
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2093
Re: New Module: Lightbox
«
Reply #93 on:
September 27, 2009, 08:05:37 PM »
The pictures should be loaded.
Without a url of the lightbox with the problem it will be impossible to investigate what the problem is.
If you do not want to give the URL or running it on a local server, just use a tool like
Firebug
to see what the browser thinks it should load and why it is not loading.
Logged
Professional WebsiteBaker Developer
joop
Offline
Posts: 86
Re: New Module: Lightbox
«
Reply #94 on:
October 12, 2009, 05:56:05 PM »
Before I'm using this one, I want to know; does this thing also work with subfolders?
Greetz,
Joop
Logged
There is a fine line between fishing and just standing on the shore like an idiot!
Ruud
Board member
WebsiteBaker Org e.V.
Offline
Posts: 2093
Re: New Module: Lightbox
«
Reply #95 on:
October 12, 2009, 08:27:40 PM »
Sorry. No.
You could try:
http://www.websitebakers.com/pages/modules/image-galleries/foldergallery.php
I gave it a short try once. It is not very "stable", but you might be able to get it working for you.
R
Logged
Professional WebsiteBaker Developer
joop
Offline
Posts: 86
Re: New Module: Lightbox
«
Reply #96 on:
October 12, 2009, 09:14:30 PM »
Hello Ruud,
Alles goed?
Thanks for your answer, but found allready another gallery.
I'm using Slideshow2 Gallery with Lightbox.
It's working like a charm!
Thanks again,
Joop
Logged
There is a fine line between fishing and just standing on the shore like an idiot!
cthamer
Offline
Posts: 23
Re: New Module: Lightbox
«
Reply #97 on:
October 16, 2009, 11:11:43 PM »
Quote from: Gaertner on September 08, 2009, 11:37:55 PM
I've also the problem with missing labels below the picture. Its possible to see the "close" gif, but the others for next and previous are not displayed. But the path for all images is the same in css.
I can't find the bug, but there mus tbe something wrong. Any Idea?
Greetings
Peter
The paths for those images at the bottom are contained in the lightbox.js file rather than the frontend.css file. You can update the paths there.
Logged
neophyre
Offline
Posts: 15
Re: New Module: Lightbox
«
Reply #98 on:
November 09, 2009, 03:42:23 PM »
Having problems installing the lightbox module... I get "Parse error: syntax error, unexpected T_VARIABLE in /home/tammyann/public_html/temp/unzip/info.php on line 29" after uploading.
Any ideas how to fix this?
Logged
neophyre
Offline
Posts: 15
Re: New Module: Lightbox
«
Reply #99 on:
November 10, 2009, 04:22:43 AM »
I'm getting this error with all the modules I've tried!
Logged
Pages:
1
2
3
[
4
]
5
6
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...