Search Results for 'buddypress'
-
AuthorSearch Results
-
June 21, 2009 at 4:54 pm #47865
In reply to: BuddyPress and bbPress role map
r-a-y
KeymasterSunday morning bump!
Let me know if any of you need clarification with what I typed above.
June 21, 2009 at 4:48 pm #47864In reply to: What is the correct way to alter the admin-bar.css
r-a-y
KeymasterHey 21cdb,
This is actually getting beyond the scope of the original post!
I’m not sure what the $doing_admin_bar variable is; I’m assuming it’s a variable of BP’s that allows you to check if the admin bar is displayed or not.
If that is the case, you can try this:
function check_admin_bar() {
global $bp;
if($doing_admin_bar) add_action('wp_head', 'my_admin_bar_css', 1);
else remove_action('wp_head', 'bp_core_admin_bar_css', 1);
}
add_action('plugins_loaded','check_admin_bar',99);Try that out, not sure if it will work though!
—
Re: Admin bar logo. Simple way is to not use the apply_filter! Just directly link to your logo!
function my_adminlogo() {
echo '<a href="/"><img src="LINK TO LOGO" alt="YOUR LOGO" /></a>';
}
function my_adminbar_logo() {
//replace BP logo with your logo
remove_action( 'bp_adminbar_logo', 'bp_adminbar_logo');
add_action( 'bp_adminbar_logo', 'my_adminlogo');
}
add_action( 'bp_adminbar_logo', 'my_adminbar_logo', 1);—
To do more modifications, I highly recommend reading the codex article, “Modifying the Admin Bar” that Jeff linked to:
https://codex.buddypress.org/how-to-guides/modifying-the-buddypress-admin-bar/
It contains mostly everything you need to know!
June 21, 2009 at 12:42 pm #47859In reply to: What is the correct way to alter the admin-bar.css
21cdb
ParticipantHey r-a-y,
is it possible that you give me an example of this if-else statement?
I also do have another question. I would like to change the admin_bar_logo.gif. I was thinking about using the following code:
<?php
function bp_adminbar_custom_logo() {
global $bp;
echo '<a>root_domain . '"><img id="admin-bar-logo" src="' . apply_filters( 'bp_admin_bar_logo_src', bloginfo('template_url') . /images/admin_bar_logo.gif . '" alt="' . apply_filters( 'bp_admin_bar_logo_alt_text', __( 'BuddyPress', 'buddypress' ) ) . '" /></a>';
?>However i have problems with bloginfo(‘template_url’) which isn’t working and i don’t get the mistake, if there is one?!
June 21, 2009 at 10:46 am #47858In reply to: How to Make a Achievements thing?
Paul Wong-Gibbs
KeymasterThe approach to take in a plugin is to hook into the various WP and BP actions and then reward achievements as and when appropriate. You need to record in the database which achievements have been obtained. And write the administration and user interfaces for BuddyPress as a custom component.
I am myself working on an achievements plugin. I had hoped to release a test version today but I can’t promise that, it’s looking unlikely. But we shall see..
June 21, 2009 at 10:34 am #47855In reply to: Photo, not avatar
Paul Wong-Gibbs
KeymasterThe trick would be to use a custom “translation” – this way when you upgrade, you won’t have to manually merge lots of files.
June 21, 2009 at 12:06 am #47850In reply to: Why is Profile Picture included in extra_fields?
peterverkooijen
ParticipantI’ve split the function as follows:
function xprofile_add_signup_fields() {
global $bp_xprofile_callback, $avatar_error, $avatar_error_msg;
/* Fetch the fields needed for the signup form */
$fields = BP_XProfile_Field::get_signup_fields();
if ( $fields ) {
?>
<div id="extra-form-fields">
<?php
for ( $i = 0; $i < count($fields); $i++ ) {
if ( $bp_xprofile_callback[$i]['field_id'] == $fields[$i]->id && isset($bp_xprofile_callback[$i]['error_msg']) ) {
$css_class = ' class="error"';
} else {
$css_class = '';
}
?>
<div class="extra-field">
<?php if ( $css_class != '' ) { echo '<div class="error">' . $bp_xprofile_callback[$i]['error_msg'] . '</div>'; } ?>
<?php echo $fields[$i]->get_edit_html($bp_xprofile_callback[$i]['value']); ?>
</div>
<?php
$field_ids .= $fields[$i]->id . ",";
}
?>
</div>
<input type="hidden" name="xprofile_ids" value="<?php echo attribute_escape( $field_ids ); ?>" />
<?php
}
}
add_action( 'signup_extra_fields', 'xprofile_add_signup_fields' );
function xprofile_avatar_field() {
global $bp_xprofile_callback, $avatar_error, $avatar_error_msg;
if ( !(int) get_site_option( 'bp-disable-avatar-uploads' ) ) {
?>
<div id="avatar-form-fields">
<h3><?php _e('Profile Picture (Avatar)', 'buddypress'); ?></h3>
<p id="avatar-help-text"><?php _e('You can upload an image from your computer to use as an avatar. This avatar will appear on your profile page.', 'buddypress'); ?></p>
<?php
if ( $avatar_error ) {
$css_class = ' error';
} else {
$css_class = '';
}
?>
<div class="avatar-field<?php echo $css_class; ?>">
<?php if ( $css_class != '' ) { echo '<div class="error">' . $avatar_error_msg . '</div>'; } ?>
<label for="file"><?php _e( 'Select a file:', 'buddypress' ) ?></label>
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_site_option('fileupload_maxk') * 1024; ?>" />
<input type="hidden" name="slick_avatars_action" value="upload" />
<input type="hidden" name="action" value="slick_avatars" />
<input type="file" name="file" id="file" />
</div>
<script type="text/javascript">
jQuery(document).ready( function() {
jQuery('form#setupform').attr( 'enctype', 'multipart/form-data' );
jQuery('form#setupform').attr( 'encoding', 'multipart/form-data' );
});
</script>
</div>
<?php
}
}
add_action( 'signup_avatar_field', 'xprofile_avatar_field' );Unfortunately it doesn’t work 100%. I was able to register a test user, but first name, last name and avatar were not stored.
With the old combined function first name and last name were stored correctly, so I must have made a mistake in splitting them. Where?
Comments + suggestions appreciated!
June 20, 2009 at 8:11 pm #47846In reply to: General Settings Change Password Broken
Jeff Sayre
ParticipantDo you have any plugins other than BuddyPress installed and activated. If so, you need to distill your environment down to the lowest common denominator: Use the default BP themes that come with v1.0.1 and deactivate all other plugins.
What happens then? If you do not have any more issues, then you know it has something to do with your custom theme, one of the plugins, or some combination.
You then start going back up the ladder one step at a time. Switch the default BP themes for your custom themes. Does the problem return? It not, then is has to do with your plugins. Activate one plugin at a time until the issue returns.
Here’s a thread where Paul talks about a similar error message and plugins: https://buddypress.org/forums/topic.php?id=2802#post-15313
Let us know how your testing goes.
June 20, 2009 at 1:19 pm #47837In reply to: Swedish translation done
plrk
ParticipantBoth versions can be found at the codex page linked above, also here: https://codex.buddypress.org/translations/swedish-svenska-sv_se/
June 20, 2009 at 12:22 pm #47833In reply to: Custom Loops for Forum Topics
Windhamdavid
Participantthat someone was me – https://buddypress.org/forums/topic.php?id=2893 what I had noted is that sam’s plugins is essentially the same as bp-forums-bbpress-live.php and the only answer (at this point) is to manually construct the bp_forums_get_forum() as you’ve suggested. the problem I was incurring previously was avoiding having to use the forum ID as an argument – when set to null it returns the most recent topics. https://trac.buddypress.org/ticket/375
June 20, 2009 at 10:46 am #47831In reply to: creating plugin for buddypress
ebalchev111
ParticipantNo, i just looking for partner
June 20, 2009 at 7:38 am #47829In reply to: skeleton / customization of themes ?
Paul Wong-Gibbs
KeymasterI sometimes think we shouldn’t bundle the Skeleton theme with the BuddyPress .zip. It confuses some people.
June 20, 2009 at 3:46 am #47822In reply to: WordPress to WordPress MU
Jeff Sayre
ParticipantIf you are not in a hurry then I would recommend waiting for awhile. At some point, BuddyPress will be configured to function on single-user WordPress. I do not have a timeline for this as it has to do with merger of the WPMU codebase into WP.
June 20, 2009 at 2:30 am #47821In reply to: A new approach to usernames
3125432
InactiveJust an update. Have played around with this a bit and sometimes the sitadmin dashboard Users section that allows you to select the preferred name to be displayed publicly works and sometimes it doesn’t.
I’m thinking that this may have something to do with the Buddypress General Settings: Disable Buddypress from WordPress syncing? This is a total mystery to me what that means or is supposed to do. Anyone?
Anyway, the fix that seems to work is a MySql query that anchors from the user id # and then you could structure it to replace the current data in the value field of the wp_bp_xprofile_data table with the data from the user_login field of the wp_users table.
I have no idea how to do create that query but I am sure it is pretty easy.
– Brian
June 20, 2009 at 2:17 am #47820In reply to: WordPress to WordPress MU
r-a-y
Keymasterroseeveltrp, you’re correct!
You need WordPress MU.
BuddyPress only works with MU at this moment in time.
Some day down the road BuddyPress will support regular WordPress, but not now.
Here’s a good guide for transitioning from WordPress standard to MU:
http://welcome.totheinter.net/2008/10/04/how-to-migrate-from-wordpress-to-wordpress-mu/
It helped me!
June 20, 2009 at 12:13 am #47819Jeff Sayre
Participantwhat version of jQuery we can expect to see in the next BuddyPress update?
Well, based on the new features of WP 2.8, which WPMU will merge into its codebase, I’m going to guess jQuery 1.3.2. Perhaps Andy has a different idea.
June 19, 2009 at 10:49 pm #47816thebloghouse
ParticipantJust to add I have had a smilar no cropping issue (leaving black thumbs) and isolated the issue down to the WP Carousel plugin which iteslf resolved a previous issue I was having with an old jQuery image gallery!
I am now stuck between a rock and a hard place- have the nice image gallery rotating on the home page OR have the cropping fucntions working correctly wihtin BuddyPress

Weirdest issue with this jquery compatabilty theory is that I actually modified the WP Carousel plugin so it didn’t pull in it’s own jquery.js file so there SHOULD be no conflicts.
Will get in touch with the plugin authors but can I ask Jeff or anyone else what version of jQuery we can expect to see in the next BuddyPress update?
If I know this I can at least give the plugin developers a little more idea as to what I would like in an ideal world (after 1.2.6) but I can see some late nights getting friendly with jQuery ahead zzzz
June 19, 2009 at 9:20 pm #47813In reply to: Write [p] [br /] simblos in Site Wide Activity
Paul Wong-Gibbs
KeymasterI spoke to apeatling about this on IRC a week or two ago, and he said it was something he was aware of. You could make a ticket on the Trac just in case it is forgotten – use the same username and password for there as you do here.
June 19, 2009 at 9:16 pm #47811In reply to: Import User to BP
peterverkooijen
ParticipantI have to do something similar. Not looking forward to it…
I’ve found this plugin:
User Import for BuddyPress (All Fields)
To export member data from another WordPress installation you could use this:
Haven’t gotten to testing this yet, so let me know if it works…
June 19, 2009 at 9:16 pm #47810In reply to: Tags in sitewide activity for Forum Topic.
Paul Wong-Gibbs
KeymasterYou do not need to start another thread about this – you’ve posted in one other. I’m going to close this thread so we keep the discussion in one place.
June 19, 2009 at 9:09 pm #47807In reply to: Bug in Groups page.
Paul Wong-Gibbs
KeymasterHi slavd
Thanks for the post. This bug was fixed in the SVN trunk a while ago, so I’m going to mark this post as resolved. Thank you very much for taking the time to post here!
June 19, 2009 at 9:05 pm #47806In reply to: Ning.com Migration Tool (NMT)
3215850
Inactive+1
I’ve been running a ning network and wordpress blog in parallel. Slightly integrated by way off rss feeds, but nowhere near enough. Likely to jump onto buddypress at some point.
June 19, 2009 at 6:50 pm #47803In reply to: Avatar problem when the same image is downloaded
glycoknob
MemberI can confirm this problem – I created a ticket here: https://trac.buddypress.org/ticket/799 – It looks like the unlink code don’t check wether the Images are Identical.
June 19, 2009 at 6:18 pm #47799In reply to: Help! 2nd Full system crash in two days!
3125432
InactiveJeff,
Thank you for taking the time to try and help us! This may seem off topic but every person on this board should take a moment to say “Thank You!” to Burt and Jeff and Andy, and the countless others who work to help solve problems.
This is a shout out to each and all; could you check your db’s using phpadmin or whatever you use to examine your wordpress/buddypress database and tell me what ‘user_status’ setting you see for the admin, typically ID#1?
Thanks,
Brian
June 19, 2009 at 5:47 pm #47793In reply to: BuddyPress Kills WordPress Themes
gwsa
ParticipantBurt & Mike –
Thanks for the prompt reply. Tried upgrading both manually and with the built-in plugin install function. Also tried clearing out the BP tables from the database (the site has not launched yet) hoping that would kick things into shape.
2.7.1 was the first and only version of WPMU installed, upgraded BP from 1.0 to 1.0.1 and that’s when the themes died. Also, no hyphens in the themes’ directories.
Went through the code and was able to see what you were talking about in terms of setting the theme_root variable to /bp-themes/, but any idea why it would be doing so outside of member pages?
If the plugin is active, if I go to /wpmu-themes.php or /wpmu-blogs.php? in the WPMU backend, to activate themes all I see are the BP themes. Correct me if I’m wrong, but before it would also show me themes in the /themes/ directory as well. Is this an intended function? I’d prefer not to move my non BP themes into the bp-themes/ as disabling BP would then kill the site.
Any help you could provide would be greatly appreciated.
– Ben
(ben at gwstudentassociation dot com)
June 19, 2009 at 5:39 pm #47792In reply to: creating plugin for buddypress
Jeff Sayre
ParticipantIf you are offering paid work, you should post your request here: https://buddypress.org/groups/buddypress-job-board
-
AuthorSearch Results