Forum Replies Created
-
In reply to: Nothing ever changes around here….
I closed it because exploits should not be discussed in the forum. Please, email the issue at security@wordpress.org
In reply to: Activity stream from one site overrides another'sHave you tried this instead? http://buddydev.com/plugins/buddypress-multi-network/
BP is really only for one site on a multisite unless you use a BP specific multisite plugin OR this https://wordpress.org/plugins/bp-multi-network/
To display an ajax button:
<div id="members-dir-list"><?php bp_member_add_friend_button(); ?></div>But you don’t say where you want to place a button.
In reply to: WP Users convert to BP Members in 1.9?They may need to login once before they show in members lists.
In reply to: WP Users convert to BP Members in 1.9?Any WP user is a member
In reply to: Activity Stream THUMBNAIL Sized distortedIn the buddypress/bp-templates/bp-legacy/buddypress/activity/entry.php file add the argument to bp_activity_avatar
<?php bp_activity_avatar( 'type=full&width=275&height=275'); ?>In reply to: Nothing in the Showcase LinkIn reply to: Ajax load more posts on BuddyPress member profileWhy not just create a custom activity feed for only blog posts?
In reply to: Ajax load more posts on BuddyPress member profilewhy ajax? you will need a fall back if its disabled.
function bp_remove_nav_item() { global $bp; bp_core_remove_subnav_item( $bp->profile->slug, 'change-avatar' ); } add_action( 'wp', 'bp_remove_nav_item' );just need to load function sooner. only use functions.php if your code is for the theme. Otherwise, use bp-custom.php
function bp_remove_nav_item() { global $bp; bp_core_remove_subnav_item( $bp->profile->slug, 'change-avatar' ); } add_action( 'bp_include', 'bp_remove_nav_item' );In reply to: Customizing Page TemplatesLooks like a theme issue. What theme?
Switch to bp-default theme and then check the link. Might be theme related.
look at the original index.php there will be a call to template parts
In reply to: Cannot get Buddypress working in Expoundhttps://plugins.svn.wordpress.org/buddypress/tags/1.8/bp-themes/bp-default/_inc/css/default.css
Only use the css from below 6.0 BuddyPress. Before using it place #buddypress before each style declaration. This ensures it will only effect BuddyPress specific HTML. You may still need to edit or remove styles because this is based on BP-default and not the new template files.
#activity-stream {
margin-top: -5px;
}becomes
#buddypress #activity-stream {
margin-top: -5px;
}In reply to: Get member friends numberMy friends (<?php bp_total_friend_count( bp_displayed_user_id() ); ?>)In reply to: Cannot get Buddypress working in ExpoundBuddyPress css is very minimal as to not force design on a users site. You will need to add your own css to make it look more inline with your sites theme.
Read this to learn about template hierarchy https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/
Exactly.
So in your code to pull posts you can supply the paged # from $bp->action_variables[0]
$query = new WP_Query( array( 'paged' => $bp->action_variables[0] ) );you need some way of knowing what page you are on and using uri to get a page number is the best way and it works like WP pagination.
bp_action_variables are stored as an array so it’s easy to tap into:
posts/page/2/3/4
$bp->action_variables[0] == 2
$bp->action_variables[1] == 3
$bp->action_variables[2] == 4So if you did a front end editing of a post you could do
posts/post/2/edit
do an if ( $bp->action_variables[1] == ‘edit’ )
then display an edit screen instead of the normal post screen
yeah but you want to hide the subnav. To tap into the action variable you need a current action and that’s created with a nav item.
it seems if you put a space as the tab name it works.
posts/page/2
make subnav page but put a space as the name so it doesn’t show as a subnav but then you can tap into action variable
what name for component and subpage?
This is useful to dump everything $bp has on a given page.
function bp_dump() { global $bp; foreach ( (array)$bp as $key => $value ) { echo '<pre>'; echo '<strong>' . $key . ': </strong><br />'; print_r( $value ); echo '</pre>'; } die; } add_action( 'wp', 'bp_dump' );bp_current_component
bp_current_action
bp_action_variablesThe url structure is
members/user/bp_current_component/bp_current_action/bp_action_variables
I wrote something which I can’t remember to read the action variable and then displayed posts page/