Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Forumlar / Cotonti / Core Labs / In Progress / NEW Comments System

#1 2008-08-21 01:26
Let's make this topic the place to gather oppinions on what the new/future/better commenting system should look like....

First of all some improvements to the existing code, if code is kept:

- make it templateable (only username is given to the xTemplate, should have at least the amount of tags that exist in the forum.posts code. My vote is that a forum post and a page post should not be/look different.

- make it count somewhere (again if you have pagecount plugins for whatever reasons (people downloading stuff, access to new categories, whatever) you could give your users actual reason to comment, but maybe to just have a bigger number in the "comments count")

- gravatar support (or even integration with cotonti avatars??) - more gravatar ideas in the next section

- AJAX EDIT COMMENTS: (would make things so much easier)

- (omg i would merry people for this functionality, perhaps even cron-ed to a 3 month period on when it would mail the user if he didnt register yet that THANK YOU AGAIN AND COME VISIT THE SITE AGAIN...)

- Post Comments Via AJAX -> (mootools, sorry Vlad)

- even better avatar support for guests -> (combining mybloglog and gravatar)

- even better seditio/cotonti integration -> if registered user's email contains a gravatar and he didnt upload one, get it and apply it to his account. This could even be done on registration.add.done!

- threaded comments (while i'm aware that it's a 50/50 thing it's a clear way to see what replies go where, but in any case, this is the CODE ->

- subscribing to comments ( what a great idea)

- Publish The Commenter's Latest Headline (a way to say thank you for commenting ->

- list recent comments (

I'm sure there a lots more! Your thoughts?
<a href="">Surreal Art</a>
#2 2008-08-21 04:21
I shall buy someone a cookie to implement it all :yes

The only problematic thing is putting user's comment count into database. Basically it would require adding one more field to sed_users, which is somewhat rude for an "optional plugin". But seems like 90% of sites would like to have this plugin enabled.
May the Source be with you!
#3 2008-08-21 21:02
Right. Also would could just stick everything into the postcount, only serialized. So no real action needed, just unserialize when needed.
<a href="">Surreal Art</a>
#4 2008-08-22 06:10
Postcount is INT, isn't it? Anyways, comcount could be done this way if no special field available:
SELECT COUNT(*) FROM sed_comments WHERE com_author = {$usr['id']}
May the Source be with you!

Bu konu Trustmaster tarafından düzenlendi(2008-09-03 16:29, 14 yıllar önce)
#5 2009-03-27 05:33
Instead of showing the count-comments-link like this "Icon(x)", it would be nice with this format: "1 comment" and "2 comments" etc. Maybe in config you could choose between these?
#6 2009-03-27 06:51
Don't forget future comment system will be a module, so some of the above which likely will never be put in, can be done by someone, then the different comment module can be dropped in.
#7 2009-03-28 06:22
When you say module, you mean a normal Cotonti plugin right?
I think it's a good idea to move it from core to plugin!
#8 2009-03-28 07:38
but the comments plugin int he future should still be hookable. or some plugins may fail and not all want to "replace" a whole plugin.

as the plugin will be used by so many is it really needed to become a plugin? just imrpove the abilities of the comments. I agree it should be exactly like forum post. Its going to be that bit slowly as a plugin. how many core hooks for comments are there? really? just improve it to be like the forum post which isnt a plugin and its sorted.

I have a plugin that uses comments, I have writtena subscribe section into the plugin too, which pms the owner when they geta comment and then you can "subscribe" to that item, with an option for when either the auther or anyone repliesm, get a pm, or email. All this will be broken if i lose the hooks it uses. Last time i rewrote the whole comment section for myself to be identical to the forum post section with a few tid bits.

What do we really gain from not just improving it?
what do we lose ?
#9 2009-03-28 19:27
# Elgan : which pms the owner when they geta comment and then you can "subscribe" to that item, with an option for when either the auther or anyone repliesm, get a pm, or email.

Sorry for offtopic, but can this be used with regular pages - so it notifies the OWNER of a page.
#10 2009-03-28 20:03
I'm sure there a lots more! Your thoughts?
Built-in "Comments for Guests" CAPTCHA-protected feature - создание сайтов, разработка плагинов и тем для Котонти
#11 2009-03-28 21:27
# musiconly : Sorry for offtopic, but can this be used with regular pages - so it notifies the OWNER of a page.

probably yeah, i just filter out for use with my config and to make sure the part is my plugin.
#12 2009-03-30 16:32
Lombi, agree with your suggestions :)
Born in the Wild Wild East!
#13 2009-05-08 08:45
captcha for guest comment and quote comments? and comment voting??
[b]I give you stuffs... and my stuffs i give you![/b] :D
#14 2009-05-08 13:22
captcha (4 types) is exists now.
All what you want must be only plugins - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты