×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Limited Character Counter in !JoomlaComment

Limited Character Counter in !JoomlaComment 14 years 9 months ago #9206

  • the magus
  • the magus's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hello everybody

and thanx 4 ur effort in providing JoomlaCOmment

I wonder if there is a way to add a limited counter. i.e. when the visitor wants to comment he would see a counter that counts down the allowed number of characters to type


Thanx in advance..

Limited Character Counter in !JoomlaComment 14 years 9 months ago #9240

  • the magus
  • the magus's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
3 days and half & no Answer?

I am still waiting...

Limited Character Counter in !JoomlaComment 14 years 9 months ago #9241

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey sorry for this!
I think, that JonusC wrote such a template in the past and I hope that he will share his code with you next time he visit the forum.

cheers,
Daniel

Limited Character Counter in !JoomlaComment 14 years 9 months ago #9242

  • the magus
  • the magus's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hello Daniel Dimitrov

Thanx for your reply and sorry for my insistence

I hope the person u mentioned comes and post the code...

Because i think this the only thing that belittles JoomlaComment

Limited Character Counter in !JoomlaComment 14 years 9 months ago #9267

  • the magus
  • the magus's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Ahhh

Still waiting 4 MR. JonusC...............

Limited Character Counter in !JoomlaComment 14 years 9 months ago #9270

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
He often has problems with his Internet connection in Australia.
Patience is your best friend ;)

Limited Character Counter in !JoomlaComment 14 years 9 months ago #9274

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Hey magus, sorry about the delay.

(1) Download this JS file and save it to your modern/ template directory. Open it and edit the two var entries on first two lines to (a) match the backend comment limit number and (b) to match your language.
functions.js

(2) Open the modern index.html file and search for this codeblock:
            <div>
                <label for='tcomment'>{_MESSAGE}:</label>
                <textarea name='tcomment' id='tcomment' cols='{formareacols}' tabindex="5" rows='10'></textarea>
            </div>
...and replace it with this codeblock:
            <div>
                <script type="text/javascript" src="{template_live_site}/functions.js"><!----></script>
                <span style='float:left;'>
                    <label for='tcomment'>{_MESSAGE}:</label>
                    <br/>
                    (<span id="jcpt_ticker"><!----></span>)
                </span>
                <script type="text/javascript">document.getElementById('jcpt_ticker').innerHTML=_JCPT_MSG_MAX_NUM+' '+_JCPT_MSG_MAX_TXT;</script>
                <textarea name='tcomment' id='tcomment' cols='{formareacols}' tabindex="5" rows='10' onkeydown="jcpt_count(this.form.tcomment,this.form.jcpt_ticker);" onkeyup="jcpt_count(this.form.tcomment,this.form.jcpt_ticker);"></textarea>
            </div>

Tested on 4.0 RC1 as OK :)

Limited Character Counter in !JoomlaComment 14 years 9 months ago #9275

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Or if it's easier just take the whole modern template with these modifications I just made to test this. Extract it to "modern" and over-write or you can also extract it to a new folder under templates e.g. "modern-tick".

modern_tick.zip

Limited Character Counter in !JoomlaComment 14 years 9 months ago #9276

  • the magus
  • the magus's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
What can i say !!!?

So kind, so genius........

I cant find words to thank you Mr. JonusC

Really high appreciated

The magus

Limited Character Counter in !JoomlaComment 14 years 9 months ago #9277

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
The nicest way to thank us is with a donation :D have fun good sir!

Limited Character Counter in !JoomlaComment 14 years 9 months ago #9278

  • the magus
  • the magus's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Absolutely MR. Jonus
  • Page:
  • 1
Time to create page: 0.169 seconds