The Firing Line Forums

Go Back   The Firing Line Forums > Forum Support > Site Questions and Tech Support (NO FIREARMS QUESTIONS)

Reply
 
Thread Tools Search this Thread
Old November 12, 2014, 07:15 PM   #1
Barnacle Brad
Senior Member
 
Join Date: March 12, 2009
Location: Greybull, Wyoming
Posts: 416
Code to specify image size?

I was looking for a way to scale or resize an image inserted into a post. I wanted to use a facebook picture (my own) but the image size exceeds the bounds of the normal post area. I found bbcode which would change the image size, but apparently it must be enabled at the administrative level.

The code looks like this:
[resize=100][img]http:www.myphoto/myimage.jpg[/img][/resize]

Get the specifics here: Resize Images

Would allowing code like this be valuable to TFL? I believe it would.

Thanks for your consideration.
__________________
Brad
Barnacle Brad is offline  
Old November 12, 2014, 08:07 PM   #2
Mal H
Staff
 
Join Date: March 20, 1999
Location: Somewhere in the woods of Northern Virginia
Posts: 16,947
Yes, that would be a useful feature. However, it doesn't have to be enabled (implying we have it disabled), it has to be added to the existing code. Perhaps tyme, our resident guru, can see if this is doable.
Mal H is offline  
Old November 12, 2014, 09:12 PM   #3
Barnacle Brad
Senior Member
 
Join Date: March 12, 2009
Location: Greybull, Wyoming
Posts: 416
My apologies. I did not mean to imply TFL was preventing members from using forum features. I could have used a words like "implement" or "add code" if I was more familiar with the jargon.

I appreciate your consideration. Thank you.
__________________
Brad
Barnacle Brad is offline  
Old November 12, 2014, 09:19 PM   #4
Barnacle Brad
Senior Member
 
Join Date: March 12, 2009
Location: Greybull, Wyoming
Posts: 416
Perhaps the code could be added to the existing "insert image" code already available? If my thinking is correct it would essentially standardize image sizes - at least until the poster edits the size value...
__________________
Brad
Barnacle Brad is offline  
Old November 18, 2014, 08:44 PM   #5
tyme
Staff
 
Join Date: October 13, 2001
Posts: 3,355
Although I consider it less than ideal (supporting height and width params for img tags would be ideal), I've added that resize bbcode.



I haven't added an editor icon for point and click usage, though.

Ultimately this and many other limitations of stock vb3 may be solved by a migration to phpbb, which looks like the best long-term option, but any upgrade, to vb4 or 5, or phpbb, or mybb, or something else, will include a major design change that will burden existing members with a learning curve.
__________________
“The egg hatched...” “...the egg hatched... and a hundred baby spiders came out...” (blade runner)
“Who are you?” “A friend. I'm here to prevent you from making a mistake.” “You have no idea what I'm doing here, friend.” “In specific terms, no, but I swore an oath to protect the world...” (continuum)
“It's a goal you won't understand until later. Your job is to make sure he doesn't achieve the goal.” (bsg)
tyme is offline  
Old November 18, 2014, 09:08 PM   #6
Mal H
Staff
 
Join Date: March 20, 1999
Location: Somewhere in the woods of Northern Virginia
Posts: 16,947
Cool! Thanks, tyme.

The embedded code looks like this:
[resize=nnn][img]http://yourimageURL[/img][/resize]


resize=100



resize=200



resize=400
Mal H is offline  
Old November 19, 2014, 06:15 PM   #7
Evan Thomas
Senior Member
 
Join Date: July 7, 2008
Location: Upper midwest
Posts: 5,631
This is brilliant. Now, how do we get people to use it instead of posting enormous, hard-to-look at images?
__________________
Never let anything mechanical know you're in a hurry.
Evan Thomas is offline  
Old November 19, 2014, 09:44 PM   #8
tyme
Staff
 
Join Date: October 13, 2001
Posts: 3,355
Start spamming every image thread with a PSA detailing how to use [resize] ?

An announcement or sticky thread would be the obvious answer, except those are never read...
__________________
“The egg hatched...” “...the egg hatched... and a hundred baby spiders came out...” (blade runner)
“Who are you?” “A friend. I'm here to prevent you from making a mistake.” “You have no idea what I'm doing here, friend.” “In specific terms, no, but I swore an oath to protect the world...” (continuum)
“It's a goal you won't understand until later. Your job is to make sure he doesn't achieve the goal.” (bsg)
tyme is offline  
Old November 22, 2014, 08:31 PM   #9
Barnacle Brad
Senior Member
 
Join Date: March 12, 2009
Location: Greybull, Wyoming
Posts: 416
Awesome possum!

Word of mouth will work to a degree as far as educating users on the new code. I will do my part.

Thanks for the help fellas!
__________________
Brad
Barnacle Brad is offline  
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:37 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
This site and contents, including all posts, Copyright © 1998-2021 S.W.A.T. Magazine
Copyright Complaints: Please direct DMCA Takedown Notices to the registered agent: thefiringline.com
Page generated in 0.04462 seconds with 10 queries