vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Img Sig size restriction hack?! (https://vborg.vbsupport.ru/showthread.php?t=45930)

pixelghetto 11-20-2002 04:25 PM

Img Sig size restriction hack?!
 
Is there a simple hack that would restrict the size (in pixels) of peoples image signatures, as someone on the board has decided that having a 456x233 sig is needed. I would like to stop this continuing by having a size limit in place?

I had a look through the forums and couldn't seem to find one, but if there are I'm sorry, and could you point me to it?

Thanks in advance!
Simon

!!! 11-20-2002 08:03 PM

I also requested this, partly because of the current version. It checks the signature when you update it...however, if the user alters the image without having to change the url in his/her user-CP, no restriction protects it.

I also need a script that resizes extremely large images so that they won't overflow tables or require side-scrolling.

pixelghetto 11-20-2002 08:29 PM

Yea, that would be cool. But I would like something that just has max size like 400x75 and if the user goes above it, it just shows no image/red-x.

Sufian 09-29-2003 04:51 AM

I agree, a this is something I need to enforce on my site now as well.

CarlitoBrigante 04-09-2004 10:34 AM

Quote:

Originally Posted by Sufian
I agree, a this is something I need to enforce on my site now as well.

This is actually easy... it would be sufficient to do a getimagesize on the linked images. The problem is - and I guess for this reason it isn't included in vbulletin - this slows down the forums, since everytime you request a page, the system must first check the imagesizesm and then complete loading the page. It's not even good to have a chack only when the user submit his image in the control panel, because he could later change it and put a bigger image.

This is a big issue for all those websites with fixed tables width...


All times are GMT. The time now is 02:03 PM.

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.00940 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete