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)

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 ????


All times are GMT. The time now is 02:34 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.01258 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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