1
tvepsorg
Solution for people who post large pics in forums...
  • 2006/7/28 13:52

  • tvepsorg

  • Quite a regular

  • Posts: 276

  • Since: 2004/5/18


Problem: Someone posts a pic and it's so large that it widens the piss out of the entire forum.

Solution 1. That person makes a link to the image that will open in another window... how boring.

Solution 2. "Thickbox". What's a "thickbox" you may ask? Well, the easiest way to explain it, is to show you. Click here to see example.

As you can see it pops up the picture on top of the window that you're using. all you need is two java files and to name the class for those java files in the html link... like so...

<a href="linktoImage" title="Add a caption" class="thickbox"><img src="linkToImageThumbnail" alt="Image" />a>


Here's where my question is...

When you click on the little icon to insert an image at the top of the forum form, it asks you for a url and if you'd like to align it left or right.

Then it fills in the bbcode for you...

Well, How would I make the button ask you for a link... and then get it to spit out some bbcode that would then translate into the html code that I've listed above?

This way people could simply fill the form out and instead of a huge picture in the forums, it's dispalyed nicely in the (no need for a new window) nice "thickbox".

2
tvepsorg
Re: Solution for people who post large pics in forums...
  • 2006/8/2 14:10

  • tvepsorg

  • Quite a regular

  • Posts: 276

  • Since: 2004/5/18


bumping...

I think if we could get this to be the default in newbb there could be a lot of bandwidth and page load times saved.

3
Will_H
Re: Solution for people who post large pics in forums...
  • 2006/8/2 16:04

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


Personally i prefer

[u rl=linkto_largeimage][i mg]linkto_thumbnail[/img][/url]


Its a bit more work but displays very nicely inline.

(Never knew that code tags didnt display bbcode.)

4
tvepsorg
Re: Solution for people who post large pics in forums...
  • 2006/8/3 12:16

  • tvepsorg

  • Quite a regular

  • Posts: 276

  • Since: 2004/5/18


yea, but you can use a thickbox to play a video and everything, like I have here.

All I want to do is replace or add a button to the forum post tools that would allow the users to give a link to an image or video and instead of it showing in page, it pops up in this nice looking thickbox.

Login

Who's Online

259 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 259


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits