Buy Now
Sign in

ChronoComments - Latest Comments Component

grosbedo , November 09 2008
G
grosbedo
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
admin
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
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
G
grosbedo
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 :-/
admin
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
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
G
grosbedo
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.
admin
Good news, glad that made it!

Max
Max
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
P
plazmatick
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
admin
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
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
G
ghelena
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
admin
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
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
G
ghelena
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
admin
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
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
G
ghelena
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
admin
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
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
M
mineee
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.