ChronoComments - Latest Comments Component

grosbedo 09 Nov, 2008
Hello,
I've seen that this feature was implemented in the ChronoComments module, but not in the component. Is there a way to hack this feature quickly into the component ? I tried to modify every sql request where there is datetime by descending order, but to no avail, in chronocomments.php and chronocomments-form.html.php

I really don't understand why this didn't work, so if you have the solution please tell me what should I do, thank you,
Cordially
Max_admin 10 Nov, 2008
Hi grosbedo,

what are you trying to do exactly ? the component/plugin will order the comments automatically from older to more recent! up to down direction!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
grosbedo 10 Nov, 2008
Exactly, but I would like to change this order, from more recent to oldest. And I just can't understand how to do it inside the code :-/
Max_admin 10 Nov, 2008
Hi grosbedo,

I'm not sure if it will be as easy as changing the order of the SQL because still the last submitted comment will appear to the submitter at the end but you need to change the SQL in the plugin file at plugins/content/chronocomments.php

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
grosbedo 12 Nov, 2008
Thank you very much, it perfectly worked ! I've search for all instances of "datetime" and changed "ASC" to "DESC" (or added it when it wasn't present) and it ordered comments from latest to oldest.
Max_admin 12 Nov, 2008
Good news, glad that made it!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
plazmatick 24 Dec, 2008
hello!

I did change all ASC to DESC but still have a problem on multiple pages.... At forst it's all ok, and forst 10 comments are listed from last but on second page they are again in ASC format.

Please, how to solve that?

thanx and best wishes,
marko
Max_admin 24 Dec, 2008
Hi Marko,

I think you will need to make the same change to components/com_chronocomments/chronocomments.php

Let me know!

Best regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ghelena 01 Jan, 2009
Hi,

Great component!
I also want to order the comment from the recent to latest and I did the change from ACS to DESC in both files and now after I'm adding the comment in my site the comment disappear after page refresh. How can I solve it?
I'd like to know if I can also change the place of comment form - to move it before all comment and not after.

Thanks and sorry for my english🙂
Max_admin 01 Jan, 2009
Hi ghelena,

for the first question, it should work, I have no idea why it doesn't, I didn't test it myself but other users did and said it did!

for the 2nd part, you can do this in the template file under components/com_chronocomments/templates/

I'm not sure if this will make any side effects though!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ghelena 01 Jan, 2009
Hi,

thanks for the fast reply.
yes it works but the new comment I post not showing after page refresh. I've checked in database and it's there and if I delete cache I can see the post.
Do you have any idea why it happens? (it noticed that it happens too without any changes in script cause I install it again)

thanks
Max_admin 02 Jan, 2009
Hi ghelena,

you mean when you post the comment it appears, once you refresh the page it disappears ? do you post the comment in a single article page ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ghelena 03 Jan, 2009
Hi,
yes exactly, I'm posting in a single article and I see it, and after refresh of the page it's gone, but i can see it in database.
and if I clean all the cache in joomla (tool---cache) it's visible again.
I tried to disable plugin - System - Cache and cache setting in global configuration and it works!! 🙂

If there is an option to disable cache only for comments?


thanks again
Max_admin 03 Jan, 2009
Hi, well yes, that's Joomla cache and this is how it works, I have no idea if you can set it to check for new comments!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mineee 21 Jun, 2009
Hi Max,
I understood what I have to do, but i don't know how to add that to the SQL tables from phpMyadmin. Could you describe? Thanks a lot.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger