Search Results for 'buddypress'
-
AuthorSearch Results
-
April 16, 2010 at 9:21 pm #10692
Topic: Admin to edit users profiles
in forum How-to & Troubleshootinggino24
MemberI have buddypress setup with extra registration fields where new members can enter additional fields so it shows in their profiles.
Is there a plugin for admin that will allow admin to edit members/users profiles or make notes about the users?
Thanks
April 16, 2010 at 8:42 pm #73847Gianfranco
ParticipantI tried this, doesn’t print anything neaither:
<ul id="user-menu">
<li><a href="<?php echo bp_loggedin_user_domain() ?>/profile/edit/">My profile</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/messages/">My messages</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/groups/">My groups</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/friends/">My friends</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/photos/">My photos</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/settings/">Settings</a></li>
<?php function my_bp_adminbar_notifications_menu() {
global $bp;
if ( !is_user_logged_in() )
return false;
echo '<li id="bp-adminbar-notifications-menu"><a href="' . $bp->loggedin_user->domain . '">';
_e( 'Notifications', 'buddypress' );
if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>
<span><?php echo count($notifications) ?></span>
<?php
}
echo '</a>';
echo '<ul>';
if ( $notifications ) { ?>
<?php $counter = 0; ?>
<?php for ( $i = 0; $i < count($notifications); $i++ ) { ?>
<?php $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
<li<?php echo $alt ?>><?php echo $notifications[$i] ?></li>
<?php $counter++; ?>
<?php } ?>
<?php } else { ?>
<li><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>
<?php
}
echo '</ul>';
echo '</li>';
}
?>
<?php if( function_exists('my_bp_adminbar_notifications_menu') ) my_bp_adminbar_notifications_menu(); ?>
</ul>Is anything in there correct?
April 16, 2010 at 8:40 pm #73846In reply to: Two Websites, One BuddyPress Community?
emiline220
MemberI have this same question but that thread is about something that’s a lot more complicated than I want. Basically I have a WP site that has a large community. I want to add separate subdomain that has it’s own WP install with buddypress and I want people to be able to log into both sites with the same info.
At the top of that thread someone said just to assign custom user and user_meta tables. I’ve already tried that and when I try to log into the subdomain with a root site username, I get a message that says “Cheatin’ eh?” or “You don’t have permission to do that.” So what am I doing wrong? Does the subdomain need to be WPMU instead of regular WP?
April 16, 2010 at 7:37 pm #73841In reply to: [New Plugin] BuddyPress Group Forum Extras
3sixty
ParticipantI think rich is a little busy right now. I’ll try turning this into a plugin now. Wish me luck.
April 16, 2010 at 7:37 pm #73840In reply to: Plugin Release: BuddyPress Group Wikis
lsddesign
ParticipantWhen will this be available for normal WP installs
?Cheers,
Aron
April 16, 2010 at 7:36 pm #73839In reply to: BBpress existing integration
Jeff Sayre
ParticipantRead this thread and visit the single link in it:
April 16, 2010 at 7:36 pm #73838In reply to: Buddypress iPhone theme update
lsddesign
ParticipantLooks awesome man! For sure we’re gonna use this when it comes out!
Can’t wait!
Cheers,
Aron
PS: if you need any design help, contact me @ aron@zipyourmix.com
April 16, 2010 at 7:29 pm #10691Topic: BBpress existing integration
in group forum Third Party Plugins6002845
InactiveI don’t understand the integration between buddypress and bbpress.
I choose existing bbpress forum, configure everything ok, but when I go to mysite.com/forums the only topics that show up are the new ones. How to really integrate an existing bbpress installation?
So the old topics and categories can show up on buddpress…
April 16, 2010 at 6:55 pm #73834Gianfranco
Participant@r-a-y I tried this:
<?php function my_bp_adminbar_notifications_menu() {
global $bp;
if ( !is_user_logged_in() )
return false;
echo '<li id="bp-adminbar-notifications-menu"><a href="' . $bp->loggedin_user->domain . '">';
_e( 'Notifications', 'buddypress' );
if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>
<span><?php echo count($notifications) ?></span>
<?php
}
echo '</a>';
echo '<ul>';
if ( $notifications ) { ?>
<?php $counter = 0; ?>
<?php for ( $i = 0; $i < count($notifications); $i++ ) { ?>
<?php $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
<li<?php echo $alt ?>><?php echo $notifications[$i] ?></li>
<?php $counter++; ?>
<?php } ?>
<?php } else { ?>
<li><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>
<?php
}
echo '</ul>';
echo '</li>';
}
?>Which is the same funtion except for the name “my_bp_adminbar_notifications_menu”.
It doesn’t print anything.
Probably something with the “bp_core_get_notifications_for_user” that is desabled because of my desabling the default Admin bar?
I admit that I php is not my strong point at all.
April 16, 2010 at 6:50 pm #73831In reply to: Skeleton theme – editings ‘settings page’
Archie Webmaker
ParticipantCan anyone help me out to edit the profile setting page in Buddypress1.2.3
April 16, 2010 at 6:13 pm #73827In reply to: BuddyPress-Links 0.3 FINAL is here at last
MrMaz
Participant@agrunder
Already done https://buddypress.org/forums/topic/buddypress-links-04x-releases-and-support
April 16, 2010 at 6:07 pm #73824In reply to: BuddyPress-Links 0.3 FINAL is here at last
agrundner
Member@MrMaz Go for it. Release 0.4 with Group Links (not sure what re-links are). As for the group activity stream integration… I think we all can wait until it’s ready.
FYI, I’d be happy to test the plugin you’ve got on my non-public development site.
April 16, 2010 at 5:51 pm #73823Gianfranco
ParticipantI’ve put the function right in the ul, like so:
<ul id="user-menu">
<li><a href="<?php echo bp_loggedin_user_domain() ?>/profile/edit/">My profile</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/messages/">My messages</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/groups/">My groups</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/friends/">My friends</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/photos/">My photos</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/settings/">Settings</a></li>
<li>| <a id="logout" href="<?php echo wp_logout_url( get_option('home') ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a></li>
<?php bp_adminbar_notifications_menu(); ?>
</ul>…to see waht it produces. It just breaks my layout. The whole ul disapeears and the layout after that is broken.
In Firebug I can see this error: Call to undefined function bp_adminbar_notifications_menu()
Mmm… I got BP Template Pack installed, if that makes it a hint of any kind.
April 16, 2010 at 5:46 pm #73822In reply to: [New Plugin] BuddyPress Group Forum Extras
modemlooper
Moderator@etiviti (rich!)
https://buddypress.org/forums/topic/buddypress-forum-move-topic-001
April 16, 2010 at 5:33 pm #73821Paul Wong-Gibbs
Keymaster(d) And when you come across a technical issue you can’t resolve, chat up a sexy BuddyPress developer on #buddypress-dev on irc.freenode.
April 16, 2010 at 5:06 pm #106883sixty
ParticipantSo far, every single spam-fighting technique I have tried for BP has failed. My next step is to modify Invisible Defender to work better with BuddyPress. If you use Invisible Defender in an attempt to stop BP spam/splog registrations, you may want to add these lines to your invisible-defender.php file:
//Protect Buddypress register form
add_action( 'bp_before_registration_submit_buttons', array( &$this, 'add_hidden_fields' ) );
add_action( 'bp_signup_validate', array( &$this, 'bp_registration' ), 10, 0 );Add them right above this:
//Protect Buddypress register formThese modifications come courtesy of Chris Wright: http://bcbc.co.uk/mu/blog/2009/12/11/wordpress-registration-spam/
I’m trying to stay positive and constructive here, but my BuddyPress install is so overrun with spam that it’s essentially becoming unusable.
April 16, 2010 at 4:33 pm #73816In reply to: How to overwrite a function?
Jeff Sayre
Participant@heini-
Your basic idea is correct. The issue is the order in which each action function hooked to the bp_setup_nav action event is being triggered. Let’s look at the code you have in bp-custom.php.
<php
function my_groups_setup_nav() {
[the whole function code]
}
remove_action('bp_setup_nav', 'groups_setup_nav');
add_action( 'bp_setup_nav', 'my_groups_setup_nav' );
?>This fails because your custom code in bp-custom.php is executed before the code in bp-groups.php is executed. So, you are calling to remove an action that has not yet be registered by WordPress.
I’m almost finished with an article about the intricacies of WordPress’ action and filter functions, but here is a brief explanation to try to shed some light on the issue.
Each action and filter event when triggered by a do_action or apply_filters call sends execution to the appropriate do_action or apply_filters function in /wp-includes/plugin.php. These functions do several things, one of which is querying a very large array that contains all of the added filter functions and action functions. This array gets populated by the actions of the add_filter and add_action calls.
To avoid getting too long winded, as each file gets loaded, any and all add_action and add_filter calls that are directly executable at the time, get triggered which builds this big array. This array is then used by the do_action and apply_filters functions to determine the sequence in which each added action of filter will be executed.
You can read my article when it is ready for a much longer but clearer explanation.
With that briefly described, the piece of information that applies to your situation is that when the action event for bp_setup_nav is triggered, via the do_action( ‘bp_setup_nav’ ) call on line 2025 in bp-core.php, the do_action function starts processing each action function that was “added” to it in the order in which it was added (with an important exception). This means that for your custom function my_groups_setup_nav to work, it must remove the action function in the array discussed above so that when the bp_setup_nav action event is triggered it uses your action function instead of the one added by the add_action(‘bp_setup_nav’, ‘groups_setup_nav’) call.
So, what you need to do is trigger your remove and add action calls in the proper sequence–after the action function that creates the groups navigation menus has been added to the filter array but before the bp_setup_nav action event is triggered. I realize this may be hard to understand.
This is what you need to do instead:
<?php function my_groups_setup_nav() {
/* Remove the added action from the array of functions that get run
* when the action event for bp_setup_nav is triggered
*/
remove_action('bp_setup_nav', 'groups_setup_nav');
// Then replace the removed function with your custom content
[the whole function code]
}
add_action( 'plugins_loaded', 'my_groups_setup_nav' );
?>A final bit of clarification. This is what happens in your current custom function:
1. As soon as BuddyPress is initialized, it looks to see if bp-custom.php exists. If it does, it loads it.
2. This will cause your remove_action call to be fired.
3. But the corresponding action has not yet been added to the very large filter array since bp-groups.php has not yet been loaded.
4. So, nothing happens as there is nothing to remove.
5. bp-groups.php eventually gets loaded and at that point the add_action(‘bp_setup_nav’, ‘groups_setup_nav’) call is fired, resulting in the action function that you were trying to remove getting added to the filter array but after the fact.
6. Eventually the bp_setup_nav action event is triggered.
7. When that happens, the first function hooked to it (added to it) is your custom function. It now gets triggered.
8. All other action functions hooked to the bp_setup_nav action event get triggered one by one including the groups_setup_nav function–the one you had tried to remove in step 2.
9. You have a mess with two duplicate functions doing the same thing.
April 16, 2010 at 4:15 pm #73814In reply to: BuddyPress-Links 0.4.x Releases and Support
5986155
Inactiveno probs thanks! :o)
April 16, 2010 at 4:13 pm #73813In reply to: BuddyPress-Links 0.4.x Releases and Support
MrMaz
Participantput this in wp-config.php
define( ‘BP_LINKS_SLUG’, ‘yourslug’ );
A warning. If you already have activity in the activity stream for links, they will have the old slug.
April 16, 2010 at 3:58 pm #73812In reply to: BuddyPress-Links 0.4.x Releases and Support
5986155
InactiveHi MrMAz
Ive upgraded – how do you change the component slug?
Cheers!
April 16, 2010 at 3:17 pm #73810In reply to: Seo for Buddypress 1.0 beta
modemlooper
Moderator%%forumtopictitle%% still does not work right.
April 16, 2010 at 3:04 pm #73809In reply to: Trying to alter layout of bp_activity_action()
rich! @ etiviti
ParticipantApril 16, 2010 at 2:53 pm #73806Boone Gorges
KeymasterBuddyPress is still young and so it doesn’t have the same kind of rich development guides as the much more mature (and widely-used) WordPress.
Since BP is a WP plugin, the basics of BP plugin development are the same as they are for WP. The system of hooks and filters is exactly the same (though of course the hooks themselves are different).
At this point in the BP project, I’ve found that the best ways to get started with plugin development are (a) to find existing BP plugins that do something similar to what you’re trying to do, and to learn by dissecting them; (b) to look through official resources like the ones Jeff posted above; and (c) to search through BP codebase itself, where I think you’ll find that many of the functions you need are quite well documented.
April 16, 2010 at 2:51 pm #73805In reply to: BuddyPress and WordPress 3.0
ajohnson
MemberI am running it off a sub-folder in WP 3.0. I have been for a long time but the most recent upgrade broke my avatars. It looks as if the image uploads correctly for me, but doesn’t pull it in to crop. The path it try’s is:
http://www.website.com/sub-folder-blog/blogs.dir/2/files/avatars/1/avatar.jpg
when it should be
http://www.website.com/wp-content/blogs.dir/2/files/avatars/1/avatar.jpg
Any ideas on what I should try to change? I’ve already tried:
if ( !$path = get_option( 'upload_path' ) )
$path = WP_CONTENT_DIR . '/blogs.dir';
else
$path = ABSPATH . $path;
Thanks!
April 16, 2010 at 2:45 pm #73804In reply to: Subfolder now Root .com Folder
Tmort
ParticipantWell I just tested that out, and it didn’t work. Its like theres a database entry exclusive to buddypress that says “You live at domain.com/folder”. I’m not sure where or why.
I’d like to ask the community: Does buddypress interact well with wordpress’ feature where the core files live in a folder of your domain? Maybe that is my issue?
Thanks for the help!
-
AuthorSearch Results