|
Forum Rules | Firearms Safety | Firearms Photos | Links | Library | Lost Password | Email Changes |
Register | FAQ | Calendar | Today's Posts | Search |
|
Thread Tools | Search this Thread |
November 12, 2014, 07:15 PM | #1 |
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
|
November 12, 2014, 08:07 PM | #2 |
Staff
Join Date: March 20, 1999
Location: Somewhere in the woods of Northern Virginia
Posts: 16,955
|
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.
|
November 12, 2014, 09:12 PM | #3 |
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
|
November 12, 2014, 09:19 PM | #4 |
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
|
November 18, 2014, 08:44 PM | #5 |
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) |
November 18, 2014, 09:08 PM | #6 |
Staff
Join Date: March 20, 1999
Location: Somewhere in the woods of Northern Virginia
Posts: 16,955
|
Cool! Thanks, tyme.
The embedded code looks like this: [resize=nnn][img]http://yourimageURL[/img][/resize] resize=100 resize=200 resize=400 |
November 19, 2014, 06:15 PM | #7 |
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. |
November 19, 2014, 09:44 PM | #8 |
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) |
November 22, 2014, 08:31 PM | #9 |
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
|
|
|