Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#109 2006-05-30 16:54:22
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
Hi! thanks for the quick reply.
Still, I cant get the import process working… I have redownload the plug-in, deleted everything, and reinstalled it again!
Should I wait to a 0.4.1 release with the fix? or you fixed the path in 0.4 directly?
Offline
#110 2006-05-30 17:53:42
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
bq.or you fixed the path in 0.4 directly?
Ähm, i fixed in 0.4 directly. Probably you redownload the plug-in from your browser’s chache-
I tried it just a minute ago with 3 differnent host and a local one and it works for me.
Perhaps there is a problem with proxies? Please let me know if it works with the fixed one.
Offline
#111 2006-06-01 20:15:05
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
Thanks to Rui
He just finished to translation of the Portuguese plugin help.
If you want to read the help in Portuguese,
- Install bas Lightbox v0.4
- Install the translation
- Activate both plugins
- If you have selected Portuguese as TXP language, go to extensions -> bas Lightbox and the Help will be translated
BTW: I set up a flyspray to manage bugs and feature requests.
You can add those anonymously (get it sane, please)
Would be nice if some of you use it, just because i want to know, how it works :)
Offline
#112 2006-06-05 11:36:08
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
I’ve got a quite big problem with bas_lightbox 4.0 (didn’t try the earlier versions) here. I’ve included the header, just to make that sure ;-)
My problem is, that it doesn’t display anything.
my txp code in my article:
<code>
<txp:bas_lightbox img=“4” />
</code>
that just puts out the following html code:
<code>
<a href=“http://www.telltec.ch/images/” rel=“lightbox” title=”“>
</code>
did I do something wrong?
greetings
doni
Offline
#113 2006-06-07 14:54:58
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
I’m looking to do what panik and colak were discussing on page 3 of this thread. Have the image’s alt tag used on the thumbnail but use the caption for underneath it after you click on the image.
Can anyone tell me how to do this or post/send code?
Thanks
Offline
#114 2006-06-07 15:30:52
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
Panik mailed me the hack. Many thanks to him. I’ll post it here for anyone’s future reference:
**********************************************************
at the beginning (line 34, 35) of the plugin code i changed
$big = safe_row(‘id, ext,’.$caption,‘txp_image’,‘id =”’.$getImg.’”’);
$out[] = ‘<a href=”’.hu.$img_dir.’/’.$big[‘id’].$big[‘ext’].’” rel=“lightbox” title=”’.$big[$caption].’”>’.$thumb.’</a>’;
to
$big = safe_row(‘id, ext, alt,’.$caption,‘txp_image’,‘id =”’.$getImg.’”’);
$out[] = ‘<a href=”’.hu.$img_dir.’/’.$big[‘id’].$big[‘ext’].’” rel=“lightbox” title=”’.$big[‘alt’].’”>’.$thumb.’</a><span style=“display: none;”>’.$big[$caption].’</span>’;
and around line 260 i changed
if(objLink.getAttribute(‘title’)){
objCaption.style.display = ‘block’;
//objCaption.style.width = imgPreload.width + ‘px’;
objCaption.innerHTML = objLink.getAttribute(‘title’);
} else {
objCaption.style.display = ‘none’;
}
to
if(objLink.nextSibling){
objCaption.style.display = ‘block’;
//objCaption.style.width = imgPreload.width + ‘px’;
objCaption.innerHTML = objLink.nextSibling.innerHTML;
} else {
objCaption.style.display = ‘none’;
}
one could choose a more adequate if-condition.
and you can put links into your caption.
Offline
#115 2006-06-14 21:11:52
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
Hi Bastian, I installed the latest version using the import script and then uninstaled it using the script. But when I try to reinstall it the import fails for all the files. Any idea what could be going on?
Thank you, Lee.
Offline
#116 2006-06-17 18:15:24
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
Working perfect! Thanks!
…Prrrrrrrr…
Offline
#117 2006-06-21 10:05:36
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
I wonder if anyone can help.
I’m trying to use bas_lightbox to present a range of images. I installed the plug-in, but the Advanced Install showed a series of errors (installation failed), so I’ve manually placed the files (bas_lb04_scriptaculous, etc) into the ‘Files’ folder.
I’ve then created an image catagory called ‘Gallery’ and uploaded a couple of shots, these images will appear in the section called ‘Gallery’ so I’ve used the <code><txp:bas_lightbox use_section=“true”/></code> tag. So far so good, I’m now getting my caption appearing on the Gallery page.
Then finally, I put the <code><txp:bas_lightbox_head /></code> into the Gallery pages head, but when I view the page it is now completely blank!
I’m fairly new with Textpattern and have this site to complete – can anyone please offer some advice?
Last edited by decoderltd (2006-06-21 10:20:50)
Offline
#118 2006-06-21 17:53:26
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
I’m sort of a newbie myself, but I ran across some of the problems you mentioned, so I thought I’d take a stab at helping for once, instead of being the one who’s getting help.
One thing I noticed is that you mentioned uploading the lightbox files directly to the “files” folder. I’ll assume you did the same with the images. The problem there is the plugin uses the TextPattern database to access the files, and if you put them there manually, TextPattern doesn’t know they’re there. Instead, upload the files through the file upload tab, and the images through the images tab. To keep things organized, I attributed them to the category bas_Lightbox. It’s important, however, that you don’t change their names. Apply a category if you wish, but don’t change their names.
I’m guessing you’ve installed and activated the plugin properly (“yes” will appear in the Active column). Once you’ve done that, click the admin tab and you’ll see a newly added tab called extensions. Click that and follow the instructions in the help that came with the plugin. Since you’ve already uploaded the images and files, you can do a manual installation.
A nifty feature is that if you’ve uploaded the files and not changed their names, the plugin will find them in the database for you and pre-populate the fields with their IDs.
Once you’re done with the installation, the blank screen should be replaced by a nifty gallery with the lightbox overlay when you click an image.
One last thing… I believe there’s a bug in the plugin that’s probably just a carryover from modifying the new lightbox script that doesn’t implement the images properly. What I mean is that you may see the gallery work just fine, but the previous, next, and close images appear as missing.
To remedy this in my duct tape sort of way, is I uploaded the plugin images to the “images” folder and renamed them without the bas part in front, like so:
bas_lb04_close.gif > close.gif
Once I renamed the images, which took longer to diagnose than I’m comfortable admitting, the plugin worked perfectly.
You can check out how it’s working for me at my site The Modest Adventurer
I’m sorry it’s wordy, but I hope it helps.
Good luck,
TJ
Offline
#119 2006-06-22 13:06:28
Re: [plugin] [ORPHAN] bas_lightbox (Thumbnail galery with unobtrusive javascript)
Thanks TJ, among other things I did indeed have my bas_lightbox images in the wrong place!
Bastian very kindly had a look at the site and fixed the problem(s), but thank you for your comprehensive reply, it was much appreciated and gave me a better understanding of how the plug-in works.
I did have a look at your site (The Modest Adventurer) and like the way your thumbnails display horizontally (rather than the default vertical listing) – could you give me a couple of pointers on how you did this?
Offline