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)
-   -   Exclude Usergroups from Char Limit (https://vborg.vbsupport.ru/showthread.php?t=99566)

akanevsky 10-28-2005 10:00 PM

Exclude Usergroups from Char Limit
 
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*=============================================*\
|| Exclude Usergroups from Char Limit
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jun 07, 2009
||
|| Time required to install: ~30 seconds
|| Difficulty: easy
\*=============================================*/

DESCRIPTION

Removes character limits from all messages made by selected usergroups.

STATISTICS

File Uploads: 1
Products to Install: 1


FEATURES

Removes character limits from the following areas:
  • Forum postings.
  • Private messages.
  • Visitor messages (vBulletin 3.7.x and above).
  • Social group messages (vBulletin 3.7.x and above).
  • Social group descriptions (vBulletin 3.7.x and above).

VERSION HISTORY

1.3.0
[+] The hack is now compatible with vBulletin 3.5.x - 3.8.x.
[+] Added support for new message types in vBulletin 3.8.x.
[+] Significantly improved internal logic.

1.2.0
[+] Added support for private message character limitations.

1.1.0
[F] Corrected a Typo

1.0.0
Initial Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

Sinistra 10-29-2005 09:04 AM

Very nice hack. *installed* it will give the staff the power to sloxe a topic in 2 words then about 16 XD thanks

Snake 10-29-2005 11:54 AM

Installed and thanks.

lonely 11-08-2005 05:45 AM

i'm still being forced to enter at least 1 character in new posts after installing

akanevsky 11-08-2005 11:19 AM

Of course you need at least one character. You don't just send empty posts. That is why I made it check for one character. Duh :P

lonely 11-09-2005 11:04 AM

Quote:

Originally Posted by Dark Visor
Of course you need at least one character. You don't just send empty posts. That is why I made it check for one character. Duh :P

yeah but i want people to be able to upload empty posts :D
the reason for this is so that people can make posts that consist only of the attachment they've uploaded and nothing else.
is there something i can change in your xml that would allow for an empty post?
the hack works great for me otherwise :p

Wired1 01-06-2006 05:53 PM

Quote:

Originally Posted by lonely
yeah but i want people to be able to upload empty posts :D
the reason for this is so that people can make posts that consist only of the attachment they've uploaded and nothing else.
is there something i can change in your xml that would allow for an empty post?
the hack works great for me otherwise :p

Yep:
Code:

In the product, find the plugin global_start.
Replace 1 with 0 in the following line:

$vbulletin->options['postminchars'] = 1;


I'm gonna install this hack when I get home, could really use it!

akanevsky 01-06-2006 05:56 PM

Quote:

In the product, find the plugin global_start.
Replace 1 with 0 in the following line:

$vbulletin->options['postminchars'] = 1;
I am not sure that'll work. vBulletin developers are not idiots to allow insertion of empty posts. Duh...

Boofo 06-16-2006 08:58 AM

Anthony, can this be made to work for PMs, too?

akanevsky 06-16-2006 02:59 PM

I don't believe character limit applies to private messages... Does it?

Boofo 06-16-2006 06:59 PM

Quote:

Originally Posted by Psionic Vision
I don't believe character limit applies to private messages... Does it?

Yes, sir, there is the pmmaxchars under Private Messaging Options. I don't know about the minimum characters though.

akanevsky 06-16-2006 07:12 PM

Oh. In that case, yeah - it can be done for private messages too.

Boofo 06-16-2006 07:24 PM

Great! Looking forward to it, sir. ;)

Boofo 06-17-2006 11:21 PM

Any word on this yet?

akanevsky 06-17-2006 11:29 PM

Please do not expect an update within the next couple of days, because I currently have other priorities - such as, for instance, final exams. Once there is a word, you'll now 'cause I'll post an update :)

Boofo 06-17-2006 11:42 PM

No problem. That's all I needed to hear. I'll make my own. Thanks anyway. ;)

akanevsky 06-22-2006 12:27 PM

Hack updated.

Boofo 06-22-2006 06:12 PM

Shouldn't this:

PHP Code:

    $vbulletin->options['postmaxchars'] = 1000000;
    
$vbulletin->options['pmmaxchars'] = 1000000

actually be this?

PHP Code:

    $vbulletin->options['postmaxchars'] = 0;
    
$vbulletin->options['pmmaxchars'] = 0

beings as 0 disables it?

And yes, we had already added that, but good job. ;)

akanevsky 06-22-2006 06:19 PM

Maybe, but I don't believe one would ever make a post of 1,000,000+ characters :)

Boofo 06-22-2006 06:29 PM

Whatever. Just thought I would post the correct way to do it. ;)

akanevsky 06-08-2009 12:34 AM

Updated to include all feature requests and support for 3.8.x.


All times are GMT. The time now is 05:02 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.03432 seconds
  • Memory Usage 1,758KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete