Search Results for 'code'
-
Search Results
-
im trying to put buddypress x-profile fields in bbpress on loop-single-reply.php after the author role and avatar
I have created one called Location
my function to display it is
<div class="bbp-usr-location"><?php if ( bbp_is_topic_anonymous() ) { echo "<br>Guest Post"; } elseif ( bbp_is_reply_anonymous() ) { echo "<br>Guest Post"; } else { $user_location = xprofile_get_field_data( 'Location', ( bbp_get_reply_author_id ( bbp_get_reply_id() ) ) ); echo 'Location: ' . $user_location; } ?></div>I just want to not display it if its not filled in on buddypress
Any Help?
Hello All !
I need to list the last 8 topics in this widgets, and have a link to the next page of 8 topics, and so on.It would be like a pagination for every 8 topics.
I think the file is widgets.php in lines :
case 'newness' :
default :
$topics_query = array(
'post_type' => bbp_get_topic_post_type(),
'post_parent' => $settings['parent_forum'],
'posts_per_page' => (int) $settings['max_shown'],
'post_status' => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ),
'ignore_sticky_posts' => true,
'no_found_rows' => true,
'order' => 'DESC'
);
I know that ‘posts_per_page’ show the last topics, in my case 8, but i dont know how to access to 8 before.
Any help or idea please?
Hi, I am using the latest versions of both WP and BBPress.
My problems are that when I try to add stuff to my style.css, my BBPress pages just don’t seem to follow them…
Here is an example:
>> Remove menu/nav bar and search form from all pages (style.css)/* Remove nav bar and search form */ .page #nav-bar { display: none; } .page #s { display: none; }The code works on all other pages (BuddyPress ones included), just not any BBPress pages..
Does anyone have any ideas as to why?I am no coder or expert so this has totally thrown me lol.
Topic: bbpress editor
Hello
I have a problem with the editor in bbpress .. the content is displayed with the html code ..
I am using Ultimate TinyMCE editor with the option of wpautop set off and I put this code in the functions.php of the theme to enable mce editor :
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
What could be the problem, I tried using Tiny MCE Advanced but the same problem occurred
is this a theme problem?Im using :
Wordpress version 3.8.3
bbpress version 2.5.3
Ultimate TinyMCE version 5.3Thanks
Topic: Widgets disappeared
Hello.
I made some changes in localisation (via Codestyling Localization plugin) and suddenly disappeared all my BBPress widgets from administrator’s widget menu.
Please help.