Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Characters counter Details »»
Characters counter
Version: 1.00, by tnguy3n tnguy3n is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: Unknown Rating:
Released: 06-05-2004 Last Update: Never Installs: 3
 
No support by the author.

JS textbox counter credits to Zach Evans

Template mods: 4
- editor_clientscript
- editor_toolbar_off
- editor_toolbar_standard
- showthread_quickreply

Installation Time: 5-10 mins (just find and replace mostly).

I have tested this in IE and Mozilla firefox , and use it on mah site too. See it in action here

-------------------
requested by Carter876 here

Show Your Support

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

Comments
  #2  
Old 06-09-2004, 06:51 PM
imported_chuanse imported_chuanse is offline
 
Join Date: Feb 2003
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, does it also works in wysiwyg?
I guess not, since those templates are not to be edited for this mod :/
Reply With Quote
  #3  
Old 06-12-2004, 02:16 PM
Carter876's Avatar
Carter876 Carter876 is offline
 
Join Date: Mar 2004
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack counts the VB tags and the smile code (for esxample [b*][/b*])?

Regards
Reply With Quote
  #4  
Old 06-13-2004, 05:56 AM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Carter876
This hack counts the VB tags and the smile code (for esxample [b*][/b*])?

Regards
Unfortunately, it counts every input chars.
Reply With Quote
  #5  
Old 06-13-2004, 10:37 AM
Carter876's Avatar
Carter876 Carter876 is offline
 
Join Date: Mar 2004
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uhm I think there is a bug , if I write my post and the characters count is under 5k all works fine, but when I paste a text from another post and the characters count is more than 5k the hack delete the characters in excess (and this is good ) but when I click on Preview button Vb say me that "The text that you have entered is too long (5030 characters). Please shorten it to 5000 characters long" but the characters counter say me that "Characters remaining are 2"


I think that this is a bug of characters counter that counts the characters in excess that the hack have been cancelled, tnguy3n what you think about it?

Regards
Reply With Quote
  #6  
Old 06-13-2004, 10:55 AM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Carter876
Uhm I think there is a bug , if I write my post and the characters count is under 5k all works fine, but when I paste a text from another post and the characters count is more than 5k the hack delete the characters in excess (and this is good ) but when I click on Preview button Vb say me that "The text that you have entered is too long (5030 characters). Please shorten it to 5000 characters long" but the characters counter say me that "Characters remaining are 2"


I think that this is a bug of characters counter that counts the characters in excess that the hack have been cancelled, tnguy3n what you think about it?

Regards
I guess there's a little inaccuracy of this char counter. I'll look into vb built-in counter script than this one when i have time.
Reply With Quote
  #7  
Old 06-13-2004, 12:01 PM
Carter876's Avatar
Carter876 Carter876 is offline
 
Join Date: Mar 2004
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok tnguy3n, if you need a tester I'm avaible

Tnx for your work

Regards
Reply With Quote
  #8  
Old 06-14-2004, 02:28 PM
imported_marsauae imported_marsauae is offline
 
Join Date: May 2003
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good work bro
Reply With Quote
  #9  
Old 06-15-2004, 03:35 PM
masterstanf2k masterstanf2k is offline
 
Join Date: Apr 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not working for me....

I'm using the wysiwyg editor...
Reply With Quote
  #10  
Old 06-15-2004, 09:43 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by walkingthepath
It's not working for me....

I'm using the wysiwyg editor...
To have it worked, make sure that you have these following contributes added in to <textarea ...> of your editor templates.

HTML Code:
onkeyup="textareaCounter('qr_message','MyCounter', $vboptions[postmaxchars])" onkeydown="textareaCounter('qr_message','MyCounter', $vboptions[postmaxchars])"
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 08:48 PM.


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.04617 seconds
  • Memory Usage 2,290KB
  • 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
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (10)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