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

Reply
 
Thread Tools
Signature Image Size Limiter Details »»
Signature Image Size Limiter
Version: 1.0.2, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 06-14-2005 Last Update: 10-21-2005 Installs: 316
Uses Plugins
 
No support by the author.

[high]Installation Instructions[/high]

Step 1: Upload the .xml file to the Product Manager
Step 2: Alter the plugin code variables to reflect your signature image limits in height and width
Step 2: Click [high]INSTALL[/high]

[high]Credits[/high]
Zero Tolerance - For helping with the regex and troubleshooting my annoying problems

[high]Updates[/high]
1.0.1 - Nothing major, just removed some code that is not needed

To remove this without re-uploading the plugin, find in your plugin code:
PHP Code:
print_r($imginfo); 
and remove it - I put this in there for testing purposes and forgot to remove it

1.0.2 - This is just a bug fix update

Find in the plugin code:
PHP Code:
$this->registry->options['allowdynimg'
replace with:
PHP Code:
$vbulletin->options['allowdynimg'
As always, no need to upload the new plugin if you apply the fix directly to your plugin code

Chris

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 06-16-2005, 08:01 AM
Robert Basil's Avatar
Robert Basil Robert Basil is offline
 
Join Date: Oct 2001
Location: Chandler, Arizona
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this plugin limit the images in sigs using the [img] code or something else?
Reply With Quote
  #13  
Old 06-16-2005, 08:04 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sportbikeworld
Does this plugin limit the images in sigs using the [img] code or something else?
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
Reply With Quote
  #14  
Old 06-16-2005, 08:16 AM
Trickyphillips Trickyphillips is offline
 
Join Date: Apr 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hellsatan
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
Suggestion: Check for multiple images, and calculate the total height and width of the images combined. This would prevent users from using two images next to eachother as a single signature.
Reply With Quote
  #15  
Old 06-16-2005, 08:26 AM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Notice:

Please note that the image checker code is fully functional, and the code is correct, however bugs within the vBulletin Plugin/Hooks System is causing these errors, as it is removing slashes without adding them first, causing stuff like \ to disappear within our code.

However this bug is not consistant on all forums, so please be aware if you are getting errors, then it is the vB system itself, and not our code.

Thank you for reading,

- Zero Tolerance
Reply With Quote
  #16  
Old 06-16-2005, 08:32 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]Update[/high]
1.0.2 bug fix released

Replace (in the plugin code):
PHP Code:
$this->registry->options['allowdynimg'
with:
PHP Code:
$vbulletin->options['allowdynimg'
Or you can upload the new plugin attached to the first post

Satan
Reply With Quote
  #17  
Old 06-16-2005, 09:14 AM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hellsatan
Do you have Dynamic Image Urls enabled?

Satan

Yes i do.
Reply With Quote
  #18  
Old 06-16-2005, 09:19 AM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by C.Birch
Yes i do.
Please read: https://vborg.vbsupport.ru/showpost....6&postcount=14



- Zero Tolerance
Reply With Quote
  #19  
Old 06-16-2005, 09:23 AM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, but i was just replying to something i had been asked. but if it was a vb bug would it not also do the same type of stuff with other plug in hacks im testing? or is it a random thing?

its ok, im just installing hacks on a test board to help people find and fix bugs.
Reply With Quote
  #20  
Old 06-16-2005, 11:22 AM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Depends what the plugins use, i found if you use the slash then it removes them, therefor in my plugins i do my best to avoid this, for now while the bug is present, hopefully it ill be fixed in beta 2

- Zero Tolerance
Reply With Quote
  #21  
Old 06-16-2005, 11:29 AM
MogKnight MogKnight is offline
 
Join Date: Aug 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this just restrict size (as in KB) or also dimensions?
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 09:05 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07642 seconds
  • Memory Usage 2,316KB
  • Queries Executed 26 (?)
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
  • (5)bbcode_php
  • (4)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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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_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