Search Results for 'code'
-
Search Results
-
Topic: Removing user capabilities
I’m trying to remove the publish_topics capability from the subscriber role when using the bbpress wordpress plugin.
I checked here for reference, but it may not apply to the plugin version.
http://codex.bbpress.org/bbpress-user-roles-and-capabilities/
here’s the code I am using in my theme’s function.php
function bbp_remove_subscriber_caps(){
$role_object = get_role( 'subscriber' );
$role_object->remove_cap( 'publish_topics' );
}
add_action( 'init', 'bbp_remove_subscriber_caps' );
When I print the $role_object it shows:
[capabilities] => Array
(
[read] => 1
[level_0] => 1
[edit_topics] => 1
[publish_replies] => 1
[edit_replies] => 1
[assign_topic_tags] => 1
)
Which should mean that subscribers can’t create new topics… but the option still shows up on their dashboard. It does however say “You cannot create new topics at this time.” on the forum page within the site. So it seems to be partially working…
Is this a bug or am I just doing it wrong?
Hi
On my bbPress (& buddypress) enabled blog I have a forum page that is blank (no sourcecode-html or css)-why/how is this?
The page link on my blog is http://richard-dickinson.com/forums/
(theme is a bbPress child theme)-grateful for helpful advice/replies-thanks
Hi everyone, I have this page here:
http://www.complianceupdater.com/mortgage-compliance-checklist-questions/
It is running off BBpress plugin. Right now, you’ll see that the new topic form does not work. If you submit, it asks ‘Are You Sure You Want To Do This?’. That form is hardcoded in, however as the encryption codes change frequently, I need that to be ‘soft coded’ in via PHP. How would I do this? Please write back if I’m not being clear, I’ll explain more. Thanks!!!
Hello,
I am almost finished configuring bbPress and I just notice trying to publish a page with the URL mydomain.com/forums that it shows the default forums template and not the page that I have created with the shotcodes. There is anyway to fix this? I would like to have my own custom /forums page display.
Thanks for the help!

