Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 3 months, 4 weeks ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

Quick Doc Question

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 11 months ago by Chuck Rybak.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 29, 2014 at 9:47 am #4771
    Chuck Rybak
    Participant

    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

    May 29, 2014 at 1:53 pm #4772
    Boone Gorges
    Keymaster

    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).

    May 29, 2014 at 2:05 pm #4773
    Chuck Rybak
    Participant

    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.)

    May 29, 2014 at 2:48 pm #4774
    Chuck Rybak
    Participant

    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.

    May 29, 2014 at 2:57 pm #4775
    Chuck Rybak
    Participant

    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 );
    }

    • This reply was modified 10 years, 11 months ago by Chuck Rybak.
    • This reply was modified 10 years, 11 months ago by Chuck Rybak.
  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register