By Shane on Tuesday, 04 February 2014
Posted in Technical Issues
Replies 39
Likes 0
Views 714
Votes 0
I have EasyBlog (v3.9.15155) installed on a Joomla .3.2.1 site, but am unable to set EasyBlog up to allow registered users to edit only their own comments.

If I disable the "Manage Comments" option in the ACL page, then users can't edit their own comments, but if I enable that setting they can edit everyone's comments.

Am I missing another setting somwhere?
Hi Nick,

Yes, I was querying why users can't edit their own comments ( with setting Moderate Comments to ON). So, if that's how Easyblog currently functions, then that answers my query.

I will try to re-create the other issue that I have, and will post under a new thread.

Thanks
Shane
·
Friday, 31 October 2014 02:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

Please set "Allowed to edit blog's comments" to yes so only users can manage their own comments and "Manage Comments" to no

Thanks:)
·
Tuesday, 04 February 2014 04:13
·
0 Likes
·
0 Votes
·
0 Comments
·
That works great.

Many thanks
·
Tuesday, 04 February 2014 08:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You are most welcome. Glad that your issue is solved.

Thanks!
·
Tuesday, 04 February 2014 10:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually, I've found that I can't actually save any changes after editing my own comment. I get a message saying "You do not have the permission to update comment."

I am now running EasyBlog v3.9.15425 and Joomla 3.2.2

Any ideas how to resolve this please?
·
Wednesday, 12 February 2014 02:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

Can you provide us your backend and FTP access so we can have a better look on your issue here? Please advise.
·
Wednesday, 12 February 2014 11:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Sorry for the delayed response. I'm running a private family site, so would prefer not to release backend/FTP access.

I am now running on Joomla 3.3.6 and EasyBlog 3.9.19025, and am still experiencing the same issue when trying to save comment edits.

Additionally, I have now noticed that Registered users are now unable to create a new Blog entry from the Frontend - and get an Error message saying "You are not authorised to view this resource." Even when I log into the site frontend using a SuperUser login, I still get the same error, however I can add Blog entries from the backend.

I have checked the ACL in EasyBlog for the "Registered" user group - both Write Entry and Publish Entry are set to 'Yes'.

Can you please advise the next steps for diagnosing both of these issues?

Thanks.
·
Monday, 27 October 2014 10:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

We are sorry. We can't really tell how to debug here since we can't replicate it in our local. We need to have a better look on your site about this issue.
·
Monday, 27 October 2014 11:10
·
0 Likes
·
0 Votes
·
0 Comments
·
OK - I've setup another "test" site with a fresh build of Joomla, installed the Template and then installed EasyBlog, and I'm able to re-recreate at least one of the problems.

How do I give you access to this test site?

Thanks
·
Tuesday, 28 October 2014 02:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

You can provide it in the Site Details below the reply form.
·
Tuesday, 28 October 2014 10:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Try this...

I'm still getting an error after editing my own comment - I get a message saying "You do not have the permission to update comment."
·
Wednesday, 29 October 2014 02:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

I've tried to access your backend and I got this : http://screencast.com/t/5Z4xhw4O2 . Also, it will be easier for us to debug if you can give us your FTP access as well. Please advise.
·
Wednesday, 29 October 2014 10:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry - try this
·
Wednesday, 29 October 2014 13:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

I've tried to replicate your issue. But I was able to post a blog without getting any error message "You are not authorised to view this resource." and also, able to update comment successfully: http://screencast.com/t/IsmrfWYDL90 . Did I missed anything? Please advise.
·
Wednesday, 29 October 2014 16:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Try logging on to the frontend user the 'Registered' user (instead of as a 'SuperUser') - details attached..
·
Thursday, 30 October 2014 02:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

Seems like there is a bug in your code where by default, user cannot edit comment, and the edit link shouldn't appear unless the user has the permission to Manage Comments. But with this permission turned on in ACL, the user will be able to edit all comment on the site. If you want, we can add one more option in ACL which will check if the user can edit own comment or not. I've tried to access you FTP but failed: Server closed connection. Please advise.
·
Thursday, 30 October 2014 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Try the FTP instructions below.

Can you please advise the option that you would like me to try?

Thanks
·
Thursday, 30 October 2014 12:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

The option is something like this: Allow to edit own comment. As I understand from this post, you want to let user able to edit their comment right? But currently Easyblog will only let user edit comment if you turn on Moderate Comments in Easyblog>ACL setting. Once this Moderate comment is turned on, that user not only able to edit own comment but also will be able to edit all comment on the site.
·
Thursday, 30 October 2014 15:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

Sure, keep us updated.
·
Friday, 31 October 2014 10:33
·
0 Likes
·
0 Votes
·
0 Comments
·
NIK FARIS wrote:

Hello Shane,

The option is something like this: Allow to edit own comment. As I understand from this post, you want to let user able to edit their comment right? But currently Easyblog will only let user edit comment if you turn on Moderate Comments in Easyblog>ACL setting. Once this Moderate comment is turned on, that user not only able to edit own comment but also will be able to edit all comment on the site.


