Quick Doc Question
- This topic has 4 replies, 2 voices, and was last updated 10 years, 6 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Hi folks:
I have a doc created for a private group (it’s for a class).
All doc preferences are set so that only group members can view, edit, etc. However, whenever everyone edits all of the preferences reset to “public” and pull the document out of the group entirely. Then I go back in, reset the doc preferences… until the next student edits.
Is there a way to keep the doc preferences from resetting? I need the group members to “edit,” so I didn’t want to change that.
Best,
Chuck
Hi Chuck – This was a previously identified issue in BuddyPress Docs. See https://github.com/boonebgorges/buddypress-docs/pull/391. It was fixed in https://github.com/boonebgorges/buddypress-docs/commit/78c6f2ccb3d6e3637219dd435ea8fe6de7778087.
You can manually update your BuddyPress Docs plugin to the latest stable version to get the fix, or wait until Commons In A Box 1.0.8 is released (slated for the next week).
Thanks Boone–and sorry for the repeat question. I always try to scan first, and then feel like a heel when I miss it!
Github is new to me–so when I follow the link and see the various code options there, would I work with just the top one (all shaded in green) or with all of them that are below as well? (Again, sorry for the basic nature of this question; I really appreciate you taking the time.)
Ok, I went through the changes one by one. Hopefully, my first use of github to try and fix something isn’t a complete disaster! If so, I’ll know soon enough.
Okay, everything looks good in the “Edit” and “History” tabs, but when I click on the “Read” tab I get this:
Fatal error: Call to undefined function bp_docs_check_post_lock() in /home/sadiron/www/gbdh/wp-content/plugins/buddypress-docs/includes/templatetags.php on line 989
The code in the file itself looks like this in the area referred to (line 989 is the last line before the final closing bracket):
// Try to get the lock out of $bp first
if ( isset( $bp->bp_docs->current_doc_lock ) ) {
$is_edit_locked = $bp->bp_docs->current_doc_lock;
} else {
$is_edit_locked = 0;
if ( empty( $doc_id ) )
$doc_id = !empty( $post->ID ) ? $post->ID : false;
if ( $doc_id ) {
// Because we’re not using WP autosave at the moment, ensure that
// the lock interval always returns as in process
add_filter( ‘wp_check_post_lock_window’, create_function( false, ‘return time();’ ) );
$is_edit_locked = bp_docs_check_post_lock( $doc_id );
}