Search Results for 'code'
-
Search Results
-
Topic: 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.
Topic: Persistant login form
Hi there,
In order to get the login form, I added it as a shortcode into my forum page via WP admin.
So far so good but the login form only shows up on the main forums page. If I openn the topics or replies views, the login form is not there anymore.
Am I missing something? Are the topics list and replies list not supposed to use the same wordpress page as the forums list?What can I do to get a persistent login form, whatever the forum’s page if the user is not connected yet?
Thanks.
Topic: Head
I looked in a lot of template files and try to delete the organge rounded (see picture) area but without any success.
Could someone please tell me in what template file I can remove the area?I try it also here:
<?php ############################################################################################################################ ?> <?php do_action( 'bbp_template_before_topics_loop' ); ?> <ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="bbp-topics" style="clear: right;"> <li class="bbp-body"> <?php while ( bbp_topics() ) : bbp_the_topic(); ?> <?php //bbp_get_template_part( 'loop', 'single-topic' ); ?> <?php ############################################################################################################################ ?>