Search Results for 'code'
-
Search Results
-
Is it possible to change the required information in the bbPress short code for registration.
Also, is it possible to make the registration for my site and the forum one and the same.
Any help is much appreciated.Topic: SideBar Removal
I have a few questions that I was hoping one of the bbPress developers would be able to give me a quick hint about offhand.
I’m getting results that leave me completely puzzled, as I try to hook into or directly modify the `bbp_get_caps_for_role()` function in `/core/capabilities.php`.
The `bbp_get_caps_for_role` filter
My purpose is to try and return an array with true on all caps for any role, because I need to find out why only the keymaster gets to upload images.My first attempt is just to use the `’bbp_get_caps_for_role’` filter provided by the function. This is where the mysterious stuff starts…
I can add the filter, and when I check the `$wp_filters` global afterwards, I can verify that the filter has been added correctly. However it doesn’t fire. When I check the `$wp_filters` array inside the `bbp_get_caps_for_role()` function, just before the hook is applied, my filter has vanished. So somewhere there must be a function removing my filter. But where, and why!?
Testing by returning the `$caps` array with all caps set to `true`
So giving up on the filter for now, I simply try to hardcode the all-true `$caps` array directly into the `bbp_get_caps_for_role()` function and returns this, regardless of role. What then happens is even weirder. – Now my user can not even post a reply in the forum.How can setting all caps to true end up giving my user less rights in the forum?!
Thanks in advance guys!
For reference, here is the bottom part of my hacked `bbp_get_caps_for_role()` function:
`
…
‘assign_topic_tags’ => true,
);break;
}$caps = array(
// Keymasters only
//’keep_gate’ => true,// Primary caps
‘spectate’ => true,
‘participate’ => true,
‘moderate’ => true,
‘throttle’ => true,
‘view_trash’ => true,// Forum caps
‘publish_forums’ => true,
‘edit_forums’ => true,
‘edit_others_forums’ => true,
‘delete_forums’ => true,
‘delete_others_forums’ => true,
‘read_private_forums’ => true,
‘read_hidden_forums’ => true,// Topic caps
‘publish_topics’ => true,
‘edit_topics’ => true,
‘edit_others_topics’ => true,
‘delete_topics’ => true,
‘delete_others_topics’ => true,
‘read_private_topics’ => true,// Reply caps
‘publish_replies’ => true,
‘edit_replies’ => true,
‘edit_others_replies’ => true,
‘delete_replies’ => true,
‘delete_others_replies’ => true,
‘read_private_replies’ => true,// Topic tag caps
‘manage_topic_tags’ => true,
‘edit_topic_tags’ => true,
‘delete_topic_tags’ => true,
‘assign_topic_tags’ => true
);return $caps;
//return apply_filters( ‘bbp_get_caps_for_role’, $caps, $role );
}
`Topic: Private Recent Topic Page
I’m trying to create a page that includes only recent topics which would only be available to a forum role of Participant and a visibility of Private.
Creating a new page and using the short code [bbp-topic-index] doesn’t work, as the Private page visibility is based on WordPress user roles and not bbPress.
Is there a way to create an additional forum template that lists recent topics? This would not replace the main forum list view, but would be an additional page.
After upgrading to 2.2.4, only the “keymaster” role gets the normal fancy post editor with a choice between WYSIWYG view and source code view.
Normal “participant” users only get the source code view (exactly like in this support forum). There’s the row of helper buttons to insert code, but you can’t switch to the WYSIWYG view.
I checked that there are no JS errors. (This is usually what prevents the tabs for switching to show up).
I figure it must have something to do with the capabilities of the forum roles, but I don’t know how I would be able to view or change these. I use the Members plugin to edit roles and caps for the rest of WP.
I use [ bbp-topic-index] embedded on the front page of http://www.cpsarc.com and it’s been reported that clicking on the navigation links (for page 2 etc) doesn’t direct to forum pages, they display news posts.
However the same shortcode on the forum page, works as expected
I can see the address generated for the link on the front page is cpsarc.com/?paged=2
however on the forum page it’s cpsarc.com/?pageid=1555&paged=2 and pageid 1555 is the forum page.John
I am trying to do something which i feel should be pretty simple.
I want to make forum/topics that are only visible and accessible by certain users i can determine myself.
For instance one forum/topic that only 2 forum users say “john” and “paul” have access to along with our admin.
There does not appear to be a way of doing this and i have tried most of the plugins the last 4 days of googling have provided.
Surely im missing something simple?
Im using the latest versions of wordpress and bbpress, just downloaded this week.
The forum in question – though not live, can be seen here: http://69.195.124.85/~youngmo7/12/shortcode-forums/
Any help or advice is greatly appreciated.
Thanks



I’m working at a WordPress site in which I want to use the bbPress plugin. Now, I want to create a link between the normal WordPress comment function and bbPress. I just want to do one thing. Under my standard WordPress blog entries, the users of my site can post comments. The comments are listed under the respective blog article. Next to each comments there the picture of the user that creates the comment. Now I want to create a link between the picture of the commentator and his bbPress profile page. When someone presses the picture of the commentator, there should be a forwarding to the bbPress profile page of the commentator. Observer of my blog can get a few informations about the commentator by that. Unfortunately I’m not able to create the link.
This is the code of my functions.php, that describes the comments setup of my normal WordPress commenting system:
And this is the bbPress php code which creates the user avatar link to the profile page:
Can somebody tell me the way how I have to modify the WordPress functions.php?
Even now, many thanks for your Help!