Is there any way of requesting a Feature Request to allow users to edit their own comments? Especially since there is an "edit" button shown against the Users own comments.....

Thanks
·
Monday, 03 November 2014 02:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

It can be done with a simple hack. You can re-provide your backend and FTP access so I can add it for you. Your current access is not working.
·
Monday, 03 November 2014 10:24
·
0 Likes
·
0 Votes
·
0 Comments
·
HI Nick

Backend and FTP now enabled again.

Thanks
·
Monday, 03 November 2014 11:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

Sorry, I forgot to mention that we need to insert the new ACL rule in your database. You can either provide us your phpmyadmin or run this SQL yourself:


INSERT INTO `jos_easyblog_acl` (`id`, `action`, `default`, `description`, `published`, `ordering`)
VALUES
('', 'edit_own_comment', 1, 'If allowed, user can edit own comment', 1, 0);


Replace the jos with your table prefix. Let us know once done.
·
Monday, 03 November 2014 13:04
·
0 Likes
·
0 Votes
·
0 Comments
·
All done.

Thanks
·
Monday, 03 November 2014 14:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

I've added the extra ACL for you. Please have a look. Please backup this file before updating Easyblog in the future:
../components/com_easyblog/themes/default/blog.comment.box.php
·
Monday, 03 November 2014 15:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

That works great. How do I migrate this change over to my private site?

Thanks
Shane
·
Monday, 03 November 2014 19:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

You will need to copy the file which Nik mentioned earlier to your private site
·
Tuesday, 04 November 2014 01:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Yes, that is exactly what I tried - however it work on my test site but not on my private site. Any furhter ideas would be most appreciated.

Thanks.
·
Tuesday, 04 November 2014 02:57
·
0 Likes
·
0 Votes
·
0 Comments
·
hi nik, very intresting new ACL can you please offer here a step by step guide if the new ACL "edit_own_comment" finaly works! thanks

suscribed
·
Tuesday, 04 November 2014 08:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

Have you run the SQL provided into your private site?

Hello Rene,

First, you have to execute the provided SQL into your database, then copy the attached file in your ../components/com_easyblog/themes/default/blog.comment.box.php. If this doesn't work, you can provide us your backend and FTP here since this might be only work in Shane's site.
·
Tuesday, 04 November 2014 10:30
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Nick

Yes, I did run SQL code into my database and copied that files across to my private site, but still unable to edit my own comments.

I'll double-check everything over the next few days, but were there any other changes that you made on my test site?

Thanks
Shane
·
Tuesday, 04 November 2014 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

As far as I can remember, only that file. Because your site got some issue that might be make it different with other site. You can provide your backend and FTP for the private so I can applied the hack.
·
Tuesday, 04 November 2014 11:39
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Nick,

I've noticed that on my Test site, I have a new line item at the bottom of the ACL / Registered / Rule Set page, which shows:
Allowed to edit own comments No/Yes

However, following the same steps to introduce the hack on my private site, I see this on the Rule Set page:
COM_EASYBLOG_ACL_OPTION_edit_own_comment No/Yes

I'm not sure where to look next. Can you please advise?

Thanks
Shane
·
Friday, 07 November 2014 07:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

I'm sorry. You have to also replace the language file from ../language/en-GB/en-GB.com_easyblog.ini. Hope this helps.
·
Friday, 07 November 2014 10:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick,

I've copied that file across from my Test site to my Private site, and it appears that I can now edit and save updates to my own comments from the Frontend. So that is working great, thanks.

The only remaining issue is that I still see this on the Rule Set page on my Private site:
COM_EASYBLOG_ACL_OPTION_edit_own_comment No/Yes

The option appears to function correctly, but do you have any further ideas on how to fix the Label? I have also updated to EasyBlog 3.9.19335.

Cheers
Shane
·
Sunday, 09 November 2014 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

I am really sorry for the delay of this reply as it is a weekend for us here. You can actually add the codes below into the language file /administrator/language/en-GB/en-GB.com_easyblog.ini to translate the label,


COM_EASYBLOG_ACL_OPTION_EDIT_OWN_COMMENT="Edit Own Comments"
·
Sunday, 09 November 2014 21:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rene,

First, you have to execute the provided SQL into your database, then copy the attached file in your ../components/com_easyblog/themes/default/blog.comment.box.php. If this doesn't work, you can provide us your backend and FTP here since this might be only work in Shane's site.


hello Nik, thanks but i can't see a attached file!?
·
Sunday, 09 November 2014 23:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark wrote:

Hello Shane,

I am really sorry for the delay of this reply as it is a weekend for us here. You can actually add the codes below into the language file /administrator/language/en-GB/en-GB.com_easyblog.ini to translate the label,


COM_EASYBLOG_ACL_OPTION_EDIT_OWN_COMMENT="Edit Own Comments"


Hi Mark,

That works perfectly. Many thanks for your help - and from Nick.

Cheers
Shane
·
Monday, 10 November 2014 02:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shane,

You're welcome.
·
Monday, 10 November 2014 10:20
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post