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 OpenLab Support

Public Group active 1 year, 1 month ago

Have a question about Commons In A Box OpenLab, our new platform for open learning? Join the group and post your question here. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

cbox bug with Co-authors Plus and Enable Co-authors Plus Filters plugin

  • This topic has 7 replies, 2 voices, and was last updated 3 years, 6 months ago by S.G..
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • July 14, 2021 at 12:26 pm #8890
    S.G.
    Participant

    <p data-pm-slice=”1 1 []”>Hi everyone,</p>
    <p data-pm-slice=”1 1 []”>This is a theme-specific issue, but the bug does not appear on our Commons sites.

    In Customizr and Customizr Pro sites, these two plugins allow us to add guest authors to posts without them being members of the site, but then on the front end, it attributes the post to a random OL user.</p>
    Here is one case, in which the post lists a non-site OL member, a student, as the author on the front end, but Karl Williams (guest author we created) on the back-end (see two OL screenshots). And here is the student that it randomly chose: https://openlab.bmcc.cuny.edu/members/shanonbrianna/

    Each time I try to add Karl, it seems to generate a different OL user on the front end.

    I was able to replicate this on other sites. Here is one that shows an OL user named Marla instead of a guest author we created: https://openlab.bmcc.cuny.edu/bmccreads/?p=260&preview=true

    The functionality of the two plugins does work perfectly in OL sites in 2012. We have not tested other themes.

    The reason we are posting here is that these plugins do work perfectly on Commons sites in Customizr (see one Commons screenshot, in which I successfully published a post with a non-site member as a guest author).

    Our developer adds:
    “When you create the new author it is somehow given an ID. It’s not clear how the ID number is assigned but once it is, if it matches an existing ID of a OpenLab member then that person is shown as the author.

    “Knowing that WordPress has many ways of doing things it may be that some themes pull the authors in one way that takes the ID number and finds a matching OpenLab member and other themes pull the author name a different way using the data from the Co-Authors+ plugin.”

    We thought this might be a question for Boone, as creator of the Filters plugin?

    Thanks!

    Attachments:
    You must be logged in to view attached files.
    July 14, 2021 at 3:23 pm #8895
    Ray
    Keymaster

    Hi Syelle,

    This is not a problem with CBOX. It’s a problem with the Co-Authors Plus plugin and the Customizr theme. We have some specialized fixes on the Commons as outlined here.

    It sounds like the problems in that ticket are the same as the ones you outlined. I can share those fixes with you in a code snippet if your developer is able to apply them in the /wp-content/mu-plugins/ directory.

    August 17, 2021 at 12:18 pm #8957
    S.G.
    Participant

    Thanks, Ray–we’ve applied the fixes on our dev site, with success so far. Much appreciated.

    August 17, 2021 at 2:31 pm #8958
    Ray
    Keymaster

    Hi Syelle,

    It looks like I didn’t share the code snippet in my previous post. If you still need it, let me know. Otherwise, glad to hear things are working for you.

    August 17, 2021 at 6:28 pm #8959
    S.G.
    Participant

    We got the snippets from the github link in the redmine ticket you linked.

    August 19, 2021 at 5:24 pm #8962
    Ray
    Keymaster

    Ahh, I did not know you had access to the Commons Github repository. I guess you do! πŸ™‚

    To be sure you have the right snippet, here’s the code:
    https://pastebin.com/raw/CEpSch4z

    You can save it to a file like /wp-content/mu-plugins/co-authors-plus.php.

    August 20, 2021 at 8:48 am #8963
    S.G.
    Participant

    Thanks, Ray! Chris is our developer, so he has the access. πŸ™‚

    November 1, 2021 at 10:49 am #9075
    S.G.
    Participant

    @r-a-y, just an update that we finally got this working–many thanks.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX OpenLab Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 22
  • 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