Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-03-03 07:43:30

raminrahimi
Member
From: India
Registered: 2013-03-19
Posts: 276

how to limit and paginate comments list?

how to limit and paginate posted comments list?

Offline

#2 2015-03-03 11:56:52

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

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: 276

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

#4 2015-03-06 16:02:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

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: 276

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

#6 2015-03-06 17:42:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

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

#7 2015-03-06 21:56:40

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

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: 276

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

#9 2015-03-07 09:50:52

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

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

#10 2015-03-07 11:10:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: how to limit and paginate comments list?

etc wrote #288831:

Try this plugin, maybe it will fit your needs.

I forgot about that one!


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: 276

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

Board footer

Powered by FluxBB