vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Signature Image Size Limiter (https://vborg.vbsupport.ru/showthread.php?t=83146)

Kihon Kata 03-06-2006 08:38 PM

Does this work on 3.5.4?

Kihon Kata 03-13-2006 01:26 PM

hello? Bueller?

Lynch 03-14-2006 01:35 AM

forgive me for asking probably a really stupid question, but once this is installed, how/where do you set the limits?

Or do you do it within the actual xml file and THEN you upload it?

EDIT: I figured it out. Thank you TONS for this. We have issues on one of our boards with people being complete dumbasses with their sig sizes. This is righteous!

Nathan2006 03-22-2006 01:10 AM

Thanks Chris :)

Install

phantium 03-30-2006 10:27 AM

Can't do without it, installed. Thanks a lot!

Kalakov 05-12-2006 01:03 AM

This option should be standard in vBulletin.

Goodjob on the hack ! =)

Lyte 07-18-2006 01:23 AM

Quote:

Originally Posted by Chris M
This plugin searches for every instance of an [high][img][/high] tag and then extracts the url in between the tags... It then checks the size of the image the user is trying to use, and if the size is bigger than allowed, displays an error message... Satan

Oh... so this mod doesn't restrict the size of images just in the signature area? It will restrict all images throught the site??

I just want be clear before I install it! :)

Thanks!

Lyte

Fointy 07-18-2006 09:52 PM

Ditto ^

PLus will it work it work in 3.54? And will this work if we have dynamic img urls enabled?

If so this is exactly what I'm looking for and I love you.

P.S. The option of adding up the heights allowing people to have several small sig imgs would be a great addition.

Mudvayne 08-02-2006 03:28 PM

Quote:

Originally Posted by Kalakov
This option should be standard in vBulletin.

I second it.. Anyway.. Chris M would you please make it work for vB 3.6 ? I need that hack..

forzablues 08-10-2006 07:00 PM

Well it isnt working :S i cant seem to edit the parameters of it. It hasnt appeared in vbulletin options either and noone seems to be replying the the questions on here anymore. Why bother

klausmx 08-19-2006 01:31 PM

=(

i need it for 3.6

ConqSoft 08-19-2006 02:18 PM

3.6 has extensive signature limits already built in.

klausmx 08-19-2006 04:41 PM

yes, but i dont want to use the upload feature (bandwidth), i want user use the [img] code

nVaux 08-25-2006 05:09 PM

for vb 3.6

Replace everything in the plugin PHP code with:

PHP Code:

$maxsigwidth 200;
$maxsigheight 200;

function 
check_sig_size($sig)
{
    global 
$maxsigwidth$maxsigheight$errors$vbulletin;
    
$sig str_replace(array('  ''\\"'), array('''"'), $sig);

    
// check valid signature image size
    
if ($imginfo getimagesize($sig))
    {
        if (
$imginfo[0] > $maxsigwidth or $imginfo[1] > $maxsigheight)
        {
            
$vbulletin->GPC['preview'] = 'true';
            
$errors[] = fetch_error('signaturetoobig'$maxsigwidth$maxsigheight);
        }
    }
}

$url preg_replace('#\[img\]\s*(https?://([^<>*"' iif(!$vbulletin->options['allowdynimg'], '?&') . ']+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'"check_sig_size('\\1')"$signature); 


KJA4U 08-26-2006 05:50 PM

Does it work with 3.5.5?

Mudvayne 08-27-2006 01:04 AM

W00t nVaux.. Thanx a lot.. Working fine for me!

vbreal 09-13-2006 08:08 PM

will this work for 3.6

madmaca 09-26-2006 11:46 AM

Quote:

Originally Posted by vbreal
will this work for 3.6

Doesn't seem to :(

Anyone have any ideas how I can limit the size of external [img] linked images in signatures?

This hack used to do it perfectly - but can't find one that works with 3.6.x :(

bigmonay2k 10-06-2006 10:04 PM

will this work on 3.6.1??

libabom 10-09-2006 11:42 AM

3.6.1 ????

lifesourcerec 10-12-2006 03:17 AM

How do you set the limits?

lifesourcerec 10-12-2006 03:37 AM

Ok, got it. But now how you clear out signatures so everyone starts over?

LisaD1 10-14-2006 04:47 AM

Quote:

Originally Posted by lifesourcerec
Ok, got it. But now how you clear out signatures so everyone starts over?

Clear your signature cashe in acp > maintenance > repair / optimize tables.

ximcix 10-26-2006 06:35 PM

Any 3.6.x updates?

tmod 10-28-2006 05:32 PM

Any news on a version for 3.6.2?

Tmod

serhat_kk 03-04-2007 05:36 PM

Same hack for 3.6
https://vborg.vbsupport.ru/showthread.php?t=137167

xTerMn8R 01-11-2008 09:40 PM

Dont know if anyone even supports this any more but here's the error that we get on our board after installing the plugin. We do have Dynamic URL image thing set to "yes" in the messaging options


Warning: getimagesize(http://www.isrl-simracing.org/Tom Martin sig1.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 406 Not Acceptable in /profile.php(1222) : eval()'d code on line 12

We will be upgrading the board to vb 3.6.8 shortly but having some issues with another hack(announcements) thats not behaving well in that, so we're trying to hang on with 3.5.4 till we get the other hack working correctly. In the mean time this could be helpful for us as there's been a bit of... Well, Shall we say poor judgement on signature size pics from a small # of users, and it just a real pain in the butt to have to waste time babysitting Users for Signature pictures when there's so much more to do...LOL

thanks for any help that might still be available...

Tom ;)


All times are GMT. The time now is 04:19 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.01376 seconds
  • Memory Usage 1,779KB
  • 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_php_printable
  • (4)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
  • (27)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