@la-lena it is probably worth posting in the plugin’s support forum. That way one of the staff at rtCamp will be able to respond. They’ve just released v3.0 (is a bit buggy at the moment but their developers release bug fixes super quick)
http://rtcamp.com/groups/buddypress-media/forum/
@modemlooper is also a top dev, try his plugin too.
Actually, yeah. It had fixed itself for a bit but I’m getting the same thing as @bphelp. It also shows me as logged out when viewing the topic list, but it’s fine when reading topics.
Actually clicking anything in the “My Account” menu is now redirecting to the buddypress.org home page. Strange happenings!
There is other things out of wack like clicking notifications, and viewing profiles just takes you to buddypress.org homepage. At least that is what it is doing on my end!
Still happening for me here.
Intermittent and inconsistent – glad it’s not my bug assignment.
Still waiting on an answer.
These forums are tied into WP.org forums and there was a server snafu maybe that was issue.
And freshly updated š Thank you @bphelp!
I use custom post types on my site. I would like to notify the author of the post via the buddypress notifications menu, everytime someone comments on his/her custom post type.
Any snippets available for this?
@espellcaste
do you have some news?
I have been able to take the notifications like this :
// notifications
function my_bp_adminbar_notifications_menu() {
global $bp;
if ( !is_user_logged_in() )
return false;
echo '<li id="menu-item-9991" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-9991 parent">';
// _e( 'Alerts', 'buddypress' );
if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>
<a href="#"><span id="notifs_top"><?php echo count( $notifications ) ?></span></a>
<?php
}
echo '</a>';
echo '<ul class="sub-menu">';
if ( $notifications ) {
$counter = 0;
for ( $i = 0; $i < count($notifications); $i++ ) {
$alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
<li<?php echo $alt ?>><?php echo $notifications[$i] ?></li>
<?php $counter++;
}
} else { ?>
<li><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'You have no new alerts.', 'buddypress' ); ?></a></li>
<?php
}
echo '</ul>';
echo '</li>';
}
This was happening to me for the longest time on here and bbPress.org, but it seems to have fixed itself now. It was always fine on WordPress.org.
@asdevargas
I removed the github version in favor of using the version in the official WP repository which has been improved. You can get it here:
https://wordpress.org/plugins/private-community-for-bp-lite/
Hi! I tried with the plugin indicated by @chouf1 https://wordpress.org/extend/plugins/network-privacy/ but it doesn’t work properly (it let you see groups and members!) and the link provided by @bphelp doesn’t work š
Is there any other plugin option?
Thanks modemlooper that was a great help…
However i still get all this loaded into the head?
<link rel='stylesheet' id='bp-legacy-css-css' href='http://tempwp/wp-content/plugins/buddypress/bp-templates/bp-legacy/css/buddypress.css?ver=1.7.3' type='text/css' media='screen' />
<script type="text/javascript">var ajaxurl = 'http://tempwp/wp-admin/admin-ajax.php';</script>
<link rel="alternate" type="application/rss+xml" title="Template WP | Site Wide Activity RSS Feed" href="http://tempwp/activity/feed/" />
<script type="text/javascript" charset="utf-8">
/* <![CDATA[ */
var ajaxurl = 'http://tempwp/wp-admin/admin-ajax.php';
/* ]]> */
</script>
<link rel='canonical' href='http://tempwp/members/' />
<script type="text/javascript">
jQuery( document ).ready( function() {
jQuery( 'a.confirm').click( function() {
if ( confirm( 'Are you sure?' ) )
return true; else return false;
});
});
</script>
Wow! Great work. A great example of what BuddyPress can really do!
I’m curious, what other plugins did you use when building the site? I’m guessing Advanced Custom Fields is one of them. Did you also create custom post types?
I’m also building a similar recruiting site and I’d like to build member profiles just like you did.
I would like to know if it is possible to replace someone’s home/activity page with a specific group’s activity page in buddypress (each user could have a different group activity page as their home page). Currently, my website is centered around different colleges and so it would be greatly helpful if it was possible to change each users home/activity page to the activity page of their college’s group.
I’m not a developer, more designer, so if this is possible it would be greatly appreciated if it could be explained in very basic terms.
Thank you!
some weird cache going on.
Just posting back with the solution in case it helps anyone else. This function will do it:
xprofile_get_field_data('Profile',$u_id);
In my case it’ll be:
<?php if ( xprofile_get_field_data( 'Profile', $user_ID ) ) : ?>
<?php echo xprofile_get_field_data( 'Profile', $user_ID ); ?>
<?php endif; ?>
Thanks to chifliiiii on WordPress Answers and to @shanebp.
Would you be willing to share it? The plugin with your changes… I’m desperate. Thanks!
chriswiedmann@yahoo.com
The plugin is a simple calendar, but I made āāseveral changes
Which plugin? Please help! Ive been looking for weeks to fins a way to give users their own personal calendars.
Iām trying to modify the various āmost/recently activeā topics/documents/etc widgets to display content from a specific group. It seems like it should be pretty straightforward to implement some kind of conditional statement i.e. āif document is associated with this group, display, if not, do nothing.ā Currently Iām looking at the BuddyPress Docs Wiki āMost Active Wiki Pagesā widget, mirrored below.
Iām familiar with the bp_docs_get_associated_group_id() function, and looking at the bp_docs_has_docs() function, there appears to be some sort of built-in $d_group_id identifier, but I canāt figure out how to use them in this context. I have a Java background and this is my first foray into PHP. Any help or pointers about how to implement this is appreciated. I first tried to put a conditional in around line 55, but found myself lost regarding how, or on what object to call any kind of get_doc_id function.
Thanks.
/**
* Most Active Wiki Pages
*/
class BPDW_Most_Active_Widget extends WP_Widget {
public function __construct() {
parent::__construct(
'bpdw_most_active',
__( '(Wiki) Most Active Pages', 'bp-docs-wiki' ),
array(
'description' => __( 'A list of most active wiki pages.', 'bp-docs-wiki' )
)
);
}
public function form( $instance ) {
$defaults = array(
'title' => __( 'Most Active', 'bp-docs-wiki' ),
'max_pages' => 5,
);
$instance = wp_parse_args( (array) $instance, $defaults );
$title = strip_tags( $instance['title'] );
$max_pages = strip_tags( $instance['max_pages'] );
?>
<p><label for="<?php echo $this->get_field_id( 'title' ) ?>"><?php _e( 'Title:', 'bp-docs-wiki' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" style="width: 100%" /></label></p>
<p><label for="<?php echo $this->get_field_id( 'max_pages' ) ?>"><?php _e('Number of posts to show:', 'bp-docs-wiki'); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'max_pages' ); ?>" name="<?php echo $this->get_field_name( 'max_pages' ); ?>" type="text" value="<?php echo esc_attr( $max_pages ); ?>" style="width: 30%" /></label></p>
<?php
}
public function update( $new_instance, $old_instance ) {
$instance = $old_instance;
$instance['title'] = strip_tags( $new_instance['title'] );
$instance['max_pages'] = strip_tags( $new_instance['max_members'] );
return $new_instance;
}
public function widget( $args, $instance ) {
wp_enqueue_style( 'bp-docs-wiki-home', plugins_url() . '/buddypress-docs-wiki/wiki-home.css' );
extract( $args );
echo $before_widget;
echo $before_title
. $instance['title']
. $after_title;
$docs_args = array(
'posts_per_page' => $instance['max_pages'],
'orderby' => 'most_active',
);
$counter = 2; // Start with a weird number so as not to break the modulo
bp_docs_reset_query();
if ( bp_docs_has_docs( $docs_args ) ) {
echo '<ul>';
while ( bp_docs_has_docs() ) {
bp_docs_the_doc();
$zebra = $counter % 2 ? 'odd' : 'even';
echo '<li class="' . $zebra . '">';
echo '<div class="wiki-page-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></div>';
echo '<div class="wiki-page-excerpt">' . get_the_excerpt() . '</div>';
echo '</li>';
$counter++;
}
echo '</ul>';
}
echo $after_widget;
}
}
do you want to edit css or just get rid of it all together? You can add blank files. Adding these files will override bp’s files. If they are blank nothing gets loaded:
yourtheme/css/buddypress.css
yourtheme/js/buddypress.js
Or try and remove hook action:
remove_action(‘bp_enqueue_styles’);
remove_action(‘bp_enqueue_scripts’);
I am trying something similar with gravity forms, I am trying to pre-populate gravity forms fields with buddypress profile data fields and I can’t get it work too, I am using something like this in functions.php if it helps:
// Buddypress pre-populate phone
add_filter("form_field_value_phone", "populate_phone");
function populate_phone() {
$current_user = wp_get_current_user();
$current_user_id = $current_user->ID;
$phone = bp_profile_field_data( array('user_id'=>$current_user_id,'field'=>'phone' ));
return $phone;
}
yes, You will only need 3 plugins in case that Achievements plugin supports Custom Post Types:
1.Gravity Forms plugin
2.Gravity Forms + Custom Post Types plugin
3.Achievements plugin