-
modemlooper replied to the topic Nothing in the Showcase Link in the forum Requests & Feedback 11 years, 1 month ago
-
modemlooper replied to the topic Ajax load more posts on BuddyPress member profile in the forum How-to & Troubleshooting 11 years, 1 month ago
Why not just create a custom activity feed for only blog posts?
-
modemlooper replied to the topic Ajax load more posts on BuddyPress member profile in the forum How-to & Troubleshooting 11 years, 1 month ago
why ajax? you will need a fall back if its disabled.
-
modemlooper replied to the topic [Resolved] Hide one of the profile tabs (change avatar) in the forum How-to & Troubleshooting 11 years, 1 month ago
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
-
modemlooper replied to the topic [Resolved] Hide one of the profile tabs (change avatar) in the forum How-to & Troubleshooting 11 years, 1 month ago
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' ); -
modemlooper replied to the topic Customizing Page Templates in the forum How-to & Troubleshooting 11 years, 1 month ago
Looks like a theme issue. What theme?
-
modemlooper replied to the topic Creating 'New Group' changes 'http://' to 'HTTPS:// ' in the forum How-to & Troubleshooting 11 years, 1 month ago
Switch to bp-default theme and then check the link. Might be theme related.
-
modemlooper replied to the topic Switch the template Buddypress is using for the profiles in the forum How-to & Troubleshooting 11 years, 1 month ago
look at the original index.php there will be a call to template parts
-
modemlooper replied to the topic Cannot get Buddypress working in Expound in the forum How-to & Troubleshooting 11 years, 1 month ago
https://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…[Read more]
-
modemlooper replied to the topic Get member friends number in the forum How-to & Troubleshooting 11 years, 1 month ago
My friends (<?php bp_total_friend_count( bp_displayed_user_id() ); ?>)
-
modemlooper replied to the topic Cannot get Buddypress working in Expound in the forum How-to & Troubleshooting 11 years, 1 month ago
BuddyPress 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.
-
modemlooper replied to the topic Switch the template Buddypress is using for the profiles in the forum How-to & Troubleshooting 11 years, 1 month ago
Read this to learn about template hierarchy https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/
-
modemlooper replied to the topic Must I set up subnav items when creating a new component? in the forum How-to & Troubleshooting 11 years, 1 month ago
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] ) );
-
modemlooper replied to the topic Must I set up subnav items when creating a new component? in the forum How-to & Troubleshooting 11 years, 1 month ago
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…[Read more]
-
modemlooper replied to the topic Must I set up subnav items when creating a new component? in the forum How-to & Troubleshooting 11 years, 1 month ago
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.
-
modemlooper replied to the topic Must I set up subnav items when creating a new component? in the forum How-to & Troubleshooting 11 years, 1 month ago
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
-
modemlooper replied to the topic Must I set up subnav items when creating a new component? in the forum How-to & Troubleshooting 11 years, 1 month ago
what name for component and subpage?
-
modemlooper replied to the topic Must I set up subnav items when creating a new component? in the forum How-to & Troubleshooting 11 years, 1 month ago
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'… -
modemlooper replied to the topic Must I set up subnav items when creating a new component? in the forum How-to & Troubleshooting 11 years, 1 month ago
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/
-
modemlooper replied to the topic Must I set up subnav items when creating a new component? in the forum How-to & Troubleshooting 11 years, 1 month ago
I did this once in the past and it was basically a hack.
leave the name of the subnav empty so it doesn’t show on profile. Not sure it will work you can also hide via css but thats lame.
- Load More
@modemlooper
Active 9 months, 3 weeks ago