Skip to:
Content
Pages
Categories
Search
Top
Bottom

Threading only for admins


  • charlesmarzian
    Participant

    @charlesmarzian

    I’m trying to get this:

    – Simple users should always reply to the main (first) post and not to other replies

    – Users having a certain role should be able to reply (in a threaded manner) to any reply

    I tried editing includes/replies/template.php to have a different URL on the “Reply” link for different users (in one case a simple #new-post, in the other something like bbp_reply_to=165611&_wpnonce=d508dbc6fa#new-post)

    … But it seems more complex than that, since I’m still having threaded replies in both cases.

    Thank you if you can share some suggestions.

Viewing 1 replies (of 1 total)

  • charlesmarzian
    Participant

    @charlesmarzian

    Solved on my own, by hiding completely the “Reply” links to other replies for simple users:

    In case somebody else needs it:

    if ( in_array( ‘admin’, (array) $user->roles ) {
    $retval = $r[‘link_before’] . ‘‘ . $r[‘reply_text’] . ‘‘ . $r[‘link_after’];
    }

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar