Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
HS - External Signature Image Size Limiter Details »»
HS - External Signature Image Size Limiter
Version: 1.2, by StrifeX StrifeX is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.7 Rating:
Released: 01-20-2007 Last Update: 07-08-2007 Installs: 266
Uses Plugins
 
No support by the author.

This add-on had been produced and distributed by Hybrid-Soft.


Don't forget to click INSTALL!

Name:
External Signature Image Size Limiter

Description:
Unlike vBulletin does, this hack limits the size of external images in signatures depending on the dimensions you choose.

Features:
- On/Off Switch
- Set max image width.
- Set max image height.

Installation Instructions:
1. Unzip the folder.
2. Upload 'product-hs_sigimgsize.xml' to the Product Manager in the vBulletin AdminCP.
3. Manage Settings via AdminCP => vBulletin Options => vBulletin Options => HS - External Signature Image Size Limiter

Credits:
Chris M for the base code.

Information:
Plugins: 1
Phrases: 2

Installation Difficulty: Very Easy
Installation Duration: 10- seconds.

Quote:
Important: In order to update you must uninstall the old product and upload the new one.

Before installing, check your php.ini file for this setting:
allow_url_fopen = on

If it's off, turn it on. Otherwise this won't work.

To make this hack delete all signatures so users must put there signatures in again: In the Admin CP, go to > Update Counters > Empty Signature Cache.

This mod can be improved, so with all of your help, by suggesting new ideas and reporting bugs, I can modify and play around with this product to improve it.

Enjoy, and don't forget to click install if you use!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 07-17-2007, 07:07 PM
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Location: FL
Posts: 401
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mupetz, no problem ... I kinda figured others would encounter it, so that's why I posted it ...

StrifeX, any news or thoughts on when the External FileSize Limiter for Sigs will be released?
Reply With Quote
  #73  
Old 08-02-2007, 06:22 AM
Majest Majest is offline
 
Join Date: Apr 2006
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice. Installed.
Reply With Quote
  #74  
Old 08-02-2007, 08:28 PM
StrifeX StrifeX is offline
 
Join Date: Dec 2006
Location: New York
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dannyloski View Post
Mupetz, no problem ... I kinda figured others would encounter it, so that's why I posted it ...

StrifeX, any news or thoughts on when the External FileSize Limiter for Sigs will be released?
Sorry, but no I don't really plan on releasing that soon. I'm a bit busy atm, I should be able to get to another update in a month or two.
Reply With Quote
  #75  
Old 08-27-2007, 06:30 AM
Abe Babe's Avatar
Abe Babe Abe Babe is offline
 
Join Date: Sep 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure why, but I was getting an error similar to the one that is fixed by changing the php.ini settings, even though I had that setting to on.

Then I realized that I had an old version, as I'd downloaded this a while back and kind of forgot about it. So I installed the latest version and it's working great now!

Combined with sinaluna's CSS Sig size limiter, this will hopefully solve 99.9% of sig issues now. As your hack will restrict the size of individual images, and the CSS one limits the total area that a signature takes up [imgs + text].

Abe Babe...
Reply With Quote
  #76  
Old 09-13-2007, 09:15 AM
Riccardo83's Avatar
Riccardo83 Riccardo83 is offline
 
Join Date: May 2007
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this mod work with 3.6.8 ?
Reply With Quote
  #77  
Old 09-15-2007, 08:00 PM
peterpigman peterpigman is offline
 
Join Date: May 2006
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there no way to do this without the php.ini file? i had to remove it to get vbseo to work and when i put it back it kills the site.
Reply With Quote
  #78  
Old 09-22-2007, 02:11 PM
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Location: FL
Posts: 401
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly on vB 3.6.8 ... Any news on the FileSize Limiter StrifeX?
Reply With Quote
  #79  
Old 09-25-2007, 05:50 AM
scarex80 scarex80 is offline
 
Join Date: Jul 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
$maxsigweight=40000;
;
function check_sig_size($sig)
{
    global $maxsigwidth, $maxsigheight, $maxsigweight, $errors, $vbulletin;
    $sig = str_replace(array('  ', '\\"'), array('', '"'), $sig);
    $ary_header = get_headers($sig, 1);                  
    $imgdimension = $ary_header['Content-Length']; 
    
    if ($imginfo = getimagesize($sig))
    {
        if ($imginfo[0] > $maxsigwidth or $imginfo[1] > $maxsigheight or $imgdimension>$maxsigweight)
        {
            $vbulletin->GPC['preview'] = 'true';
            $errors[] = fetch_error('signaturetoobig', $maxsigwidth, $maxsigheight,$maxsigweight);
        }
    }
}
With the addings in red, I'm now able to check even the size in bytes of the images It works on 3.6.8
Reply With Quote
  #80  
Old 09-25-2007, 08:09 PM
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Location: FL
Posts: 401
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ I tried that, but I get this error when I hit "Save Signature" or "Preview Signature" on the Signature Page ... I added it to the Plugin ...

Quote:
Fatal error: Call to undefined function: get_headers() in /home/talkjdm/public_html/profile.php(1210) : eval()'d code on line 20
Reply With Quote
  #81  
Old 10-06-2007, 01:45 PM
9a-nofear 9a-nofear is offline
 
Join Date: Oct 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i wonder where is php.ini ??
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:30 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.04554 seconds
  • Memory Usage 2,304KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete