vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Quick Sig Image Size Limiter (https://vborg.vbsupport.ru/showthread.php?t=60354)

phlogiston 01-16-2004 10:00 PM

Quick Sig Image Size Limiter
 
A fairly quick and easy to install hack that attempts to check the pixel size of any images users place in their signatures. If the image is above admin set dimensions an error is given to the user explaining the valid dimensions.

I've not found a simple version of this for v3 - apologies if it's already out there somewhere!

- This is purely a BETA release as the getimagesize() function used seems to fail for certain images on one test install, unknown reason at present. This will not make the hack fail, simply some images on some servers will be allowed even if over the set size. To prevent this uncomment the five lines in the added code to give an invalid image message instead.


The options to set the size limits for signature images will be found in the admincp vBulletin Options --> User Profile Options


*****PLEASE NOTE*****
I am unable to provide any support at all for this hack - sometimes it works, sometimes it doesn't.
My knowledge dosn't reach far enough for me to understand or fix the reasons behind it failing on some installs, sorry.
If it works for you, I'm glad, if it doesn't then just revert everything and try looking at the other sig option hacks, sorry - best I can do :(

MindTrix 01-17-2004 06:01 PM

Sounds great, im sure some boards will need this due to people abusing Sig's with pics. Nice one and thank you, Oh and congrats on your first release :)

magnus 01-17-2004 06:08 PM

Nice hack, except there's a problem with the instructions. The 'settings' query is screwed up.

Replace:
Code:

INSERT INTO setting VALUES ('sigmaxwidth', '480', '', '141', 'user', '640', '0', '0');
INSERT INTO setting VALUES ('sigmaxheight', '120', '', '142', 'user', '480', '0', '0');

With:
Code:

INSERT INTO `setting` VALUES ('sigmaxwidth', 'user', '500', '500', '', 112, 0, 1);
INSERT INTO `setting` VALUES ('sigmaxheight', 'user', '150', '150', '', 111, 0, 1);

Or else it will not show up in the AdminCP. Other than that, it works like a charm! Great hack!

phlogiston 01-17-2004 06:48 PM

Quote:

Originally Posted by magnus
Nice hack, except there's a problem with the instructions. The 'settings' query is screwed up.

oops! thanks for pointing that out, I have updated the .txt file now with new queries for the settings which should work everywhere.

& glad it's working fine for you. :)

and MindTrix, thank you too, first release is rather nerve-racking!

FleaBag 01-17-2004 06:55 PM

Nice to see this released, it'll come in handy for my site.

Koutaru 01-17-2004 07:18 PM

Wow, thanks. I really need this one :) I'm really hoping this works!

Denz 01-18-2004 07:22 PM

Installed on RC 2, Works Great, Thanks

Peace

Delacroix 01-22-2004 05:09 PM

One more suggestion if it is even possible. I have one user (so far) that linked to a HUGE animated [img]. Is there a way to make this limit total file size as well?

Boofo 01-31-2004 08:48 AM

Looks good. I'll give it a shot. Thank you. ;)

monstergamer 02-01-2004 07:52 AM

works great, just what i wanted
/me clicks install


All times are GMT. The time now is 01:57 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.01118 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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