Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2006-02-21 11:36:41
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
re: overlay.png … dododi, check the file paths in your css too
Offline
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
for whatever reason this is not working here. although javascript is activated, a click on the thumbnail just opens the original image without any lightbox magic. :(
the example on bastians site works just fine, though. any ideas?
and if i can figure this out i got another question, would it be possible to get the comma separated image list from a custom field in a future version? something like this:
<code>
<txp:bas_lightbox img=”<txp:custom_field name=“image_ids” />” />
</code>
EDIT: i totally missed the part in this thread where the custom field thing has already been discussed. sorry.
Last edited by sthmtc (2006-02-22 03:51:00)
Offline
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
ok i got it working now. my site is currently under construction and so its not in the webservers root but in a subdirectory. had to edit the plugin code so that it finds the JS.
Last edited by sthmtc (2006-02-22 03:29:45)
Offline
#19 2006-02-22 03:44:26
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
using it here … cheers bastian
Offline
#20 2006-02-22 06:32:10
- dododi
- Member
- Registered: 2006-01-14
- Posts: 17
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
I have tried every variation in my css code but it is still not appearing. I have tried removing the custom css from my stylesheet also but no luck. As mentioned the other images showing up fine.
Currently the page is located at: http://www.myurl.com/content/gallery/
I have uploaded overlay.png into http://www.myurl.com/content/images/
Text pattern is located: http://www.myurl.com/content/textpattern/
I have tried the following links within the CSS:
#overlay{ background-image: url(../images/overlay.png); } * html #overlay{background-color: #333;back\ground-color: transparent;background-image: none;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=”../images/overlay.png”, sizingMethod=“scale”);}
also (../../images/overlay.png), (/images/overlay.png)
All to no avail. I even tried a direct link to the file (http://www.myurl.com/content/images/overlay.png).
Any ideas on what might be going on.
Thanks
Offline
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
dododi, i have no idea whats going wrong.
> I even tried a direct link to the file (http://www.myurl.com/content/images/overlay.png).
But you are sure, that it exists?
Last edited by Bastian (2006-02-22 12:20:05)
Offline
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
dododi, maybe you’re experiencing the same problem i had?
it seems that your site runs in a subdirectory.
it works for me since i’ve changed
<code>return ‘<script src=”/?bas_lightbox_js=true” type=“text/javascript”></script>’;</code>
to
<code>return ‘<script src=”/mysubdirectory/?bas_lightbox_js=true” type=“text/javascript”></script>’;</code>
Offline
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
That could be!
I forgot to support subdir into including the javascript.
Offline
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
What’s the trick to getting the caption to show up?
Everything else works great!
Offline
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
Moon, i’m sorry. On my site i want to use the alt txt instead of the caption. I included a attribute to manage that, but for some reason included also <code>$caption = ‘alt’;</code>. This is senseless and breaks your caption.
Remove that from plugins code. Its in <code> function bas_lightbox</code>, the first line of code after extracting $atts.
Offline
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
Version 0.3
- I hope, i fixed the javascript subdir problem
- Removed hardcoded caption. By default images caption will be used as caption. You can set caption=“alt” or caption=“name” to display the alt-text or image name instead.
Offline
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
> Bastian wrote:
> Moon, i’m sorry. On my site i want to use the alt txt instead of the caption. I included a attribute to manage that, but for some reason included also <code>$caption = ‘alt’;</code>. This is senseless and breaks your caption.
Remove that from plugins code. Its in <code> function bas_lightbox</code>, the first line of code after extracting $atts.
No Problem, I’ve installed ver 0.3 and it works great now. You can see it at http://rnt.ewmullin.com/
Thanks for a great plugin. Now to figure out how to make a little more dynamic…random images, stuff like that.
Offline
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
panik wrote earlier:
<blockquote>
do you plan to add “next” and “prev” links next to the overlaid images?
can i easily swap the lightbox sript with lightbox plus? http://serennz.cool.ne.jp/sb/sp/lightbox/
</blockquote>
The next and prevs links i will add, when i have the time to get deeper in the javascript. Can take a while.
Lightbox Plus: I dont like this expand feature in IE and i dont find the advantage of Lightbox Plus
But feel free to use my code to include it
Offline
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
First, I’d like to thank you, Bastian, for such a great job!
I’m getting a weird error on only one of my blogs. When ever I include the <code><txp:bas_lightbox img=“339” /></code> tag, I get this error:
Fatal error: Call to undefined function: dolabel() in /home/httpd/vhosts/coffeepostal.com/subdomains/ashleyhay/httpdocs/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 44
Line 44 in the plugin code is regarding the “dolabel” function, but I don’t know PHP well enough to tell what’s going on. I’ve successfully installed the plugin on one other blog, so it very well might be me, but I don’t know where to begin looking.
Any help would be MUCH appreciated!
Offline
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
That doLabel function is part of txp
textpattern/publish/taghandlers.php line 1444
So that is a strange one.
Dont know, why it happens
Offline