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)
-   -   Extended Signature Limits (https://vborg.vbsupport.ru/showthread.php?t=95523)

007 11-29-2005 06:12 AM

(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.

Andreas 11-29-2005 07:07 AM

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.

007 11-29-2005 05:59 PM

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?

Andreas 11-29-2005 07:34 PM

No. How should the script know if blah.bla is a domain?

007 11-29-2005 07:48 PM

That's a good point. Anyway, at least the outside link setting works perfectly now. Thanks for the help. This hack is extremely useful. :)

Andreas 12-10-2005 03:23 PM

Example Signautre that does fail? Which limits are set?

Andreas 12-10-2005 03:55 PM

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.

Andreas 12-10-2005 04:48 PM

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

AWI 12-11-2005 08:00 AM

Been looking for something like this, just installed on 3.5.2 and no probs!

gonkowonko 12-14-2005 05:51 PM

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


All times are GMT. The time now is 08:29 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.01442 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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