New answers tagged

0

You don't need this global $bp; Try passing an array: $id = 1; $args = array( 'group_id' => $id, 'exclude_admins_mods' => false); if ( bp_group_has_members( $args ) ) :


0

Facebook has changed how the sharer.php works, as Ibrahim Faour replies to the bug filed with Facebook. The sharer will no longer accept custom parameters and facebook will pull the information that is being displayed in the preview the same way that it would appear on facebook as a post, from the url OG meta tags. Try this (via Javascript in ...


0

This is in my single.php: <div class="sp-article-author-box-bg"> <div class="sp-article-author-box"> <span class="spbox-right"> <div class="spbox-bio"> <?php if ( $string = xprofile_get_field_data( 'About', get_the_author_meta('ID') ) ) { echo ...


1

To just answer this question.. Hope it's okay to pull this back up ^^ <div class="profile-bio"> <!-- Profile user info bio text --> <?php if ( $string = xprofile_get_field_data( 'About', get_the_author_meta('ID') ) ) { echo '<div class="author-about">'; ...


0

Here's an as of yet incomplete listing of what files go where. I'll update it as I get more into theming buddypress sites. The official 'hints' page can be found here.. https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/ If you would prefer a basic guide to familiarise you with the template files and how you can make them work ...


0

A. in the template file only.. in message.php replace <?php bp_the_thread_message_sender_name(); ?> with <?php $userID = bp_loggedin_user_id(); $senderID = bp_get_the_thread_message_sender_id(); if ($userID == $senderID) : ?> You wrote: <?php else : ?> <?php bp_the_thread_message_sender_name(); ?> <?php endif; ?> ...



Top 50 recent answers are included