Is there a way to have Buddypress logged in user generate a gravity form within their composed message template?
My Goal: Essentially I would like a gravity form that generates a live video recorder within composed messages (field, dropdown or link), which embeds the (responsive) live recorded video .wav file within the message that is being composed and sent to another buddypress user.
Note: The theme I’m using is Kleo 4.0
I have the exact same theme and plugins set up on my development server, and this problem does not happen. The only difference that I can think of is that on the production server I’m running NGINX, and on the development server I’m running Apache. Can anyone confirm this version works with NGINX?
not_friends are in fact members. Are you sure you want to built this, as such widget already exist ! Ok, has no Add Friend button…
BuddyPress Widgets
Another solution would be to use a shortcode who will fire a kind of Members widget and the add friend button. Huh ? 🙂
Add this snippet to bp-custom.php
function show_our_members( $atts ) {
$user_id = bp_displayed_user_id();
/**
* Options
* type:active, newest, popular, online, alphabetical, random)
* number:number of items
* size:size of avatar in px
*/
$atts = shortcode_atts( array(
'type' => 'newest',
'number' => '10',
'size' => '30'
), $atts, 'ourmembers' );
if ( bp_has_members( 'type='.$atts['type'].'&max='.$atts['number'] ) ) :
while ( bp_members() ) : bp_the_member(); ?>
<ul><li class="vcard">
<div class="item-avatar">
<a>"><?php bp_member_avatar(); ?></a>
</div>
<div class="item">
<div class="item-title fn"><a>" title="<?php bp_member_name(); ?>"><?php bp_member_name(); ?></a></div>
<div class="item-meta"><?php bp_add_friend_button( $user_id ); ?></div>
</div>
</li></ul>
<?php
endwhile;
endif;
}
add_shortcode( 'ourmembers', 'show_our_members' );
The shortcode to use (in post, pages, widgets…), eg. [ourmembers size=20 type=newest number=8]
The only thing you have to do, is to style it accordingly to your theme layout.
Note that the classes are those used in BP’s Members widget. You can use them or add your own.
Hi, I have installed BP with my theme and activated the group functions in the settings. However I get a title in the browser that says “Group Title | Home | Sitename” and want the Home to be Groups instead.
I have tried to change this through the bp-groups files but to no success. Can anyone tell me the exact file to work with? Thank you!
http://interfaithbook.com/activity/. I tried 6 different themes all the same result.
Yes. I thought that too. But it seems to be consistent theme to theme.
By the way it’s on the activity page not the home page. Sorry for the confusion.
I don’t think this is related to BuddyPress, but rather your WordPress theme.
Your homepage is rendered by WordPress and not BuddyPress.
I am trying to get my activity posts with links to be responsive when they appear in list on my activity page when viewed in vertical on the iPhone. I have tried several different themes but they all truncate my posts on the iPhone in this view and some of the content isn’t view-able. http://www.interfaithbook.com is the website address. The theme is not the problem as have tried several others but none seem able to solve the problem. All other types of content adjusts nicely when it is flipped from horiz to vert view. But the Posts with links show the linked content, only truncated.
Anybody ever run into this on BuddyPress.
Thanks,
Mike
Ok apologies for replying to myself but I’ve finally fixed and hopefully it’ll help someone else in the future.
<body <?php if ( !bp_is_blog_page() ) { body_class( ‘full-width’ ); } else { body_class(); } ?>>
The code above works with the child theme and renamed full-width.php file.
@shanebp Thank you for the kindly reply
Yes i am using it.
i think you mean i have to call this action in theme funcation ourside the bp localfile.
unction bbp_trash_topic( $topic_id = 0 ) {
// Validate topic ID
$topic_id = bbp_get_topic_id( $topic_id );
if ( empty( $topic_id ) || !bbp_is_topic( $topic_id ) )
return false;
$args = array(
'user_id' => 386,
'item_id' => $topic_id,
'secondary_item_id' => 0,
'component_name' => 'forums',
'component_action' => 'new_topic',
);
bp_notifications_delete_notifications_by_item_id( $args );
do_action( 'bbp_trash_topic', $topic_id );
Please ignore the args param just added a notification param to see if will delete it
but never happend
Sorry for my bad english i hope u understand me.
Hi,
WP:4.5.3 BP:2.6.0 Theme:twentyfourteen
I currently have my main page with a primary sidebar and content sidebar, I’ve set all other pages to use the full width template which seems to be working for events etc but buddypress only follows this setting on the main groups and members pages. As soon as I navigate to a group or member page it no longer uses that template is this correct behaviour?
I have tried adding an if around the get_sidebar but this just leaves the area empty which I’m guessing is a css issue.
I also tried copying the page-templates\full-width.php file to a child theme and renaming to buddypress.php but this also has the same effect of the empty space at the side.
Any advice would be greatly appreciated.
Thanks
I have used default theme now. But same issue with my client. I don’t know why this is happening.
@lagodny
Put this code in functions.php of your (child) theme.
function lagodny_document_title_separator_pipe( $separator ) {
return '|';
}
add_filter('document_title_separator', 'lagodny_document_title_separator_pipe');
I assume that you are on the WordPress 4.4+.
are you using any seventhqueen theme? if yes check this
Fatal error on a BuddyPress 2.6.0 upgrade
can u shift to default wp 2016 theme and see if the issue remains?
this would be mostly a plugin conflict imo
I am getting a fatal error after upgrade to BP 2.6.0 as well. Upgraded to WP 4.5.3 yesterday, then BP 2.6.0 today. WP_Debug reports ‘Call to undefined function bp_loggedin_user_id()’ in my custom child theme (Canvas parent theme) functions.php file. I tried the patch on bp-loader.php, r-a-y, but that was a no go for me. This is wiping out all front and back-end display on my local server. Fortunately, production is running WP 4.5.3 with BP 2.5.3, which is running fine. Still trying to debug…
Hi!
I am trying to figure out a way to only show status updates on the activity stream.
I have seen code on here at https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/, but I just don’t know where to put it in terms of the file and what line to put it in.
And it would be in the child theme as well, right?
Sorry for the 2 questions,
just a newbie with wordpress to be honest.
Appreciate the help!
WordPress Version: 4.5.3
BuddyPress Version: 2.6.0
Link to Site: BuildCup.com
I’m getting a blank page for all groups, and some topics (I can’t see a pattern yet to which topics are blank). It’s so blank that there is nothing in “view source” at all (usually when it’s a theme problem I get something there, like basic body/html tags – just not enough to build a page).
I’m getting ready to test for theme issues. But I definitely determined that a rollback to the previous version fixes the problem.
EDIT: I should mention that it happens in TWO themes: BuddyBoss and Zerif Pro. So I suspect it’s a BP or plugin problem, not theme.
I realize, however, that this could be a different problem than you have reported, so I will just watch this thread, and start a separate one if my problem persists.
I posted a topic on the Buddypress Cover Photo support forum, on wordpress.org. (Same authors as KLEO theme and support forum so easier to access). Bye !
I’m using a vibethemes theme.
Looks like the code example doesn’t work in your theme’s functions.php unless you change the hook from 'bp_groups_register_group_types' to 'bp_init'.
However, the code example from the codex works as-is if used in wp-content/plugins/bp-custom.php.
Going to file a bug report. Thanks for testing, @d8vjork!
Update: Here’s the ticket – https://buddypress.trac.wordpress.org/ticket/7138
Yes, of course. I add this code on theme functions.php file:
function bp_add_group_types() {
bp_groups_register_group_type( 'radio', array(
'labels' => array(
'name' => 'Radios',
'singular_name' => 'Radio'
)
) );
bp_groups_register_group_type( 'community', array(
'labels' => array(
'name' => 'Comunidades',
'singular_name' => 'Comunidad'
)
) );
bp_groups_register_group_type( 'team', array(
'labels' => array(
'name' => 'Equipos',
'singular_name' => 'Equipo'
)
) );
}
add_action( 'bp_groups_register_group_types', 'bp_add_group_types' );
What theme are you using? Kleo?
It looks like the Kleo theme might need to be updated for BuddyPress 2.6. I’d suggest to start by contact their support for help.
I just updated to 2.6 and all looks great except there are 2 cover photos on single member pages…any ideas? I am using Kleo theme.