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
Extended Signature Limits Details »»
Extended Signature Limits
Version: 1.0.3, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 09-01-2005 Last Update: 11-09-2005 Installs: 441
DB Changes Uses Plugins
Additional Files Is in Beta Stage  
No support by the author.

Extended Signature Limits

Description
This Hack allows you to control
  • Maximum Number of Lines
  • Maximum Font Size
  • Links to external Websites
  • BBCodes
  • Images (max. Number/Width/Height/Filesize)
used in Signatures.

Details
1 Product XML with 2 Plugins, 1 Setting and 17 Phrases

History
1.0.0
Initial Version

1.0.1
Replaced most Settings with Usergroup Permissions
Added Checks for Images (max. Number/Width/Height/Filesize)

1.0.2
Added information Text about applied Restrictions to "Posting Rules"

1.0.3
Fixed a problem with single/double quotes in [size] Tags that allowed bypassing the fontsize limit.

Important: vBulletin 3.5.1
If you are using vBulletin 3.5.1 and downloaded the ZIP of this Hack before 02.11.2005 21:00 CET, please use the attached bitfield XML file.

Show Your Support

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

Comments
  #302  
Old 11-29-2005, 06:12 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

(domain).com

And the domain was not google either. :-)

[url]http://google.com[*/url] doesn't work either, which is good, but if they just enter google.com, it works and converts it to a link.
Reply With Quote
  #303  
Old 11-29-2005, 07:07 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Replace

PHP Code:
// Check if we have an external URL
if (!($permissions['custompermissions'] & $vbulletin->bf_ugp_custompermissions['canuseexturlsinsig']))
{
    
$myparser->parse(convert_url_to_bbcode(strip_bbcode($signature)), 0); 
with
PHP Code:
// Check if we have an external URL
if (!($permissions['custompermissions'] & $vbulletin->bf_ugp_custompermissions['canuseexturlsinsig']))
{
    
$myparser->parse(convert_url_to_bbcode($signature), 0); 
and check if this works.
Reply With Quote
  #304  
Old 11-29-2005, 05:59 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, that works. Thanks!

Any way to make it work for text urls too? You know, if they just type domain.com without URL tags. So people can't even mention outside domains in their sig?
Reply With Quote
  #305  
Old 11-29-2005, 07:34 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No. How should the script know if blah.bla is a domain?
Reply With Quote
  #306  
Old 11-29-2005, 07:48 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's a good point. Anyway, at least the outside link setting works perfectly now. Thanks for the help. This hack is extremely useful.
Reply With Quote
  #307  
Old 12-10-2005, 03:23 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Example Signautre that does fail? Which limits are set?
Reply With Quote
  #308  
Old 12-10-2005, 03:55 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The image is 125 (w) x 93 (h), it is used two times.

Worst case: Each image is displayed in one row, eg. total dimensions are 125 (w) x 186 (h), which is over your defined limit of 500 x 100.
Reply With Quote
  #309  
Old 12-10-2005, 04:48 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, as you don't have any control about how images are actually being positioned/displayed both worst case scenarios are being considered - which is all images in one line, or all images in one row.

If you have a better idea, let me know

I thought about calculating the max. space taken, but that won't work too well, if you define 100x500 (=5000 pixel) one could use a 1x5000 iamge then ...
Reply With Quote
  #310  
Old 12-11-2005, 08:00 AM
AWI's Avatar
AWI AWI is offline
 
Join Date: Dec 2005
Location: Midwest
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Been looking for something like this, just installed on 3.5.2 and no probs!
Reply With Quote
  #311  
Old 12-14-2005, 05:51 PM
gonkowonko gonkowonko is offline
 
Join Date: Jun 2005
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have just installed this mod and want to limit the members to only 4 lines within their signature, this works but the error message which should tell them that the max lines should be 4 or less i get this

1.Your signature can not be longer than $vboptions[maxsiglines] lines

anyone know how i can change this?? the error message for the font size reads correct just not for the max lines...
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 06:39 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.07708 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (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
  • (2)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