bbPress Protected Forums Plugin
- plugin by:
- Jordi Plana
Version:1.0
Reviewed by: Jordi Plana
- Rating:
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
Posted on September 19, 2012 by Jordi Plana. This entry was posted in
Web development,
Wordpress,
Wordpress Plugins and tagged
bbpress,
create,
disable,
disallow users,
forums,
lock,
new,
post,
private,
protected,
roles,
topic,
topics. Bookmark the
permalink.
2 Comments
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!
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!