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
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
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
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
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 :-/
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
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
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.
Good news, glad that made it!
Max
Max
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
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
Hi Marko,
I think you will need to make the same change to components/com_chronocomments/chronocomments.php
Let me know!
Best regards
Max
I think you will need to make the same change to components/com_chronocomments/chronocomments.php
Let me know!
Best regards
Max
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🙂
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🙂
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
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
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
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
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 ?
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 ?
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
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
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
Regards
Max
This topic is locked and no more replies can be posted.