Start
Help
Forum
Addons
Project
Welcome,
Guest
. Please
login
or
register
.
July 04, 2009, 11:30:29 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Find out more about the next
Website Baker - Version 2.8.
85275
Posts in
13125
Topics by
8213
Members
Latest Member:
deadmix
Website Baker Community Forum
English
Modules
(Moderators:
Argos
,
BerndJM
)
New Module: Lightbox
Pages:
1
2
3
[
4
]
5
Author
Topic: New Module: Lightbox (Read 19247 times)
Boudi
Master Baker
Offline
Posts: 341
//o_-\\
Re: New Module: Lightbox
«
Reply #60 on:
September 30, 2008, 11:22:53 AM »
The gallery is fully original? You made no changes at all on the files itself?
Logged
...:: Bake the Unbakable ::...
Lubeca
Pending Apprentice Baker
Offline
Posts: 6
Re: New Module: Lightbox
«
Reply #61 on:
September 30, 2008, 11:23:57 AM »
yes, that's right. no changes on the files.
Logged
Boudi
Master Baker
Offline
Posts: 341
//o_-\\
Re: New Module: Lightbox
«
Reply #62 on:
September 30, 2008, 11:25:57 AM »
Just try to uninstall the programm and reinstall it?
Logged
...:: Bake the Unbakable ::...
Ruud
Development Team
"All I Do Is Bake" Baker
Online
Posts: 987
[[droplets]]
Re: New Module: Lightbox
«
Reply #63 on:
September 30, 2008, 11:35:37 AM »
Your
base.css
has a div with the ID "Close".
This same ID is used in the lightbox module (frontend.css).
The solution is to use another ID in your template and base.css for close.
Ruud
Logged
Demo's, Tips en Truuks voor Website Baker in het Nederlands
|
ALLWWW Webdesign Oosterhout
|
WB Module ontwikkeling
Lubeca
Pending Apprentice Baker
Offline
Posts: 6
Re: New Module: Lightbox
«
Reply #64 on:
September 30, 2008, 11:51:32 AM »
hmm.
I cannot find this ID in my
frontend.css
And also, I willnot find a
base.css
within the folde \modules\lightbox2
Logged
vyni
"All I Do Is Bake" Baker
Offline
Posts: 566
Re: New Module: Lightbox
«
Reply #65 on:
September 30, 2008, 12:03:08 PM »
Hallo Lubeca,
was Ruud meint:
in Deinem Template gibt es ein div id="close" - bestimmt auch im css zu Deinem Template
das Lightbox-modul hat auch ein div id="close" und auch ein css
das verträgt sich natürlich nicht.
Also: im Template das div umbenennen in xclose und im css dann auch.
Alles klar?
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.
Ruud
Development Team
"All I Do Is Bake" Baker
Online
Posts: 987
[[droplets]]
Re: New Module: Lightbox
«
Reply #66 on:
September 30, 2008, 12:04:41 PM »
I would not change the lightbox (frontend) css.
You would need to hack the javascript code also. Update to future versions would give your gallery the same problems again.
In your template (index.php), below the footer, the is a part that says:
Code:
<div id="close">
</div><!-- // #close site -->
In your base.css there is a part that says:
Code:
div#close {
clear: both;
height: 9px;
padding: 0 0 0 0;
color: #333;
background: #444444 url(images/chiusura.gif) no-repeat 0 0;
}
It is used to display the grey bottom image of your site. You also see that in the screenshots you gave. That grey line left of the "close X" image should not be there.
If you change both "close" words to "closethis" (or something else, as long as it is the same in both files) your Lightbox will work as it should.
Do not try to find this in the lightbox, everything in there is dynamically generated, so you won't easily find that in there.
Ruud
Logged
Demo's, Tips en Truuks voor Website Baker in het Nederlands
|
ALLWWW Webdesign Oosterhout
|
WB Module ontwikkeling
Lubeca
Pending Apprentice Baker
Offline
Posts: 6
Re: New Module: Lightbox
«
Reply #67 on:
September 30, 2008, 12:19:36 PM »
Now I got you
Ruud
- thank you very much !!
Danke auch Dir
vyni
It works fine !!
Logged
vyni
"All I Do Is Bake" Baker
Offline
Posts: 566
Re: New Module: Lightbox
«
Reply #68 on:
September 30, 2008, 12:29:06 PM »
Aber bitte, kein Problem.
Nur eine Kleinigkeit noch: Deine Bilder mit 300kb pro Datei sind einfach zu groß (zu lange Ladezeit) Lass sie ersteinmal (vom JAlbum -??) durch einen Kompressor laufen
LG aus Himberg
english: You´r welcome. Just one thing. Your photos with filesize 300kb each are too big (loadingtime is too high) Make a compression first.
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.
Lubeca
Pending Apprentice Baker
Offline
Posts: 6
Re: New Module: Lightbox
«
Reply #69 on:
September 30, 2008, 12:33:16 PM »
Oh yes. For this album you're right. These are too big.
Have a look to the next, "Norwegen 2008"
This images are better.
I would change the "Rhodos" images
Thanks !!
Logged
groloff
Pending Apprentice Baker
Offline
Posts: 17
Re: New Module: Lightbox
«
Reply #70 on:
October 09, 2008, 06:44:18 PM »
hi there
I used this module recently and it´s a great module. Works fine and it´s very simple. Now to the point...
Is it possible to modify this module to show picasa albums? Or: Is it possible to modify any other WB image gallery module to show picasa albums?
Any ideas?
Logged
vyni
"All I Do Is Bake" Baker
Offline
Posts: 566
Re: New Module: Lightbox
«
Reply #71 on:
October 09, 2008, 09:55:06 PM »
Hi,
if Your picasa-album is accessible like a YouTube-video You could
try out
this one
.
regards from Himberg, next to Vienna
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.
albatros
"All I Do Is Bake" Baker
Offline
Posts: 508
Lightbox and valid XHTML
«
Reply #72 on:
October 10, 2008, 07:22:11 PM »
Hi everybody,
now a blind man will start talking about colors.
I am always happy getting valid pages. And it seems, I am not the only one, because this was the reason for the "frontend.css". This lightbox-module by Christian Thamer (newest version?
http://forum.websitebaker2.org/index.php?action=dlattach;topic=7822.0;attach=2369
) is using a frontend.css, but the code of my page was not valid. And it didn't matter, if the gallery was in a section or if it was a pure gallery-page. The validator found two errors.
The first was a missing alt-tag, so I inserted <code>alt=""</code> in line 153 of view.php. Easy, even for me.
The second error was caused by
Code:
echo '<link rel="stylesheet" type="text/css" href="' . WB_URL . '/modules/lightbox2/frontend.css" media="screen" />';
in line 22 of view.php. So I deleted it. The gallery still works and my page was "was successfully checked as XHTML 1.0 Transitional!"
But, as I told you in the beginning, I am really "a blind man talking about colors".
So what do PHP-Pros say to the deleted code-part? Necessary or not? "frontend.css" only should be in the header or am I totally wrong?
Best regards from Germany
Uwe
Edit: CSS-validation also failes. But there you have to choose between effects or validation.
Logged
sparkdigital
Semi-Master Baker
Offline
Posts: 212
Once a baker, always a baker!
Re: New Module: Lightbox
«
Reply #73 on:
October 14, 2008, 04: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
Logged
groloff
Pending Apprentice Baker
Offline
Posts: 17
Re: New Module: Lightbox
«
Reply #74 on:
October 15, 2008, 08:23:50 PM »
thanks vyni, that looks good, but... how do I use it to show picasa albums?
Logged
vyni
"All I Do Is Bake" Baker
Offline
Posts: 566
Re: New Module: Lightbox
«
Reply #75 on:
October 15, 2008, 10:10:57 PM »
Quote from: groloff on October 15, 2008, 08: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
Pending Apprentice Baker
Offline
Posts: 3
Re: New Module: Lightbox
«
Reply #76 on:
October 31, 2008, 01:56:10 PM »
Quote from: sparkdigital on October 14, 2008, 04: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
Development Team
"All I Do Is Bake" Baker
Online
Posts: 987
[[droplets]]
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
Demo's, Tips en Truuks voor Website Baker in het Nederlands
|
ALLWWW Webdesign Oosterhout
|
WB Module ontwikkeling
dimat66
Apprentice Baker
Offline
Posts: 78
ARONMEDIA
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
Backend Theme Team
A Baker's Baker
Online
Posts: 2100
Friedenspfeife rumgereicht
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
WebsiteBaker CMS
the best things in life are simple
.:.
Bowling in
Kiel
,
Halle
und
Aschaffenburg
Pages:
1
2
3
[
4
]
5
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
===> Security Announcements
=> Guest Area and Off-Topic
=> Website Showcase
-----------------------------
English
-----------------------------
=> Help/Support
===> Help/Support of WB2.7.x core
=> Website Baker Development
===> Website Baker 3
=> Documentation
=> Templates
=> Modules
===> Code Snippets
=> Languages
=> Archive
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Hilfe/Support
===> Templates, Module & Co.
===> Hilfe/Support von WB2.7.x core
=> Diskussion über WB
===> jQuery
=> Off-Topic
=> Archiv
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Help / Support
===> WB Core
===> Templates, Modules & Languages
=> WB Discussie
=> Niet-Terzake (Off Topic)
-----------------------------
French
-----------------------------
=> Help/Support
-----------------------------
Italian
-----------------------------
=> Help/Support
Loading...