By Keith Colleluori on Thursday, 14 May 2015
Posted in General Issues
Replies 9
Likes 0
Views 479
Votes 0
is there a way to lock blog posts from user editing after publication (or whenever?)
Hello Keith.

I have helped you with the process.

I change this code in ...\components\com_easyblog\themes\default\blog.admin.tool.php at line 39

<?php if($system->admin || $isTeamAdmin || $this->acl->rules->moderate_entry || $isMine ){ ?>


to

<?php if($system->admin || $isTeamAdmin || $this->acl->rules->moderate_entry){ ?>



and change this code in ...\components\com_easyblog\themes\dashboard\system\dashboard.entries.php at line 198

<?php if( $this->acl->rules->add_entry) : ?>


to

<?php if( $system->admin ) : ?>


Hope this help
·
Friday, 15 May 2015 11:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Keith,

I'm sorry but there is no setting to lock the post. However, modification on the particular file can be made to hide the edit from the author.
·
Thursday, 14 May 2015 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
have you ever given thought to this? would it be hard (expensive for someone to code? my point is that i am not using the extension as blogging software but for user submitted site content that i do not want them to have the option to erase later. now i can just back it up often and replace the content should it be deleted later... or i could change the author i suppose, but then the user would not collect points which i dont want so thats not a good option.

let me know if this may be added in the near future. thanks for the quick reply!
·
Thursday, 14 May 2015 13:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Keith,

I believe there is no plan to add this in the future. However, I can help you with the modification so that your user won't be able to edit or delete their post. You can provide us your backend and FTP.
·
Thursday, 14 May 2015 15:49
·
0 Likes
·
0 Votes
·
0 Comments
·
that would be so great, thank you... please let me know if future upgrades will destroy this feautre

thanks again
·
Friday, 15 May 2015 01:07
·
0 Likes
·
0 Votes
·
0 Comments
·
that appears to be what i wanted... thanks a lot... ill let you know if i have any trouble
·
Wednesday, 20 May 2015 10:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Keith,

You're welcome

If you want to upgrade your EasyBlog, please backup this file.
·
Wednesday, 20 May 2015 11:00
·
0 Likes
·
0 Votes
·
0 Comments
·
is it possible this edit has altered the 'writes a blog post' rule for jomsocial points?
·
Wednesday, 20 May 2015 12:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Keith,

I believe it is not affecting the rule because what my colleague did is only on the frontend file which only affect the disappearance of the button.
·
Wednesday, 20 May 2015 12:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post