Blogs: enable comments to posts in personal blogs (moodle 1.9.x)

Blogs: enable comments to posts in personal blogs (moodle 1.9.x)

by Nadav Kavalerchik -
Number of replies: 7
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators
if you can not wait for Moodle 2.x ...
here is a patch to enable comments to posts in personal blogs (moodle 1.9.x)
http://tracker.moodle.org/browse/MDL-21206

enjoy smile
Average of ratings: -
In reply to Nadav Kavalerchik

Re: Blogs: enable comments to posts in personal blogs (moodle 1.9.x)

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Nadav,

Thanks for sharing your patch for enabling blog post comments. approve Please consider adding it to the modules and plugins database so that others can find it easily.
In reply to Nadav Kavalerchik

Re: Blogs: enable comments to posts in personal blogs (moodle 1.9.x)

by andrew singleton -

Hi Nadav i have installed your patch thanks, but i have a small issue. 

On the blogs page it shows add comment but we can only add to our own blogs? is the a problem when i add the code to the lib.php? Is this a problem when i edit the page as when i copy the last part of the code in dreamweaver to the lib.php the part </script> on line 767 make the rest of the code black and its if the rest of the code then is not working?

If you could please help

thanks

In reply to andrew singleton

Re: Blogs: enable comments to posts in personal blogs (moodle 1.9.x)

by Nadav Kavalerchik -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators
comments are added only to my own blog -- bug. (fixed)

you are so right sad it is an important bug which i did not noticed... oups

please change the line of code (inside blog/lib.php) from:

$comments = get_records('siteblogs_comments','userid',$blogEntry->userid);

to:

$comments = get_records('siteblogs_comments','postid',$blogEntry->id);

===

about the <script> issue, well... the code in the MDL looks ok.
i am not sure what is the error. can you please attach you lib.php file
so i can look it over.

enjoy smile
In reply to Nadav Kavalerchik

Re: Blogs: enable comments to posts in personal blogs (moodle 1.9.x)

by andrew singleton -
Thanks smile thats worked great
In reply to Nadav Kavalerchik

Re: Blogs: enable comments to posts in personal blogs (moodle 1.9.x)

by andrew singleton -

thanks again for the code works great

I was just wondering after you have made a comment is there a way to add a delete button for admin or the user that had made a comment?

thanks

In reply to Nadav Kavalerchik

Re: Blogs: enable comments to posts in personal blogs (moodle 1.9.x)

by Nathan Cobb -

Thanks a lot....it is great

But when we click on "Add Comment" page we get brackets and we need to format and remove the brackets e.g. addcomment title

Please if you know the answer, let me know.

Thanks

Noor

In reply to Nadav Kavalerchik

Re: Blogs: enable comments to posts in personal blogs (moodle 1.9.x)

by Flavio Martins -

Hi Nadav,

Can I delete a comment or just add it to my post? If I can't,  is it possible to make it work? How?

Thank you very much for this great work!