vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Character Counter (Advanced Form Post Control) V1.0 (https://vborg.vbsupport.ru/showthread.php?t=67266)

why-not 07-16-2004 10:00 PM

Character Counter (Advanced Form Post Control) V1.0
 
Hi All

This is....

Character Counter with advance form posting control


Why would you need this.....

Well, there could be many reasons why, but the main reason is to save bandwidth! Some months ago I looked at ways to stream-line bandwidth usage for some of my clients bulltein boards! I started first looking at the HTML code, and turning as much of the wastful code into CSS, which saved a very lot, but I also did a study of posting...

This included PM(s), Sig editing, new posts, and replies and editing of posts! During a (2) month span I added a simple function that counted every post that returned an error.... "Trying to make a post over the max limit allowed"


I ran this test on (2) client boards, (1) with 11,000 + members and the other 23,000 + members! What I found was that posting over the limit, was more common than what I was thinking it would be!

72,698 - new and or edited sigs, 3,948 over post errors
51,011 - new and or reply to PM(s), 1,452 over post errors
213,177 - new post or replies, 4,891 over post errors

So to make a long story short, this stops wasting server resources, by not letting a post be posted that is over the post limit!

It also does more than just count every character....

1. It does not count BBCODE!
2. It does not count img tags or any HTML tags in the HTML editor mode
3. It avoids quotes when that AdminCp option is selected
4. It counts smiles the way VB counts them in the total post
5. It works for all editors
6. Gives user options if they go over the post limit!
7. It removes VB template code that should not even be in the templates

The zip file contain the lang Phrase file and the full list of templates and files to edit!


As always, make backups of all files and templates before editing them!

If you don't understand something then please post and ask for help!


Screen shots are below or you can login to try it your self....

http://forum.ya-right.com/

USER: test
PASS: test

C, ya...

Sonia

nexialys 07-17-2004 12:59 AM

once she's started, nothing can stop her, isn't it ?!

good hack Sonia

The Realist 07-17-2004 11:08 AM

She’s a VB wild animal

The Realist 07-17-2004 11:11 AM

One question!

How do you use the XML file to add the character counter Phrases?

Thanks

deathemperor 07-17-2004 01:05 PM

nice hack, I've seen this in that test board when trying to post and realize something was couting my words ^^

so why-not are you 'she' ?

Dean C 07-17-2004 01:33 PM

Very interesting modification - thanks for sharing :)!

why-not 07-17-2004 02:09 PM

Quote:

Originally Posted by The Realist
One question!

How do you use the XML file to add the character counter Phrases?

Thanks

Hi


Go to Langauges & Phrases >> Download / Upload Languages

Import XML language files....

EITHER upload the XML file from your computer -> use the browse button to point to the lanuage phrase file on your local system!

Overwrite Language -> select the current language file you are using 'English (US)'

Title for Uploaded Language -> leave it blank

Ignore Language Version -> check Yes

click 'Import'

done....

Sonia

why-not 07-17-2004 02:12 PM

Quote:

Originally Posted by deathemperor
nice hack, I've seen this in that test board when trying to post and realize something was couting my words ^^

so why-not are you 'she' ?

Hi deathemperor

Yes, but don't let that bother you, ;) !

Sonia

The Realist 07-17-2004 07:38 PM

Thanks Sonia :)

Quote:

Originally Posted by why-not
Hi


Go to Langauges & Phrases >> Download / Upload Languages

Import XML language files....

EITHER upload the XML file from your computer -> use the browse button to point to the lanuage phrase file on your local system!

Overwrite Language -> select the current language file you are using 'English (US)'

Title for Uploaded Language -> leave it blank

Ignore Language Version -> check Yes

click 'Import'

done....

Sonia


The Realist 07-17-2004 08:24 PM

Installed but its not working?

SONIA :)


All times are GMT. The time now is 10:09 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.01127 seconds
  • Memory Usage 1,739KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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