Search Results for 'code'
-
Search Results
-
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
Is it possible to show a user’s forum topic count(or post count) in the buddypress profile page? It feels like it should be simple enough but hours of googling and reading topics here has left me more confused than when I started.
I can see its possible on a bbpress profile page, where it’s using:
<p class="bbp-user-topic-count"><?php printf( __( 'Topics Started: %s', 'bbpress' ), bbp_get_user_topic_count_raw() ); ?></p> <p class="bbp-user-reply-count"><?php printf( __( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count_raw() ); ?></p>Should I be calling a different function altogether, or is there a specific way to put bbPress functions inside a BuddyPress template page?
A good example of what I mean is at Tamriel Foundry, where the various counts are listed under the heading Post Details. (The design of that site in general is amazing)
Any help would be greatly, greatly appreciated! And apologies if you are reading this for a second time, I wasn’t sure whether to post my query at the Buddypress or bbPress forums.
Hi,
I managed to create a TinyMCE plugin and add it to wordpress editor (which is the same as bbpress).
So far so good.
Using
$ args ['teeny'] = false;config, my tinymce plugin’s button show normal.
But, I need to be displayed in the default editor for bbpress, in teeny editor.
Any ideas?
Thanks a lot.