Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2015-03-03 07:43:30
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 277
how to limit and paginate comments list?
how to limit and paginate posted comments list?
Offline
Re: how to limit and paginate comments list?
This plugin should be of help.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2015-03-06 15:43:15
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 277
Re: how to limit and paginate comments list?
what about the limitation of correctors, don’t allow someone submit more correctors from the assigned limit.
Offline
Re: how to limit and paginate comments list?
Apologies raminrahimi what do you mean by “what about the limitation of correctors”?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#5 2015-03-06 16:22:30
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 277
Re: how to limit and paginate comments list?
sorry for not clear writing … my english is not good :(
i mean to do limit the comment box, don’t allow users to write more and large comment in the comment box.
example i want to limit100 characters, so for commenters not allowed to write more then 100 characters in the comment box.
thanks
Offline
Re: how to limit and paginate comments list?
raminrahimi wrote #288818:
sorry for not clear writing … my english is not good :(
i mean to do limit the comment box, don’t allow users to write more and large comment in the comment box.
example i want to limit100 characters, so for commenters not allowed to write more then 100 characters in the comment box.
thanks
I don’t think that there are any such plugins but I am wondering if you could hook the textarea with some jquery magic knowing of course that it will not work if javascript is disabled.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: how to limit and paginate comments list?
raminrahimi wrote #288818:
i mean to do limit the comment box, don’t allow users to write more and large comment in the comment box. example i want to limit100 characters, so for commenters not allowed to write more then 100 characters in the comment box.
Setting maxlength="100"
on comment input textarea should suffice for most users. You can do it with etc_query
, replacing <txp:comment_message_input />
in your comment form with
<txp:etc_query data='<txp:comment_message_input />'
replace="textarea@@maxlength=100" />
Offline
#8 2015-03-07 04:50:54
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 277
Re: how to limit and paginate comments list?
didn’t solve my problem, I tried with etc_query, still accepting large and heavy submitted comment :(
Offline
Re: how to limit and paginate comments list?
raminrahimi wrote #288824:
didn’t solve my problem, I tried with etc_query, still accepting large and heavy submitted comment :(
Which probably means your browser is outdated (IE9?), time to upgrade. :) Anyway, some checking should also be done server-side. Try this plugin, maybe it will fit your needs.
Offline
Re: how to limit and paginate comments list?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#11 2015-03-09 18:09:05
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 277
Re: how to limit and paginate comments list?
Thanks colak, that was fine :-)
i did from the source file (textpattern/publish/comment.php) there i changed on: <textarea maxlength="500"....
Offline