Tech Note: Image Uploading for Comments

Poor man’s image hosting
Charles Johnsonfollow me on twitter
LGF • Sat Apr 23, 2011 at 3:55 pm PDT • Views: 29,516

The tech note for today is a new feature in the comment posting form: there’s now a button labeled “Upload Image.” It opens a popup window in which you can upload an image file from your computer to LGF, using the standard HTML two-step file uploading form. You then get a permanent link to that image hosted on our massive nitrogen-cooled server farm far beneath Denver International Airport.

(Actually, it’s just one server and space is not unlimited, which is why the maximum file size for user images is 200K. But the physical dimensions are unlimited, because when it’s posted in a comment it becomes an auto-scaling Javascript popup.)

After doing the two-step uploading dance, you’ll see another screen with the name of the uploaded image, and a box containing the image’s permanent URL (pre-selected, in case you want to copy it to the clipboard).

There’s also a line in which you can enter a description for the image. If you leave this blank, the code that will be inserted into the comment posting form will simply be the image’s URL, which is automatically converted to a popup image link when you post the comment.

If you enter a description, it becomes the text of a link to the popup image, and some additional HTML code is inserted into your comment.

Note that the image itself doesn’t appear in your comment — instead there’s a clearly identified link that opens a Javascript popup lightbox-style image. You can see the effect before posting your comment by using our beloved Preview button.

It should be fairly simple to figure out, so give it a try. This is a close relative of the image uploading script from our LGF Pages posting form, so it will be somewhat familiar to those registered users who’ve posted LGF Pages containing images.

The fine print: we reserve the right to remove images that are offensive, or that violate copyrights.

Advertisement

478 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Whip it out!

TwitterFacebook
LGF Pages
Recent Pages

MikeySDCA
5 Infuriating Things Nobody Tells You About College
2 hours, 10 minutes ago
Views: 71 • Comments: 0
Tweets: 0 • Rating: 0

researchok
'I Was Looking Forward to a Quiet Old Age': Instead, Etta Shiber, Helped Smuggle Stranded Allied Soldiers To Freedom
11 hours, 28 minutes ago
Views: 143 • Comments: 0
Tweets: 1 • Rating: 0

Daniel Ballard
Late Afternoon Light-Kalanchoe
19 hours, 9 minutes ago
Views: 140 • Comments: 0
Tweets: 0 • Rating: 5

Eclectic Infidel
City College of San Francisco Budget Update
20 hours, 2 minutes ago
Views: 154 • Comments: 0
Tweets: 0 • Rating: 0

Michael McBacon
Kansas governor signs 'Shariah bill' to ban Islamic law
1 day ago
Views: 282 • Comments: 7
Tweets: 0 • Rating: 6

Aigle
National Geographic Traveler Veers Off Track
2 days ago
Views: 606 • Comments: 10
Tweets: 16 • Rating: -7

MichaelJ
Apple TV Slated to Debut in December?
2 days, 1 hour ago
Views: 252 • Comments: 0
Tweets: 0 • Rating: 1

Ascher
Israeli Who Saved Turk on Everest: You Never Abandon a Friend - Israel News, Ynetnews
2 days, 3 hours ago
Views: 322 • Comments: 1
Tweets: 0 • Rating: 4

Haywood Jabloeme
The Harrassment of Patterico & Its Roots in Left-Wing Activism
2 days, 3 hours ago
Views: 553 • Comments: 2
Tweets: 0 • Rating: 4

Curt
Brian Banks: (Video) Falsely accused of rape speaks out
2 days, 5 hours ago
Views: 297 • Comments: 3
Tweets: 0 • Rating: 5

 Frank says:

Music is the most physically inspiring of all the arts. -- Said as he gave the keynote address at the American Society of University Composers in Columbus Ohio in 1985.