vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Characters Limitation Indicator (https://vborg.vbsupport.ru/showthread.php?t=33909)

bokhalifa 01-08-2002 10:22 AM

1 Attachment(s)
Welcome back again :)

Today we have something new

A hack to count how many characters remaining for you in the thread

As we will know that the threads and posts are limited to 10000 characters and if you over typed you will get an error message.

So now with this hack you can free type and know how many characters are remaning for you in this thread.
:D

bokhalifa 01-08-2002 10:24 AM

1 Attachment(s)
:) DEMO

bokhalifa 01-08-2002 10:25 AM

1 Attachment(s)
;)

sleepbirdcyp 01-08-2002 10:45 AM

Welldone!

Thank You!

bokhalifa 01-08-2002 10:55 AM

:D You are welcome, :)

MarkB 01-08-2002 11:36 AM

Nice! :)

bokhalifa 01-08-2002 11:47 AM

Thanks ;)

illogicalx 01-08-2002 12:17 PM

ohhh :D
nice hack bokhalifa

thankx

Lesane 01-08-2002 04:07 PM

Thanks for the great hack.

bokhalifa 01-08-2002 04:17 PM

welcome :D

Jawelin 01-08-2002 04:50 PM

Very cool!!

What about putting something similar on PM page to show the 1000 char limit ?

;)
Thanks a lot

bokhalifa 01-08-2002 05:10 PM

You are welcome my friend, and more thanks to you because you allways let me feel that I am in the right way :D

bokhalifa 01-08-2002 05:13 PM

You are welcome, yes you can use it in the PM and the instllation steps are in the attached file above. :) ;)

StarBuG 01-08-2002 05:24 PM

Great hack! THX

But:

If I edit a post the character counter is still 10000 even if there are more then 100 chars written!

Solution?

Greetings

StarBuG

bokhalifa 01-08-2002 06:54 PM

:rolleyes: Oh I see , I will try to make an update to this hack and I will try to include a new feature in it.
Thanks for your note. ;)

StarBuG 01-11-2002 09:48 AM

THX!

I will keep an eye on this Thread! :D

Greetings

StarBuG

Arathorn 01-14-2002 03:36 AM

Is anyone else having this problem?

The character count for PMs is wrong. I allow 10K chars for posts, but only 1K for PMs. After editing the PM templates, the number of allowed characters are 10K, not 1K.

Arathorn 01-18-2002 12:53 PM

Follow the instructions, but instead of:

Quote:

maxLength="$postmaxchars"
use
Quote:

maxLength="$pmmaxchars"
AND instead of:
Quote:

<font class="textfont">Maximum Number of characters
for this text box is $postmaxchars.<br>
You have <B><SPAN id=myCounter>$postmaxchars</SPAN></B>
characters remaining for your description...
use
Quote:

<font class="textfont">Maximum Number of characters
for this text box is $postmaxchars.<br>
You have <B><SPAN id=myCounter>$pmmaxchars</SPAN></B>
characters remaining for your description...
That's it.


All times are GMT. The time now is 09:55 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.01972 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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