Search Results for 'code'
-
Search Results
-
channelwiki.org/forums
I see Forums >> Forums >> Digital Terrestrial
Whereas only one forum link should be included.
The root Forum slug is ‘forums’. I have a page called forums (which includes the index shortcode) which is set as the site’s homepage.
the single forum slug is ‘f’.
Also, how can I display post count under usernames?
Topic: Shortcode vs forums url
I am having an issue displaying the forums on the standard url that bbpress uses.
See this page:
redhorsecrm.com/forums
This is the page I’m told to use by bbPress as to where the forums should display correctly. It does not look correct at all.
Then see this page:
redhorsecrm.com/forum
This page is one that I created and put a shortcode on to display the forums. It looks correct.
I don’t mind using the shortcode, since it displays the forum correctly. However, the breadcrumb points to the page that does not display correctly. So if a user uses the breadcrumb, they will be lost.
I understand this may be a theme issue, but this is a pretty standard theme Customizr and it “should” be compatible. Yes, I did ask Customizr but they didn’t have a clue.
Any ideas how to fix this?
I am currently using BBPress and will integrate it with MediaWiki.
However, the problem is as my forum’s index is set to display as a shortcode on a page called ‘Forums’, which is set as my site’s homepage the breadcrumbs display as follows:
Forums >> Forums >> Digital Terrestrial
See: http://www.channelwiki.org/forums/?forum=digital-terrestrial
As you can see the second ‘forums’ link takes a user to the default BBPress Forum index (not my sites homepage). How can this second ‘Forums’ link be removed?
The second issue is, as users are signing in via MediaWiki and will then be signed in to WordPress when they access the site automatically, how can I disable sign in via WordPress and registration, but still allow access to private messages and sign in via the wiki? The WP-Admin bar will also be hidden
Another issue is that I do not know how to redirect users back to the wiki. I’ve though about placing a ‘Log in’ link in the site’s main navigation, which links to the wiki’s login page but I’m not sure how to redirect them back.
Many thanks in advance,
channelwikiTopic: bbp_add_caps function ?
Hello there, I just went through some problems where the bbPress capabilities were not registered in the wp_user_roles option_name row entry. I don’t know what caused it but I was trying to see if I uninstalled/reinstalled bbPress it might reset the capabilities. It didn’t.
So I got hunting through the code and I found this function:
/** * Adds capabilities to WordPress user roles. * * @since bbPress (r2608) */ function bbp_add_caps() { // Loop through available roles and add caps foreach ( bbp_get_wp_roles()->role_objects as $role ) { foreach ( bbp_get_caps_for_role( $role->name ) as $cap => $value ) { $role->add_cap( $cap, $value ); } } do_action( 'bbp_add_caps' ); }But nothing seem to ever call this function. I did a search through all of the plugin code and there aren’t any references to this function. What gives?
In the end I was able to force the capabilities to be rebuilt by adding this function call inside another function that I knew was being called and it worked (I’ve since removed this).
BTW, this is on WP 3.7.1, bbPress 2.4.1.
Thanks!
PatrickTopic: Am I missing something, or..
Hello everyone.
Is there a proper codex site anywhere with all the functions/hooks and all the good stuff properly documented anywhere? For example I found a function called bb_is_home(), and I wanted to know what EXACTLY that checked for, but after researching it, I couldn’t find a single real reference or documentation of it.
Am I missing something? Because the http://codex.bbpress.org/type/functions/ has only about 5 functions. Surely there is a list of functions somewhere?
Thanks