vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Dynamic Picture Resize for [IMG] tag (https://vborg.vbsupport.ru/showthread.php?t=157228)

thincom2000 09-10-2007 06:56 PM

Quote:

Originally Posted by JohnnieOO (Post 1336402)
OK, if I am reading this correctly, when installed this will resize pictures as they are uploaded from the user's computer but before being saved on the server? However, they must be attached and not installed with [img] tags? Am I reading this right?

Johnnie

What you have described is a default vBulletin feature.

TECK 09-10-2007 11:23 PM

JohnnieOO, this hack applies only to images that you insert using the [IMG] bbcode tag.
In other words, if your board width is set 1024px and the user inserts an image hosted on imageshack.us that has 1900px in width, it will break your design.

My hack will automatically resize that image to load a specific width you desire, eliminating the ugly look your board will get from a very wide image.

nickypoooo 09-11-2007 06:44 AM

Installed, Thank you

Saviour 09-11-2007 05:21 PM

Wonderful hack...Clicked Installed...

I saw in an earlier post, if enough people request it...you would make a code change to state the original image has been edited...

You should actually include that code within your mod...as well as including the code to open the image in a new window...just like the vBulletin default image attachments already do.

It only stands to reason that this would be the best way to go...convenient...and warranted.

Again...thanks for the hack...Kudos!

UNRE4L 09-12-2007 01:33 AM

Does anyone know if theres a similar thing for avatars?

TECK 09-12-2007 03:15 AM

Quote:

Originally Posted by UNRE4L (Post 1337364)
Does anyone know if theres a similar thing for avatars?

Is a default option in vBulletin, no need to hack it. Hmm actually, it will display a warning that your avatar is to big... Let them work a little. :)

Quote:

Originally Posted by Saviour (Post 1337123)
Wonderful hack...Clicked Installed...

I saw in an earlier post, if enough people request it...you would make a code change to state the original image has been edited...

You should actually include that code within your mod...as well as including the code to open the image in a new window...just like the vBulletin default image attachments already do.

It only stands to reason that this would be the best way to go...convenient...and warranted.

Again...thanks for the hack...Kudos!

When I have time, I will do it... I'm in the middle of a server build for a client.

UNRE4L 09-12-2007 08:37 AM

Yeh i dont just want something resized to fit a 400 x 400 box for example.

If their image is 1000 x 600 (ony an example) and they put it in their avatar I want it to keep the proportions but be smaller. So if i state the avatar size to be 400x400 max it would be resized to 400 x 240

If i just left it how it is in VB the image would be stretched to 400 x 400 and unless its a square image to start it looks messed up.

TECK 09-14-2007 05:56 PM

Avatars are stored into database. They have nothing to do with the [IMG] tag. :)

thincom2000 09-14-2007 08:21 PM

Actually, you can configure vBulletin to store avatars (like attachments) in the file system. Thus, an IMG tag would be able to fetch said avatar.

UNRE4L 09-14-2007 09:04 PM

Yeh my avatars are saved to folders along with all other images rather than having a huge database file.


All times are GMT. The time now is 11:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01260 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete