Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2006-05-11 10:57:38

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Wow Bastian, another great plugin! I feel so slow when I think about the discussion we had a couple of weeks back (or was it months?!?) in regard to giving you a hand with those image-related plugins. Still on the sideline mate with all the work floating around, sorry : (.

Offline

#92 2006-05-12 11:08:07

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

The testversion has downloaded 23 times and so i hope the maniqui reported are all bugs.
Iwill fix them and and probaly sunday i will be ready with that and help, article etc.

All text belong to the plugin i add by $textarray, so i anyone is interested, please contact me for a translation. I will do German and English.

Last edited by Bastian (2006-05-12 11:08:37)

Offline

#93 2006-05-12 11:12:38

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Hi Bastian, I’m looking at it today so will let you know if I find any bugs.

Offline

#94 2006-05-12 11:50:40

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,375
Website GitHub Mastodon Twitter

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Hi Bastian, tested it on localhost and the script did not load at all. ie on clicking the thumbnail I get a new page with the larger image


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#95 2006-05-12 12:52:02

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

colak,

Did you include txp:bas_lightbox_head to your head and did the install script worked?

Last edited by Bastian (2006-05-12 12:52:48)

Offline

#96 2006-05-12 12:53:49

strawberryfusion
Member
Registered: 2005-07-24
Posts: 20

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Hi Bastian,

Only issues I’ve had is with the wrap tag and class tag not being applied, also on a page I’m using this on there is a QuickTime movie which seems to sit on top of the larger image – I guess I can take care of it with ‘z-index’. Otherwise import of the scripts worked fine and I see no problem with other plug-ins.

rajiv

Offline

#97 2006-05-16 05:49:00

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub Mastodon

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Servus Bastian,

I noticed a couple of reasons for some of the above mentioned minor quirks, thought you might know.

tag_error <txp:bas_lightbox cat="people" /> ->  Notice: Undefined variable:  script  on line 70

$script is probably a relict from a previous version.

wraptag works when it is explicitly specified as the tag’s attribute. If this attribute is empty, the default value is not applied. I suppose this is caused by a naming conflict, as the preference value is named bas_lightbox_wraptag while you are trying to read bas_lightbox_use_wraptag from the $prefs array (which is a constant NULL). Same is true for bas_lightbox_wrapclass.

Changing

#11:'wraptag' => (empty($prefs['bas_lightbox_use_wraptag']))?'':$prefs['bas_lightbox_use_wraptag'],
#12: 'wrapclass'    => (empty($prefs['bas_lightbox_use_wrapclass']))?'':$prefs['bas_lightbox_use_wrapclass'],

to

#11:'wraptag' => (empty($prefs['bas_lightbox_wraptag']))?'':$prefs['bas_lightbox_wraptag'],
#12: 'wrapclass'    => (empty($prefs['c']))?'':$prefs['bas_lightbox_wrapclass'],

helps.

It might be worth mentioning that txp:bas_lightbox_head implicitly assumes that all files are in a folder named files subordinated to the Textpattern root folder. A future enhancement of this plugin could possibly rely on $prefs['file_base_path'] to cope with unusual setups regarding site directory structure.

HTH & Freundschaft,

Robert

Last edited by wet (2006-05-16 08:13:07)

Offline

#98 2006-05-16 08:19:46

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

thanks wet.

That script think i found on myself, but i search nearly 20 minutes for the wraptag bug.
Sometimes it is helpfull, when someone else is looking at the code.

I strg + c the prefs and forget them afterwards.
And a day later i didn’t find the bug, because i tought to complicated. Thanks!

Offline

#99 2006-05-16 13:19:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,375
Website GitHub Mastodon Twitter

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Bastian wrote:

Did you include txp:bas_lightbox_head to your head and did the install script worked?

hi bastian. Apologies for delaying my response. Yes I did. I have your plugin live on hblack.net but I always like to test on localhost before any updates.

Last edited by colak (2006-05-16 13:21:46)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#100 2006-05-17 06:30:22

The Human Museum
Member
From: Toronto, Canada
Registered: 2005-11-21
Posts: 64
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Installed it at The Human Museum and back edited my posts to use it. So far so good in Firefox and IE7. Cheers and thanks for the hard work Bastian.


“I was born to hustle roses down the avenues of the dead.” – Charles Bukowski
The Human Museum

Offline

#101 2006-05-17 17:39:33

Sebastiaan
Member
From: Groningen (NL)
Registered: 2004-10-19
Posts: 16
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Hai Bastian,

First: compliments on your work. Thanks to you we can integrate a great gallery script in to txp.

I think I found a bug. I’ve tested bas_lightbox 0.4 on a txp install running in a subdirectory (a test directory). The problem is that the “close” and “loading” images don’t show up: in IE you see the red cross and in FF you see nothing. I’ve checked the image urls, and they resolve to something.com/images, whereas they should resolve to something.com/testdir/images.

I’ve been able to locate the bug, in bas_lb04_lightbox.js on lines 62 & 63:
<code>
var fileLoadingImage = “../images/14.gif”;
var fileBottomNavCloseImage = “../images/13.gif”;
</code>
I’ve corrected this to:
<code>
var fileLoadingImage = “/testdir/images/14.gif”;
var fileBottomNavCloseImage = “/testdir/images/13.gif”;
</code>

Except for this little quirk the plugin seems to be working great! Well done!
Cheers,
Sebastiaan


“Bartender, a bit of advice. Always inspect a jukebox carefully.
These machines can be deadly.” — Adam West, the Original Batman

Offline

#102 2006-05-18 09:59:22

Sebastiaan
Member
From: Groningen (NL)
Registered: 2004-10-19
Posts: 16
Website

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Bastian wrote:

The testversion has downloaded 23 times and so i hope the maniqui reported are all bugs.
Iwill fix them and and probaly sunday i will be ready with that and help, article etc.
All text belong to the plugin i add by $textarray, so i anyone is interested, please contact me for a translation. I will do German and English.

If you want to I can translate from english to dutch.

Last edited by Sebastiaan (2006-05-18 09:59:53)


“Bartender, a bit of advice. Always inspect a jukebox carefully.
These machines can be deadly.” — Adam West, the Original Batman

Offline

#103 2006-05-22 13:28:00

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub Mastodon

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

I just stumbled over Markus Kniebes Lightbox plugin [lang=“de”]. Allows the selection of image categories via _GET parameter. Nice, too.

Offline

#104 2006-05-25 10:56:26

mercury
Member
Registered: 2006-05-12
Posts: 26

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

wet wrote:
<blockquote>

Changing

#11:'wraptag' => (empty($prefs['bas_lightbox_use_wraptag']))?'':$prefs['bas_lightbox_use_wraptag'],
#12: 'wrapclass'    => (empty($prefs['bas_lightbox_use_wrapclass']))?'':$prefs['bas_lightbox_use_wrapclass'],

to

#11:'wraptag' => (empty($prefs['bas_lightbox_wraptag']))?'':$prefs['bas_lightbox_wraptag'],
#12: 'wrapclass'    => (empty($prefs['c']))?'':$prefs['bas_lightbox_wrapclass'],

helps.

</blockquote>

a little correction of code above:

Change <code>#12: ‘wrapclass’ => (empty($prefs[‘c’]))?’‘:$prefs[‘bas_lightbox_wrapclass’],</code>
to <code>#12: ‘wrapclass’ => (empty($prefs[‘bas_lightbox_wrapclass’]))?’‘:$prefs[‘bas_lightbox_wrapclass’],</code>

this will enable not wraptag only, but wrapclass too.

Offline

#105 2006-05-26 08:23:43

mercury
Member
Registered: 2006-05-12
Posts: 26

Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)

Is there way to disable caption animation?

in most cases it’s superfluous pretty effect.
so it would be more user friendly to initially draw caption with the image container. any hints to implement this manually?

Offline

Board footer

Powered by FluxBB