Search Results for 'buddypress'
-
AuthorSearch Results
-
August 14, 2009 at 12:17 am #50993
peterverkooijen
ParticipantYou’re right r-a-y. Tried it. It had no effect on Buddypress’ registration form.
Back to my previous attempt; I’m stuck at intercepting fullname input from the Buddypress registration form. Do you know how?
Based on code in another plugin I put together something based on ‘$input_data’:
function synchro_wp_usermeta($input_data) {
global $bp, $wpdb;
$post_data = array();
foreach ($input_data as $varname => $varvalue) {
$post_data[$varname] = $varvalue;
}
$fullname = $post_data[fullname];
...But I don’t know if that $input_data is a standard wp tag or something else. Also the structure of the xprofile tables is very different from the structure of the regular wp users tables, so I’m not sure if that ‘$input_data as $varname => $varvalue’ is applicable.
Where is the code that processes data input from the Buddypress registration form? I’d like to use that as example, but have no clue where it is.
August 14, 2009 at 12:01 am #50990peterverkooijen
ParticipantHere is a plugin that “forces users to provide first and last name upon registration” and stores them in wp_usermeta.
Would this plugin be compatible with Buddypress? Looking into it now…
August 13, 2009 at 10:31 pm #50988In reply to: Help with custom setup buddypress + bbpress
gerikg
Participantthey haven’t create it yet “BBpressMU” or I think it’s called “Talkpress”.
August 13, 2009 at 8:46 pm #50985In reply to: Help with custom setup buddypress + bbpress
jorrie
ParticipantHi Gerikg,
The user should have its own bbpress forum with possible several categories like, feedback, general, etc so they can post in that categories and discuss things
August 13, 2009 at 7:53 pm #50984In reply to: Help with custom setup buddypress + bbpress
gerikg
ParticipantYou want the user create one forum topic or have their own forum?
August 13, 2009 at 7:26 pm #50981In reply to: bp tags not working in plugins?
peterverkooijen
ParticipantI’m not creating a plugin from scratch or doing any complicated manipulations on the data. I’m only trying to pre-populate fields in the RSVP form in this Event Registration plugin.
Adding the ‘echo’ didn’t fix the problem. It probably is something stupid like that.
Which code actually pulls the data from xprofile? I couldn’t make much sense of function bp_user_fullname(). The real magic apparently happens somewhere else.
Getting regular wp data works fine. If I could figure out how to consistently synchronize firstname and last name between xprofile and wp_usermeta, that would solve the problem as well.
August 13, 2009 at 6:22 pm #50978In reply to: Help with custom setup buddypress + bbpress
jorrie
ParticipantNobody knows
?
August 13, 2009 at 5:52 pm #50976John James Jacoby
KeymasterAndre Tan, I suspect the issues you’re having are related to shared hosting + the XMLRPC interface for including forums into groups. Future versions of BuddyPress will not have this problem as it includes bbPress and references it directly going forward.
It may still end up being a little heavy on the server, but you should experience the random load issues that you are currently.
August 13, 2009 at 5:31 pm #50975In reply to: bp tags not working in plugins?
John James Jacoby
KeymasterBuddyPress has functions to get most of the data that you need without globaizing the $bp. I think different people will give you different answers about globals, but the general idea is that the less you use them is the better off you will be.
BuddyPress wraps most of the return/echo functions for most content in the -templatetags.php files for each specific component. If you need data that isn’t available, you can always build your own function in bp-custom.php or whatever.
If you look at the built in BP functions, you’ll see that $bp is globalized a lot in those functions, so the answer to your question comes down to the nuts and bolts of how PHP operates deep within the core of it, and how globals are processed on a per library basis and at what point in the process it occurs.
Long story short, if it gets you where you need to be safely, it’s probably fine enough unless you notice a slow-down or something.
August 13, 2009 at 5:12 pm #50974In reply to: bp tags not working in plugins?
peterverkooijen
ParticipantThanks Jeff Sayre!
The plugin has a very messy structure. I’ve tried with $bp added to global in several functions in the plugin, both in the main file and the file with the form. Nothing has any effect.
Are there any downsides to adding $bp if it’s not strictly needed? Can you make any plugin “Buddypress ready” by just adding that $bp to global?
I did get regular wp data working with help from their forum. I had to add this to the php:
global $current_user;
get_currentuserinfo();Does Buddypress have something like that? Anything else I can try?
August 13, 2009 at 4:43 pm #50973In reply to: problem with using the home theme as a user theme
Korhan Ekinci
ParticipantFor some how the code above did not go through correcty, I will paste the first part again:
<div id="search-login-bar">
<?php if ( is_user_logged_in() ) : ?>
<div id="logout-link">
<?php bp_loggedinuser_avatar_thumbnail( 20, 20 ) ?>
<?php bp_loggedinuser_link() ?>
<?php
if ( function_exists('wp_logout_url') ) {
$logout_link = '/ <a href="' . wp_logout_url( $bp->root_domain ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>';
} else {
$logout_link = '/ <a href="' . $bp->root_domain . '/wp-login.php?action=logout&redirect_to=' . $bp->root_domain . '">' . __( 'Log Out', 'buddypress' ) . '</a>';
}
echo apply_filters( 'bp_logout_link', $logout_link );
?>
<?php do_action( 'bp_login_bar_logged_in' ) ?>
</div>
<?php elseif ( get_option('users_can_register') ) : ?>
<form name="login-form" id="login-form" action="<?php echo $bp->root_domain . '/wp-login.php' ?>" method="post">
<input type="text" name="log" id="user_login" value="<?php _e( 'Username', 'buddypress' ) ?>" onfocus="if (this.value == '<?php _e( 'Username', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Username', 'buddypress' ) ?>';}" />
<input type="password" name="pwd" id="user_pass" class="input" value="" />
<input type="checkbox" name="rememberme" id="rememberme" value="forever" title="<?php _e( 'Remember Me', 'buddypress' ) ?>" />
<input type="submit" name="wp-submit" id="wp-submit" value="<?php _e( 'Log In', 'buddypress' ) ?>"/>
<input type="button" name="signup-submit" id="signup-submit" value="<?php _e( 'Sign Up', 'buddypress' ) ?>" onclick="location.href='<?php echo bp_signup_page() ?>'" />
<input type="hidden" name="redirect_to" value="http://<?php echo $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ?>" />
<input type="hidden" name="testcookie" value="1" />
<?php do_action( 'bp_login_bar_logged_out' ) ?>
</form>
<?php endif // get_option('users_can_register') ?>
<div class="clear"></div>
</div>August 13, 2009 at 4:40 pm #50972In reply to: problem with using the home theme as a user theme
Korhan Ekinci
ParticipantHi Kunal17, I use prologue theme as default user theme and I also wanted to keep the login form on top, so I added this to the header of the prologue theme:
<div id=”search-login-bar”>
<?php if ( is_user_logged_in() ) : ?>
<div id=”logout-link”>
<?php bp_loggedinuser_avatar_thumbnail( 20, 20 ) ?>
<?php bp_loggedinuser_link() ?>
<?php
if ( function_exists(‘wp_logout_url’) ) {
$logout_link = ‘/ root_domain ) . ‘”>’ . __( ‘Log Out’, ‘buddypress’ ) . ‘‘;
} else {
$logout_link = ‘/ root_domain . ‘/wp-login.php?action=logout&redirect_to=’ . $bp->root_domain . ‘”>’ . __( ‘Log Out’, ‘buddypress’ ) . ‘‘;
}
echo apply_filters( ‘bp_logout_link’, $logout_link );
?>
<?php do_action( ‘bp_login_bar_logged_in’ ) ?>
</div>
<?php elseif ( get_option(‘users_can_register’) ) : ?>
<form name=”login-form” id=”login-form” action=”<?php echo $bp->root_domain . ‘/wp-login.php’ ?>” method=”post”>
<input type=”text” name=”log” id=”user_login” value=”<?php _e( ‘Username’, ‘buddypress’ ) ?>” onfocus=”if (this.value == ‘<?php _e( ‘Username’, ‘buddypress’ ) ?>’) {this.value = ”;}” onblur=”if (this.value == ”) {this.value = ‘<?php _e( ‘Username’, ‘buddypress’ ) ?>’;}” />
<input type=”password” name=”pwd” id=”user_pass” class=”input” value=”” />
<input type=”checkbox” name=”rememberme” id=”rememberme” value=”forever” title=”<?php _e( ‘Remember Me’, ‘buddypress’ ) ?>” />
<input type=”submit” name=”wp-submit” id=”wp-submit” value=”<?php _e( ‘Log In’, ‘buddypress’ ) ?>”/>
<input type=”button” name=”signup-submit” id=”signup-submit” value=”<?php _e( ‘Sign Up’, ‘buddypress’ ) ?>” onclick=”location.href='<?php echo bp_signup_page() ?>'” />
<input type=”hidden” name=”redirect_to” value=”http://<?php echo $_SERVER[‘SERVER_NAME’] . $_SERVER[‘REQUEST_URI’] ?>” />
<input type=”hidden” name=”testcookie” value=”1″ />
<?php do_action( ‘bp_login_bar_logged_out’ ) ?>
</form>
<?php endif // get_option(‘users_can_register’) ?>
<div class=”clear”></div>
</div>
You can maybe replace the
<div id=”search-login-bar”>
<?php bp_login_bar() ?>
<div class=”clear”></div>
</div>
part of your header.php file with the first code and I hope it will work for you.
August 13, 2009 at 4:10 pm #50969In reply to: Buddypress default Forum bbpress theme
Archie Webmaker
ParticipantThank you for the responses,
I think I will try it myself
August 13, 2009 at 3:46 pm #50968In reply to: Buddypress default Forum bbpress theme
gerikg
ParticipantBBpress theme
Theme Name: looks-like-buddypress
Theme URI: http://manojkumar.org
Description: Try to give similar look as default buddypress theme for users how integrate bbpress with buddypress.
Version: 0.01
Author: Manoj Kumar
Author URI: http://manojkumar.org
August 13, 2009 at 3:44 pm #50967Paul Wong-Gibbs
KeymasterJust disable blog registrations in your Site Admin > Options panel. And please take some time to do a cursory search of Google or the WPMU forums as this is a basic question and nothing to do with Buddypress.
August 13, 2009 at 3:34 pm #50966In reply to: Buddypress default Forum bbpress theme
Paul Wong-Gibbs
KeymasterNo, BP doesn’t provide a BB theme. And before someone asks, no the forum theme on this site is not being released. I’m sure if someone invented 30 hour days, then BP might come with a BB theme.
August 13, 2009 at 2:50 pm #50965In reply to: /members directory availability
jorrie
ParticipantHow would I do : You can selectively decide which blogs BuddyPress will show or which blogs BP will link?
So i cannot disable mainsite.com/members If i understand correctly?
August 13, 2009 at 2:45 pm #50964In reply to: /members directory availability
Jeff Sayre
ParticipantYou cannot tie BuddyPress to a blog url. This is not how it works.
WPMU handles blogs, BuddyPress handles the social networking aspect. You can selectively decide which blogs BuddyPress will show or which blogs BP will link to, but you cannot make a blog the parent of BuddyPress.
August 13, 2009 at 1:22 pm #50959Jeff Sayre
Participant…when there are possibly more users hammering on the shared box that we’re hosted on.
There are just too many variables to address when you’re hosting a WPMU install on a shared box. It could be your install, it could be the server’s resources are being hogged by a few other domains on that server, it could be, it could be…
This BP thread may be helpful: https://buddypress.org/forums/topic/buddypress-and-shared-hosting
In case you have not seen this, here’s an article in the BP Codex about improving performance.
August 13, 2009 at 1:21 pm #50958In reply to: How to customize Buddypress Theme
David Lewis
ParticipantIf you happen to use a Mac… CSSEdit is amazing. It a CSS development tool that let’s you see your changes in real time as you type your code. Similar to Firebug… except that it’s an actual development tool / editor.
August 13, 2009 at 12:57 pm #50956In reply to: How to customize Buddypress Theme
Jeff Sayre
ParticipantGeneral theming guidance is beyond the scope of these forums as it really is more an issue of learning how to use CSS and WordPress/BuddyPress template loops to create the design you are after.
But, to help get you started, here a few links:
- Advice on using the default BP themes or Skeleton Theme that comes with BP
- A great tool to use while designing your theme.
- Basic how tos on WordPress theme design. NOTE: this link pertains to wordpress themes in general, not BuddyPress themes. But, you should really understand WP theming before you set out to do a BP custom theme.
August 13, 2009 at 11:01 am #50952Paul Wong-Gibbs
KeymasterThere is no server-specific data used by Buddypress. Export all the BP tables and import them into the new database.
For specific advice on migrating a WPMU installation, it’s probably best to look at the Wu forums.
August 13, 2009 at 5:07 am #50948gerikg
ParticipantI know WP has an Export feature, BBpress has an export plugin, I don’t know about BuddyPress information.
If no one can answer the export information on BP then I would suggest to have both domain point to the same server/folder. Then change all URLs on the admin page to the new one.
If you backup your SQL data it will still point to the old site.
blackarbor, are you hosting it?
August 13, 2009 at 2:57 am #50946In reply to: 404 Error when activating buddypress account
3612275
InactiveHappens to me as well. Are you blogs not working for member accounts by chance? (mine aren’t…)
August 12, 2009 at 11:53 pm #50943In reply to: Facebook-esque status updates?
Tore
ParticipantI’m using the WordPress P2-theme for this functionality. It won’t be integrated into Buddypress like the status update (since it’s a WP theme), but its the right thing for me. You might want to consider it.
-
AuthorSearch Results