Forum Replies Created
-
You are fine to delete them, but user activity streams will be lost.
In reply to: buddypress + p2 themeUse the latest trunk, I believe this was a bug I fixed.
In reply to: search ajax not working?Update to the latest and this should be fixed.
In reply to: sitewide css affecting other non buddypress themessite-wide.css loads on all pages regardless of the theme. It’s only useful if you have a consistent theme for the site. Don’t use it otherwise.
In reply to: bp_get_field_data no longer workingjust use:
bp_loggedin_user_id()
bp_displayed_user_id()In reply to: Test TopicTest reply, just ignore this please, testing upgrades.
In reply to: Friends-Activity on MainpageDon’t edit the main files, it’s a bad idea. Use the template tags:
<?php if ( bp_has_activities( 'type=friends&user_id=' . bp_loggedin_user_id() . '&max=30' ) ) : ?>
<ul id="activity-list">
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<li class="<?php bp_activity_css_class() ?>">
<?php bp_activity_content() ?>
</li>
<?php endwhile; ?>
</ul>
<?php endif;?>In reply to: bp_get_field_data no longer workingTry to use the passthrough functions:
xprofile_get_field_data( $field_name, $user_id );
xprofile_set_field_data( $field_name, $user_id, $value );In reply to: Not found Members directoryFollow the upgrade instructions:
In reply to: How to call in plugins in page templateIn the latest trunk (and RC2 coming out soon) you can use these template tags to render activity feeds:
<?php if ( bp_has_activities( 'type=personal&max=30' ) ) : ?>
<ul id="activity-list">
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<li class="<?php bp_activity_css_class() ?>">
<?php bp_activity_content() ?>
</li>
<?php endwhile; ?>
</ul>
<?php endif;?>‘type’ can be personal, sitewide, or friends. You can also pass a ‘user_id’ value if you wish. Otherwise it will use the ‘displayed_user’ id.
In reply to: set default Role of new userI did this on this site, and like this:
function register_user_as_contributor($username) {
global $bp, $wpdb;
$user_id = bp_core_get_userid_from_user_login( $username );
if ( !$user_id )
return false;
$role = maybe_unserialize( get_usermeta( $user_id, $wpdb->base_prefix . '1_capabilities' ) );
if ( is_array($role) )
$role = $role[0];
if ( !$role || '' == $role || 'subscriber' == $role ) {
$role['contributor'] = 1;
update_usermeta( $user_id, $wpdb->base_prefix . '1_capabilities', $role );
update_usermeta( $user_id, 'primary_blog', 1 );
update_usermeta( $user_id, 'source_domain', 'buddypress.org' );
}
}
add_action( 'wp_login', 'register_user_as_contributor' );I’m sure there is another action you can use so it doesn’t run on every login, but this works.
In reply to: WordPress MU 2.7.1 beta 2Gpo1: Yes, that’s the reason for waiting on MU 2.7.1.
These are the supported languages:
Having thought about it more – my vote would be another blog on this site.
For a few reasons:
1. People can use the same login, and therefore comment without being spammed or moderated.
2. We can promote regular BuddyPress community members to \”snippit creator\” status.
3. We can track all the snippets in activity streams.
4. We get nice buddypress.org permalinks for every snippet.
5. RSS.
In reply to: Launch Date – Official Update?RC-2 will come out as soon as 2.7.1 is released. I’ll release it via the automatic plugin download feature built into WordPress – as well as a zip.
As long as there are no major problems found (none for a while in trac) I’ll update to 1.0, and that will then test the auto-update procedure.
In reply to: How to modify buddypress browser titleUpgrade to the latest trunk, or wait until RC2 comes out, and you will get the nice titles.
In reply to: bp_login_bar pointing to wp-signup.php ?You must include the register.php file in your theme if you want it to point to /register/, copy it from the default home theme.
In reply to: Xprofile: Just show first Letter of last nameIf you’ve added a “last name” field, then just add instructions for the field to say “Only enter the first letter of your last name”. Simple as that isn’t it?
In reply to: Temporal error with plugin.php on new blogsThis has been fixed in a recent build of 2.7 branch of WPMU.
In reply to: Add fields to wp_usersThat is exactly what usermeta is for. You should take a look at the WordPress codex for this sort of thing, it will help you a great deal.
In reply to: Opinions on RC1Pretty mucH everything in that article has been addressed in RC2. Not really relevant anymore. Closing this because its just one guys opinion and we don’t need to start a heated discussion on things that are now old news.
In reply to: Using Proloque Theme as Home themeFollow these instructions, you will need to update WPMU too.
In reply to: Using Proloque Theme as Home themeIf you use the latest trunk it will work fine.
In reply to: Mediatemple DV (Base) question…256mb ram is not a lot – but it will probably still work ok.
In reply to: BuddyPress in /plugins/ not /mu-plugins/ from r1303+Thanks Robert, I have updated the instructions.