7430 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Erstwhile founder
—
23rd August 2008 (3 years ago)
#
Hiya,
The Recent Comments plugin is only meant as an example of how to use the data collected by the Comment Indexer plugin. You're free to expand the Recent Comments plugin to add any features you need or you can create your own plugin using it as an example.
The Recent Comments plugin is only meant as an example of how to use the data collected by the Comment Indexer plugin. You're free to expand the Recent Comments plugin to add any features you need or you can create your own plugin using it as an example.
But how ? Some of us are challenged. I'd like to Author Name, link to comment, part of the comment and gravatar ?
7430 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Erstwhile founder
—
14th September 2008 (3 years ago)
#
Hiya,
But how ? Some of us are challenged. I'd like to Author Name, link to comment, part of the comment and gravatar ?
The best thing is to start learning PHP. Personally I recommend learning by looking at the code of other plugins and then using php.net to look up anything you need. However some people prefer the traditional methods like getting a training book or taking a class.
Modifying a plugin like the recent comments plugin really doesn't take years of practice. Anyone with a basic understanding of PHP can handle it :)
I give up! I have tried, and failed and tried again, and again, and again - without any luck. I´m not a bad php programmer, I´m the worst case of a bad example :-) Please help me someone. I´m willing to pay for help with changing this plugin to show the comment, a link to the comment/blog and why not the avatar too? Mail me on richard@richworks.se and tell me what you want for the job.
It seems the recent comments plugin lists comments by last modified date. Can it be changed so that they are listed by the date they were published?
I assume I need to change the ORDER BY variable, but it is currently set to ORDER BY site_comment_id which is confusing as I'd assume it would have been set to last modified?
Responses (27)
Member — 23rd August 2008 (3 years ago) #
As I understand it ... I place the following in the home.php, right?
It is not pulling any comments... What am I doing wrong?
Sorry if this is a stupid question.
Richard
Erstwhile founder — 23rd August 2008 (3 years ago) #
Hi Richard,
Did you install the Comment Indexer plugin? Also note that only approved comments made after the Comment Indexer has been installed will be listed.
Thanks,
Andrew
Keeper of the Dark Chocolate — 23rd August 2008 (3 years ago) #
Is there any way to go back and recompile all the older posts, comments, and whatnot?
Member — 23rd August 2008 (3 years ago) #
Not at the moment. Considering all the resources it would take to do so I'm honestly not sure if it would be a good idea, even as an option. :-/
Erstwhile founder — 23rd August 2008 (3 years ago) #
Hiya,
Yeh, that's not something we'll be adding anytime soon.
Thanks,
Andrew
Member — 23rd August 2008 (3 years ago) #
"Did you install the Comment Indexer plugin? "
Nope!
Did not know that was required... Will do now :-)
Thanks,
Richard
Keeper of the Dark Chocolate — 23rd August 2008 (3 years ago) #
Don't you hate it when that happens? :D
Member — 23rd August 2008 (3 years ago) #
Ok... it is working now.
I am using your example:
Is there a way to put a link pointing to the post or comment so that users can click back to it?
Richard
http://www.sitio.com
Erstwhile founder — 23rd August 2008 (3 years ago) #
Hiya,
The Recent Comments plugin is only meant as an example of how to use the data collected by the Comment Indexer plugin. You're free to expand the Recent Comments plugin to add any features you need or you can create your own plugin using it as an example.
Thanks,
Andrew
Member — 14th September 2008 (3 years ago) #
The Recent Comments plugin is only meant as an example of how to use the data collected by the Comment Indexer plugin. You're free to expand the Recent Comments plugin to add any features you need or you can create your own plugin using it as an example.
But how ? Some of us are challenged. I'd like to Author Name, link to comment, part of the comment and gravatar ?
Erstwhile founder — 14th September 2008 (3 years ago) #
Hiya,
The best thing is to start learning PHP. Personally I recommend learning by looking at the code of other plugins and then using php.net to look up anything you need. However some people prefer the traditional methods like getting a training book or taking a class.
Modifying a plugin like the recent comments plugin really doesn't take years of practice. Anyone with a basic understanding of PHP can handle it :)
Thanks,
Andrew
Member — 15th September 2008 (3 years ago) #
This doesnt work for me using the edublogs theme
Erstwhile founder — 15th September 2008 (3 years ago) #
What doesn't work for you?
Thanks,
Andrew
Member — 15th September 2008 (3 years ago) #
comments not showing on page front-right.php
Erstwhile founder — 15th September 2008 (3 years ago) #
Did you add the function call?
Thanks,
Andrew
Member — 15th September 2008 (3 years ago) #
yep:
<?php
display_recent_comments(10,150,'
','
','?>
Erstwhile founder — 15th September 2008 (3 years ago) #
Do you have the comment indexer plugin installed and have there been comments posted since the plugins have been in place?
Thanks,
Andrew
Member — 15th September 2008 (3 years ago) #
i do have the indexer plugin installed. Comments, i will post a few and get back.
Member — 15th September 2008 (3 years ago) #
New posted comments are showing. Thanks. Not linkable ofcourse as you mentioned earlier.
Member — 18th September 2008 (3 years ago) #
I give up! I have tried, and failed and tried again, and again, and again - without any luck. I´m not a bad php programmer, I´m the worst case of a bad example :-) Please help me someone. I´m willing to pay for help with changing this plugin to show the comment, a link to the comment/blog and why not the avatar too? Mail me on richard@richworks.se and tell me what you want for the job.
Regards
Member — 5th October 2008 (3 years ago) #
could some one share the results on this? i'm not a php coder and have no idea how to accomplish this.
Member — 5th October 2008 (3 years ago) #
i love it but the problem i face thats its only showing the comment we cant click on it to take us to the subject of the comment
Member — 13th October 2008 (3 years ago) #
I modified the recent-comments.php
And it's ok
Member — 1st July 2009 (2 years ago) #
It seems the recent comments plugin lists comments by last modified date. Can it be changed so that they are listed by the date they were published?
I assume I need to change the ORDER BY variable, but it is currently set to ORDER BY site_comment_id which is confusing as I'd assume it would have been set to last modified?
Member — 2nd July 2009 (2 years ago) #
OMG! everyone here is like me, lol.. just jokin ;-}
Erstwhile founder — 2nd July 2009 (2 years ago) #
Hiya,
Try switching the query to ORDER BY comment_date_gmt
Thanks,
Andrew
Member — 2nd July 2009 (2 years ago) #
I should have tried that myself - it was obvious I know. I just wanted to make that removing the site_comment_id tag wouldn't be an issue.
It works thanks. :)
Become a member