HI, I love Brilliant Gallery, its Brilliant!

...I could put a nice gallery into my node so easily... but now I see I can\'t have any captions for the photos, so nobody knows what they are looking at. Any ideas?

CommentFileSizeAuthor
#2 brilliant_gallery.diff3.77 KBgold

Comments

vacilando’s picture

Assigned: Unassigned » vacilando

Hi,

Captions functionality is under development - I'd say a few days from now it should be there. I'll update this thread then so you'll be notified :-)

Cheers,

Tomas / Vacilando

gold’s picture

StatusFileSize
new3.77 KB

I have a client that required this so I've attached this diff hoping it'll do the job.

I'm using lightbox2 and haven't used the others. If the other overlays display things using the anchors title this should work fine for them too.

The changes in this diff;
1. Image names become the caption. The file extension is removed. Any dots in the file name become spaces and underscores are replaced by a br tag. This is then added as the

2. In order to debug the html a little easier I've added \n to the end of the tr and td tags.

Hope this helps.

Regards,
Gold

vacilando’s picture

Status: Active » Fixed

Gold, thanks for the nudge, and for the code idea. I have changed it just a little bit (no
in captions). The caption works not only in Lightbox, but also in Thickbox and Greybox. See version 2.11.

emdeex’s picture

I've applied the new 2.11 version. Works fine, with a couple of issues:

While the "." in a filename does give a space, the underscore character "_" doesn't give me a new line "
".

Under Admin by Modules, I'm seeing two "Configure Permissions" links... one to: admin/user/access#module-brilliant_gallery and another to: admin/settings/brilliant_gallery/brilliant_gallery_perms

gold’s picture

Regarding the newlines. It appears they've been removed.

These weren't actually new lines. The underscore was being replaced by <br> tags. While this worked in the caption the image title that shows up in the mouseover tooltip thing showed the actual tag. Not the best...

emdeex’s picture

Category: feature » support

Is there any logical limit to filename sizes, ie. the length of the caption?

vacilando’s picture

Wouldn't know.. depends on the operating system of your server, perhaps even on its version. The answer(s) will be somewhere on the web.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.