Search Results for 'buddypress'
-
AuthorSearch Results
-
August 29, 2009 at 5:34 pm #51735
In reply to: Function not registered and cannot be accessed
Jeff Sayre
ParticipantAre you using the BuddyPress Skeleton Component as the framework with which to code your plugin? If not, you should download it and see how the example code that adds an admin page to WPMU’s backend is written.
The example code is in bp-example-admin.php.
August 29, 2009 at 4:56 pm #51732In reply to: Help with Upgrading my Site
r-a-y
KeymasterIf you have bbPress installed, you should double-check to see if your BP group forums work.
Post in bbPress in a BP group forum and see if that post appears in BuddyPress and vice versa.
Also if you used any BP widgets, remove and re-add them since the widgets API in WPMU 2.8 changed.
Lastly, check to see if your 3rd-party BP plugins work (if you have any installed).
r-a-y
KeymasterCheck the trac… but be careful which patches you apply – especially those applicable to groups.
You’ve been warned!
August 29, 2009 at 3:31 pm #51728In reply to: Help with Upgrading my Site
Kunal17
ParticipantIs there a series of tests that we can perform to make sure that the WPMU+Buddypress upgrades have completed without any damages? WordPress says all upgrades went off well but I am still concerned about finding problems later.
August 29, 2009 at 9:48 am #51718In reply to: Content only in the first post… ?
wabugi
ParticipantI know this post is 8 months old. But maybe there are still people looking for the answer. And here is is:
open wp-content/plugins/buddypress/bp-blogs/bp-blogs-widgets.php
Look for these lines:
<?php if ( !$counter ) : ?>
<div class=”item-content”><?php echo bp_create_excerpt($post->post_content) ?></div>
<?php endif; ?>
Now remove the loop. It should now look like this:
<div class=”item-content”><?php echo bp_create_excerpt($post->post_content) ?></div>
The widget will now display an exerpt of every blog post.
August 29, 2009 at 4:45 am #51714In reply to: P2 Theme As The Wire/Wall?
John James Jacoby
KeymasterWhen it’s ready, it’ll be available through the BuddyPress/WordPress theme repo, so everyone can have at it.
August 28, 2009 at 10:34 pm #51705In reply to: P2 Theme As The Wire/Wall?
Jeremy Winter
ParticipantI found the P2 Theme works really well with BuddyPress, it took a lot of editing to fix up the member pages, but all in all , it was pretty easy project.
I am using P2 across my entire site here at http://talksounders.com
August 28, 2009 at 8:48 pm #51704In reply to: P2 Theme As The Wire/Wall?
Korhan Ekinci
Participant@Erich73, Actually members do have their own blogs, I just created another blog at “wall.mysite.com”. I used the bp-community-blogs plugin, so that members of my bp site automatically became authors of “wall.mysite.com” blog. This blog uses P2 theme, so it does actually look like wall or wire whatever you want to name it. They can write infinite number of threads.
If you wish you can disable blog creation feature for your members from the admin backend, it does not matter.
@mikhailjon, to emove the blog authors link from the admin bar, go to:
wp-content/plugins/buddypress/bp-core/bp-core-adminbar.php
Open bp-core-adminbar.php file and delete these lines:
// **** "Blog Authors" Menu (visible when not logged in) ********
function bp_adminbar_authors_menu() {
global $current_blog;
if ( $current_blog->blog_id > 1 ) {
$authors = get_users_of_blog();
if ( is_array( $authors ) ) {
/* This is a blog, render a menu with links to all authors */
echo '<li id="bp-adminbar-authors-menu"><a href="/">';
_e('Blog Authors', 'buddypress');
echo '</a>';
echo '<ul class="author-list">';
foreach( $authors as $author ) {
$author = new BP_Core_User( $author->user_id );
echo '<li>';
echo '<a href="' . $author->user_url . '">';
echo $author->avatar_mini;
echo ' ' . $author->fullname;
echo '<span class="activity">' . $author->last_active . '</span>';
echo '</a>';
echo '<div class="admin-bar-clear"></div>';
echo '</li>';
}
echo '</ul>';
echo '</li>';
}
}
}And this line:
add_action( 'bp_adminbar_menus', 'bp_adminbar_authors_menu', 12 );August 28, 2009 at 7:53 pm #51702In reply to: Autogenerate or remove username
peterverkooijen
ParticipantAlternative solution: Use the following Javascript to generate a username on typing:
function copyinputuser()
{
var tmp = document.getElementById('field_1').value;
tmp = tmp.toLowerCase().replace(/^\s+|\s+$/g, "").replace(/[_|\s]+/g, "");
tmp = tmp.replace(/[^a-z0-9-]+/g, "").replace(/[-]+/g, "").replace(/^-+|-+$/g, "");
document.getElementById('user_name').value = tmp;
}And then add onkeyup=”copyinputuser()” to the field_1 input tag, which requires an ugly hack in a core file.
August 28, 2009 at 7:31 pm #51700In reply to: Edit input tag profile field_1?
peterverkooijen
ParticipantI see the html for the xprofile input fields is in function get_edit_html in bp-xprofile-classes.php:
switch ( $this->type ) {
case 'textbox':
$html .= '<div class="signup-field">';
$html .= '<label class="signup-label" for="field_' . $this->id . '">' . $asterisk . $this->name . ':</label>';
$html .= $this->message . '<input type="text" name="field_' . $this->id . '" id="field_' . $this->id . '" value="' . attribute_escape( $this->data->value ) . '" />';
$html .= '<span class="signup-description">' . $this->desc . '</span>';
$html .= '</div>';
break;So I guess I could add onkeyup=”copyinput()” there, but then all xprofile fields will get that. Would that mess up the system? The Javascript refers to the fields by ID.
According to Jeff Sayre this method will be deprecated in version 1.1, but I need a temporary solution before I make the switch.
Trying that now…
August 28, 2009 at 4:42 pm #51699r-a-y
KeymasterPS. is there a setting to be notified when a comment is made on the forums here?
RSS is your friend!
For example, if you wanted to subscribe to this thread, click on the RSS icon or this link:
https://buddypress.org/forums/rss/topic/mass-messaging-to-bp-members-member-activity-manager
August 28, 2009 at 4:15 pm #51697In reply to: White Screen of Death (Please Help :( )
Jeff Sayre
ParticipantIf WPMU + BuddyPress is working fine–that is when you just have BuddyPress installed and activated and no other plugins activated–then this issue is best solved by posting on the WPMU forums.
As a general rule, though, if you suspect that the issue is plugin related, then you should follow the recommended procedure for tracking down misbehaving plugins. You deactivate all plugins and then reactivate plugins one at a time, each time testing out WPMU to see if it is working. If so, you reactivate the next plugin and so on until you find the plugin that seems to be causing the issue.
Also, make sure that you are using the most recent plugin for the version of WPMU you’re running. If a plugin is not yet updated to run in the version of WPMU you’ve installed, then that could be an issue. Contact the plugin developer and ask when they plan to update it.
You also need to check your serve’s log files to see if there are any errors that could help in figuring out the issue. If you don’t know how to do that, your hosting firm can help.
But please search the WPMU forums first and then post there if you cannot find an answer. This sounds like a plugin conflict and has nothing to do with BuddyPress.
August 28, 2009 at 3:12 pm #51694tallydigtalbiz
ParticipantThanks Gaetan, I went ahead on bought the one month premium wpmu dev account and grabbed half a dozen plugins for my buddypress site. The mass email plugin worked great. I used it yesterday to announce our September contest.
Yes DJPaul, achievements is great. I wish there was a way to add our own achievements. Something like that would be very helpful.
PS. is there a setting to be notified when a comment is made on the forums here?
August 28, 2009 at 11:04 am #51684In reply to: Can't access my member profile
Paul Wong-Gibbs
KeymasterOh, there’s a variable which sets what root blog Buddypress runs on. I’m not sure if it works bugfree in the BP 1.0.3 release.
I’m not at my computer so you’ll have to wait for someone else to post the solution.
August 28, 2009 at 10:11 am #51679In reply to: Details About the New Theme Architecture
alcina22
Participanthi to all the buddypress friends…

I have a question…
if I would make a 4 columns layout for buddypress, with this new architecture, I do make my change in the parent theme or in the child?
I think I will need a “sidebar2.php” and 3 in the parent theme? Is it correct?
sorry for the question, I don’t know if it is exactly on topic, but I found this news when I was on the point to start “my” bptheme…
so, I hope in your help!
Thank you! maybe also a link to start with a new bp layout?
I’m a little lost…
thank you again!
ciao

alcina
P.S. sorry also for my… “english”!!!
August 28, 2009 at 10:00 am #51678In reply to: buddypress on a certain blog
pxlgirl
ParticipantOk, I wasn’t aware of that the plugin would be activated side wide, that explains certain behaviour. thnx!
August 28, 2009 at 9:42 am #51676In reply to: P2 Theme As The Wire/Wall?
abcde666
Participant@John James,
when you say:
“I’m in the process of porting the P2 theme into the new BP 1.1 framework”
what does that mean ? Will there be a P2-theme for BuddyPress ? Could you please explain ?
Many thanks,
Erich
August 28, 2009 at 7:05 am #51673In reply to: Forum Integration: HELPING HINTS
elishevadpw
ParticipantNever mind I got the log in for the admin wrong.
My problem is now that I can’t post anything on the forum through buddypress groups.
August 28, 2009 at 6:23 am #51671r-a-y
KeymasterAdd your register_sidebar() functions code from your existing WordPress theme’s functions.php file to your BP Member theme’s functions.php file.
Then your WordPress sidebar should show up.
August 28, 2009 at 6:13 am #51670In reply to: Could I change the wording of the tags
Mohit Kumar
ParticipantAugust 28, 2009 at 6:03 am #51669hitekhomeless
Member^
August 28, 2009 at 2:06 am #51659In reply to: buddypress on a certain blog
Jeff Sayre
ParticipantI have set up another blog only for buddypress due to create an online community.
You cannot set up BuddyPress on a single blog. BP is installed as a plugin suite for all of WPMU.
Each time I activate the plugin on the community’s backend page, it is also gets activated on every other blog I’ve created.
I’m not sure exactly what you are saying. BuddyPress will display (or list) all blogs, members can even access other members’ blogs, and there is a main sitewide blog. But, BP does not get activated on each blog.
You could write a custom function that will only display the main blog, filtering out all other members’ blogs, but I would imagine that your members will want to have their blogs accessible to everyone.
August 27, 2009 at 10:24 pm #51656In reply to: P2 Theme As The Wire/Wall?
abcde666
Participantis there a chance that BuddyPress integrated P2-theme for the wire and forum as a standard ? I think that would be a great thing and would provide a very quick solution in order to have the posts in a threaded version – which would make BuddyPress superb !
Any thoughts from Andy about this ?
August 27, 2009 at 8:53 pm #51652In reply to: Unable to authorize groum membership requests
r-a-y
KeymasterJust experienced the OP’s problem.
I looked into it and found a tentative fix… though a BP dev will need to look at the code.
In “bp-core/bp-core-notifications.php”, look for the bp_core_notifications_for_user() function.
Then look for these lines:
$item_id = ( 1 == $action_item_count ) ? $component_action_items[0]->item_id : false;
$secondary_item_id = ( 1 == $action_item_count ) ? $component_action_items[0]->secondary_item_id : false;Change this to:
$item_id = $component_action_items[0]->item_id;
$secondary_item_id = $component_action_items[0]->secondary_item_id;I don’t know why there was a check done for only 1 item and then returning false for more than 1… if a BP dev can explain why, that’d be great.
Let me know if anyone encounters any problems.
August 27, 2009 at 8:32 pm #51650peterverkooijen
ParticipantSuccess! Solution found here.
The Javascript:
<script type = "text/javascript">
function copyinput()
{
var tmp = document.getElementById('blog_title').value;
tmp = tmp.toLowerCase().replace(/^s+|s+$/g, "").replace(/[_|s]+/g, "");
tmp = tmp.replace(/[^a-z0-9-]+/g, "").replace(/[-]+/g, "-").replace(/^-+|-+$/g, "");
document.getElementById('blogname').value = tmp;
}
</script>The customized function:
function custom_signup_show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
global $current_site;
?>
<div id="blog-details-fields">
<label for="blog_title">Blog title</label>
<?php if ( $errmsg = $errors->get_error_message('blog_title') ) { ?>
<p class="error"><?php echo $errmsg ?></p>
<?php }
echo '<input name="blog_title" type="text" id="blog_title" value="'.wp_specialchars($blog_title, 1).'" maxlength="24" onkeyup="copyinput()"/></p>';
// Blog name
if ( 'no' == constant( "VHOST" ) )
echo '<label for="blogname">' . __('Blog Name:', 'buddypress') . '</label>';
else
echo '<label for="blogname">' . __('Blog Domain:', 'buddypress') . '</label>';
if ( $errmsg = $errors->get_error_message('blogname') ) { ?>
<p class="error"><?php echo $errmsg ?></p>
<?php }
if ( 'no' == constant( "VHOST" ) ) {
echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span><input name="blogname" type="text" id="blogname" value="'.$blogname.'" maxlength="50" /><br />';
} else {
echo '<input name="blogname" type="text" id="blogname" value="'.$blogname.'" maxlength="50" /><span class="suffix_address">.' . $current_site->domain . $current_site->path . '</span><br />';
}
if ( !is_user_logged_in() ) {
echo '<p class="help-text">';
print '(<strong>' . __( 'Your address will be ', 'buddypress' );
if( 'no' == constant( "VHOST" ) ) {
print $current_site->domain . $current_site->path . __( 'blogname', 'buddypress' );
} else {
print __( 'domain.', 'buddypress' ) . $current_site->domain . $current_site->path;
}
echo '</strong>. ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!)', 'buddypress' ) . '</p>';
echo '</p>';
}
?>
<p>
<label for="blog_public_on"><?php _e( 'I would like my blog to appear in search engines like Google and Technorati, and in public listings around this site.', 'buddypress' ); ?> </label>
<label class="checkbox" for="blog_public_on">
<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php if( !isset( $_POST['blog_public'] ) || '1' == $_POST['blog_public'] ) { ?>checked="checked"<?php } ?> />
<?php _e( 'Yes', 'buddypress' ); ?>
</label>
<label class="checkbox" for="blog_public_off">
<input type="radio" id="blog_public_off" name="blog_public" value="0" <?php if( isset( $_POST['blog_public'] ) && '0' == $_POST['blog_public'] ) { ?>checked="checked"<?php } ?> />
<?php _e( 'No', 'buddypress' ); ?>
</label>
</p>
</div>
<?php
do_action('signup_blogform', $errors);
}What this does:
When the user starts typing the blog title – limited to 24 chars – the Javascript dynamically fills in the blogname for the URL.
The user can manually change the blogname if he/she wants. Not sure how that would work out…
You could probably also hide the blogname field, either through type=”hidden” or CSS. Haven’t tested all these options yet.
But imho this looks like a very versatile solution.

Or have I overlooked some critical issues? Comments very much appreciated!
-
AuthorSearch Results