Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 63,126 through 63,150 (of 69,054 total)
  • Author
    Search Results
  • peterverkooijen
    Participant

    You’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.

    peterverkooijen
    Participant

    Here 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…

    #50988
    gerikg
    Participant

    they haven’t create it yet “BBpressMU” or I think it’s called “Talkpress”.

    #50985
    jorrie
    Participant

    Hi 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

    #50984
    gerikg
    Participant

    You want the user create one forum topic or have their own forum?

    #50981
    peterverkooijen
    Participant

    I’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.

    #50978
    jorrie
    Participant

    Nobody knows :( ?

    Andre 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.

    #50975

    BuddyPress 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.

    #50974
    peterverkooijen
    Participant

    Thanks 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?

    #50973
    Korhan Ekinci
    Participant

    For 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 ) ?> &nbsp;
    <?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>

    #50972
    Korhan Ekinci
    Participant

    Hi 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://&lt;?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.

    #50969
    Archie Webmaker
    Participant

    Thank you for the responses,

    I think I will try it myself

    #50968
    gerikg
    Participant

    BBpress 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

    #50967
    Paul Wong-Gibbs
    Keymaster

    Just 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.

    #50966
    Paul Wong-Gibbs
    Keymaster

    No, 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.

    #50965
    jorrie
    Participant

    How 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?

    #50964
    Jeff Sayre
    Participant

    You 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.

    Jeff 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.

    #50958
    David Lewis
    Participant

    If 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.

    #50956
    Jeff Sayre
    Participant

    General 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:

    1. Advice on using the default BP themes or Skeleton Theme that comes with BP
    2. A great tool to use while designing your theme.
    3. 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.

    Paul Wong-Gibbs
    Keymaster

    There 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.

    gerikg
    Participant

    I 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?

    #50946
    3612275
    Inactive

    Happens to me as well. Are you blogs not working for member accounts by chance? (mine aren’t…)

    #50943
    Tore
    Participant

    I’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.

Viewing 25 results - 63,126 through 63,150 (of 69,054 total)
Skip to toolbar