WordPress.org

Forums

Enhanced BibliPlug
[resolved] can't edit bibliography unless administrator (8 posts)

  1. blairmacintyre
    Member
    Posted 2 years ago #

    This is a nagging problem, but has come up again because I want to hire some undergrads to fix the references.

    If I set a user to "Editor" (or anything except administrator) they cannot add new bibliography items, or even see the existing items.

    I'm neither a PhP nor wordpress hacker (although I am technically experienced in many other languages and systems); I've looked at the code and can't figure out why it's not working.

    http://wordpress.org/extend/plugins/enhanced-bibliplug/

  2. blairmacintyre
    Member
    Posted 2 years ago #

    Fixed. Found two places (one in bibliplug.php, one in class-bibliplug-reference-table.php) where "administrator" needed to be changed to "edit-posts".

  3. zuotian
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Blair,

    Yes, you are right about the fix. This issue is now resolved in release 1.3.6.

    Thanks,
    Zuotian

  4. blairmacintyre
    Member
    Posted 2 years ago #

    Hi, it's not quite fixed. There is still an instance of "has_cap('administrator')" that should be "has_cap('edit_posts')" in class-bibliplug-reference-table.php

    Thanks for most of the fixes, though, and for the new features (list by keyword, etc).

  5. zuotian
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Blair.

    The one in class-bibliplug-reference-table.php is by desgin, so that only administrator can see all reference, and authors can only see references where he/she is in the author list.

  6. blairmacintyre
    Member
    Posted 2 years ago #

    Oh, I see your intent.

    I want to have some folks in my research group, whom I've given edit permission to maintain the content on our lab website, able to edit any reference, but I don't want to make them administrators.

    Actually, I think we really want it to be "edit_others_posts" since most students are only set to "Author" which allows them to create and edit their own stuff (edit_posts) but the ones who can edit anything are set to "Editor" which has edit_others_posts set.

  7. blairmacintyre
    Member
    Posted 2 years ago #

    Ok, another question. Likely a total wordpress newbie question. I can't seem to get the ref_cat and ref_tag url's working. e.g., if I go to my reference categories, I have one called poster where the "View" link shows up as ael.gatech.edu/lab/ref_cat/poster and I get three entries that are not the posters.

    Is there something I need to have in my page templates such that the various slug categories will work? I'd love, for example, to be automatically be able to generate a page for each paper, with the full abstract, etc, and have this linked from the paper. But, I don't know how this would be done.

  8. zuotian
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Blair,

    Your suggestion of using "edit_others_posts" makes sense. I will include the fix in the next release.

    As of ref_cat url, it is not working because bibliplug references are not stored in the wordpress wp_posts table. Similarly, you cannot simply browse to a reference as a wp page/post because it is not stroed in wp_table. I can imagine there are workarounds to enable these features, but I have not had time to investigate it yet. If you have good ideas, or come across a solution, you can contact me via email.

    Thanks again for your feedback.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Enhanced BibliPlug
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.