bbPress Protected Forums Plugin

plugin by:
Jordi Plana
Version:
1.0

Reviewed by:
Rating:
5
On September 19, 2012
Last modified:September 19, 2012

Summary:

bbPress Protected Forums adds a metabox, shown while editing a forum, that allows you to disable new topic creation for determined user roles. The plugin is perfect for those situations that you may want your users to see the list of topics of a forum but don't want them to create new topics.

You can download my WordPress Plugin: bbPress Protected Forums clicking here.

What does the plugin?

bbPress Protected Forums adds a metabox, shown while editing a forum, that allows you to disable new topic creation for determined user roles.

The plugin is perfect for those situations that you may want your users to see the list of topics of a forum but don’t want them to create new topics.

Plugin fully compatible with bbPress 2.x

How do I install de plugin?

Just download it from the WordPress plugins repository, activate it and enjoy!

Screenshots

Plugin info

Current version: 1.0
Author: Jordi Plana
Release log:

1.0

  • First version

2 Comments

  • Vicente Sivera
    September 19, 2012 - 12:04 pm | Permalink

    Hola Jordi,

    he instalat el teu plugin a un projecte i aunque funciona de meravella tinc un dubte.

    Hi ha cap manera de restringir també als visitants que no estan logats?

    De moment he fet un arreglet posant un condicional en cas de que $current_user siga 0.

    El projecte, per si vols veure’l es aquest http://www.elplacerdeescribir.com/

    Moltes gracies!

    • September 20, 2012 - 9:34 am | Permalink

      Hola Vicente,
      Gràcies per utilitzar el plugin!

      Pots afegir un condicional a la linea 36 del plugin, dins de la funció pf_start_capture just després del bucle foreach:


      if(!is_user_logged_in()){
      ob_start();
      add_action( 'bbp_theme_after_topic_form', 'pf_stop_capture');
      }

      La funció is_user_logged_in() torna false si l’usuari no està logat.

      Espero haver-te ajudat.
      Salut!

  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>