Search Results for 'buddypress'
-
AuthorSearch Results
-
April 16, 2010 at 10:06 pm #73853
In reply to: [New Plugin] BuddyPress Group Forum Extras
kriskl
Participantthanks rich for reply,
well I was as admin a member of 61 groups/forums
but only 21 showed up,
for some strange reason which is investigated, we had to disable the plugin completely, something kept crashing the site

and forum index is a suspect

if that was a case, you may hear from my developers on the forums
as they are trying to figure it out
April 16, 2010 at 9:46 pm #73851In reply to: BuddyPress and WordPress 3.0
Ron Rennick
ParticipantFolks,
The issue here with 3.0 is that if an existing WP 2.9.2 install with uploaded media upgrades to 3.0 and enables the network the blog option for the upload_path can’t be changed to the blogs.dir folder because the existing media becomes inaccessible.
For now, if you are looking to go to multiple blogs after install, then you should install MU 2.9.2 and upgrade that to 3.0 instead of installing WP 2..9.2.
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 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 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!
April 16, 2010 at 2:39 pm #73803In reply to: Trying to alter layout of bp_activity_action()
Boone Gorges
KeymasterIt’s probably best to take a multi-faceted approach.
Instead of changing the way that content appears on the way out (by the time you call the global $activities_template, the content is already written in the db), you might consider manipulating it on the way in. Less overhead that way. For group related stuff like forum posts, open up bp-groups.php and search for uses of the function groups_record_activity. You’ll notice that the arguments for this function are almost always filtered. For instance, in the function groups_new_group_forum_post, you can modify the way that the activity action is displayed – you might do something like this in your theme’s functions.php:
function my_format_activity_action($activity_action, $post_id, $post_text, &$topic) {
$action = $post_text->topic_poster_name . " said:";
return $action;
}
add_filter( 'groups_activity_new_forum_topic_action', 'my_format_activity_action', 1, 4 );That’s a lot easier than after-the-fact string manipulation, both for you as a developer and for the system that has to do the processing. Fish around in the files for other places where apply_filters appears – you can build functions like the one I lay out above for any filtered output.
As far as moving things around and putting them in different orders, you’ll definitely want to look at the activity/entry.php template file. That’s where all the markup appears, so any changes (like ordering and appearance) should happen there and in CSS.
And if you just want to change the wording here and there, you might also consider using language files (https://codex.buddypress.org/how-to-guides/customizing-labels-messages-and-urls/). It’s a relatively future-proof way to do customization.
-
AuthorSearch Results