Idea for module: Wrap text around thumbnail image for web/hotlinking

Chasden

Joined: 2012-01-02
Posts: 51
Posted: Tue, 2012-01-03 07:42

I'm enjoying working with this script on my website: http://www.rashadface.com

I had an idea for a module that would add some text on a thumbnail image that someone might use on a forum.

I suppose it would be a separate thumbnail setup from the current one to avoid affecting the thumbnails in Album View.

Basically, if someone hotlinks a thumbnail using the BBCode on your website, like this:

There would be text (or a bar with text) on the bottom of the image that says "Click to Enlarge".

Maybe have an option to also include the name of your website as a bar with text on the top of the image as well.

Overall, the image would look like this:

_________________________
RASHADFACE.COM

CLICK TO ENLARGE_________

Except, you know, centered. And nice looking!

Thanks for reading!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25960
Posted: Tue, 2012-01-03 17:35

Im sure that the http://codex.gallery2.org/Gallery3:Modules:embedlinks could be expanded to add the test you want.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Chasden

Joined: 2012-01-02
Posts: 51
Posted: Thu, 2012-01-05 00:30

I was actually trying to come up with a way to work the text into the embedlinks module, but there is no line break in BBCode (in other words, no equivalent to < br > tags in html.

Otherwise, i was thinking more along the lines of using ImageMagick or GD to superimpose the text on the top/bottom of a thumbnail (which would mean a separate thumbnail created specifically for this purpose, otherwise it will mess up the album thumbs on the website).

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25960
Posted: Thu, 2012-01-05 03:14

Sure bbcode has line breaks:
Example Usage:
This is a[ br][/br]forced line break
remove the space between the br and the [

result:

Quote:
This is a
forced line break

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Chasden

Joined: 2012-01-02
Posts: 51
Posted: Thu, 2012-01-05 09:30

And this is the first forum i've seen
that actually supports it ;)

In fact, on this forum you don't even need the [/br]