Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Character Counter (Advanced Form Post Control) V1.0 Details »»
Character Counter (Advanced Form Post Control) V1.0
Version: 1.00, by why-not why-not is offline
Developer Last Online: Jun 2007 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 07-16-2004 Last Update: Never Installs: 7
 
No support by the author.

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

Show Your Support

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

Comments
  #2  
Old 07-17-2004, 12:59 AM
nexialys
Guest
 
Posts: n/a
Default

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

good hack Sonia
Reply With Quote
  #3  
Old 07-17-2004, 11:08 AM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

She’s a VB wild animal
Reply With Quote
  #4  
Old 07-17-2004, 11:11 AM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One question!

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

Thanks
Reply With Quote
  #5  
Old 07-17-2004, 01:05 PM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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' ?
Reply With Quote
  #6  
Old 07-17-2004, 01:33 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very interesting modification - thanks for sharing !
Reply With Quote
  #7  
Old 07-17-2004, 02:09 PM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 07-17-2004, 02:12 PM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 07-17-2004, 07:38 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 07-17-2004, 08:24 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed but its not working?

SONIA
Reply With Quote
Reply

Thread Tools

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 01:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04284 seconds
  • Memory Usage 2,285KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_quote
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)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