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)

Chris M 06-14-2005 10:00 PM

Signature Image Size Limiter
 
[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]:D

[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 :rolleyes:

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

M1th 06-15-2005 03:39 PM

Oh w00t. Me likey!

C.Birch 06-15-2005 04:43 PM

Error: See image.

Dan 06-15-2005 04:45 PM

I like this one Chris, good job!
/me clickies install

xxskullxx 06-16-2005 01:10 AM

Nice one! I'll definately be using this.

ThePimp 06-16-2005 04:51 AM

Doesn't seem to work for me.
Uploaded Plugin -> Added Error Phrase -> Set Size Limits -> Visited the board and the sigs that are large are still visible, with no error.

Trickyphillips 06-16-2005 05:17 AM

Quote:

Originally Posted by ThePimp
Doesn't seem to work for me.
Uploaded Plugin -> Added Error Phrase -> Set Size Limits -> Visited the board and the sigs that are large are still visible, with no error.

I believe it will only display the error, when a user is setting their signature. You'll have to use an SQL query to reset everyone's signature, and tell them that they need to change it back themselves. While they're setting it, the restrictions will apply.

Jagged Tooth 06-16-2005 05:24 AM

Quote:

Fatal error: Using $this when not in object context in C:\apachefriends\xampp\htdocs\forum\profile.php(11 70) : eval()'d code on line 23
I get that when i try to insert an image (even one small enough)

Chris M 06-16-2005 07:59 AM

Quote:

Originally Posted by Trickyphillips
I believe it will only display the error, when a user is setting their signature. You'll have to use an SQL query to reset everyone's signature, and tell them that they need to change it back themselves. While they're setting it, the restrictions will apply.

Indeed - You will need to clear the signature field and ask everyone to re-write their signatures ;)

Satan

Chris M 06-16-2005 07:59 AM

Quote:

Originally Posted by C.Birch
Error: See image.

Do you have Dynamic Image Urls enabled?

Satan


All times are GMT. The time now is 09:15 PM.

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.01135 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
  • (3)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)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