Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 58,376 through 58,400 (of 68,949 total)
  • Author
    Search Results
  • #62833
    Anton
    Participant

    The RSS feed doesn’t work. If you click the RSS feed link from the /links directory you are routed to the home page. When clicking on “comments” on the feed, you are taken to the comment list but site wide activity stream is also viewable underneath the comments.

    #62831

    Ah, perfect. Thank you! :)

    #62830
    Andy Peatling
    Keymaster

    <?php if ( bp_has_members( 'user_id=' . bp_loggedin_user_id() ) ) : ?>

    #62829

    Yes hardcoding works, but I am making a “My Friends” widget and I want to show the logged in user’s friends.

    #62828
    Andy Peatling
    Keymaster

    Try hardcoding with a user_id to begin with to see if that works:

    <?php if ( bp_has_members( 'user_id=1' ) ) : ?>

    #62826

    user_id=’ . $user_id . ‘&type=alphabetical&per_page=0’ doesn’t seem to filter it to only friends of that user … looks like it’s posting random members. Not sure what I’m doing wrong since I get no errors.

    Code:
    <?php if ( bp_has_members( ‘user_id=’ . $user_id . ‘&type=alphabetical&per_page=0’ . $instance[‘max_members’] ) ) : ?>

    #62825
    Paul Wong-Gibbs
    Keymaster

    When? Soon.

    #62819
    frenzi
    Participant

    am trying on new realease buddypress 1.2rc2

    #62818
    frenzi
    Participant

    this is too happening with me if u just remove the buddypress plugin then wordpress is works fine

    #62816
    modemlooper
    Moderator

    Now that BP can be installed on user blogs can’t you use that + I coulda swore there was a plugin before that allowed people to use a different domain for their user blog. Or maybe I’m dreaming it all.

    #62815
    @mercime
    Participant

    lol, good one, @Modemlooper

    #62814
    sweller
    Participant

    I’d like to open this one back up. The project is for a local recycling program and I’m having trouble with a form for members to schedule pickups on the profile/index page. It calls XProfile address fields and tomorrow’s date for the default values, and should insert them into a custom table. The plugin creates a table and pulls the xprofile data fine, but nothing is reaching the database. I’ve tried every possible variation based on the bp-core and Travel-Junkie’s example above, but nothing is working.

    Here’s the plugin:

    <?php
    /*
    Plugin Name: Collection Records
    Plugin URI: -
    Description: Adds a table and page for listing and editing Recylable Collections.
    Version: 1.0
    */

    function collect_install_table() {
    global $wpdb;
    global $bp;

    if ( !empty($wpdb->charset) )
    $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";

    $table_name = $wpdb->prefix . 'collections';
    if($wpdb->get_var("show tables like '$table_name'") != $table_name) {

    $sql = "CREATE TABLE " . $table_name . " (
    id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,
    sched_date datetime NOT NULL,
    post_date datetime NOT NULL,
    user_id bigint(20) UNSIGNED NOT NULL,
    address_line_1 varchar(150) NOT NULL,
    address_line_2 varchar(150) NOT NULL,
    town varchar(150) NOT NULL,
    state varchar(150) NOT NULL,
    zip_code varchar(150) NOT NULL,
    amount bigint(20) DEFAULT '0' NOT NULL,
    verified tinyint(1) DEFAULT '1' NOT NULL,
    paid tinyint(1) DEFAULT '1' NOT NULL,
    KEY user_id (user_id)
    ) {$charset_collate};";

    require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
    dbDelta($sql);
    }
    }

    /*Launch database*/
    register_activation_hook(__FILE__,'collect_install_table');

    function bp_collections() {
    global $wpdb;
    global $bp;

    /* bp_is_home() Checks to make sure the current user being viewed equals the logged in user */

    if ( !bp_is_home() && !is_site_admin() )
    return false;

    /* Check for new information*/
    if( isset($_POST['go'] ))
    {
    /* Check the nonce */

    check_admin_referer( 'schedule_collect' );

    if( $_POST['sched_date'] && ! $_POST['address_line_1'] || ! $_POST['sched_date'] && $_POST['address_line_1'] )
    {
    bp_core_add_message( __( 'We need a time and a place!', 'buddypress' ), 'error' );
    $error = true;
    }

    if( ! $error )
    {
    $user_id = $bp->loggedin_user->id;

    if( isset( $_POST['address_line_2'] ) ) {
    $address_line_2 = $_POST['address_line_2'];
    }

    $result = $wpdb->query( $wpdb->prepare("
    INSERT INTO $wpdb->1_collections
    ( sched_date, post_date, user_id, address_line_1, address_line_2, town, state, zip_code )
    VALUES ( %s, %s, %d, %s, %s, %s, %s, %s )",
    $_POST['sched_date'], $_POST['post_date'], $user_id, $_POST['address_line_1'], $address_line_2, $_POST['town'], $_POST['state'], $_POST['zip_code'] ) );

    /* Set the feedback messages */
    if ( $errors )
    bp_core_add_message( __( 'There was a problem calling your pickup, please try again.', 'buddypress' ), 'error' );
    else
    bp_core_add_message( __( 'Thanks for calling a recycling pickup.', 'buddypress' ) );

    }

    bp_core_load_template( apply_filters( 'xprofile_template_display_profile', 'profile/index' ) );
    }
    }
    /* Function to call xprofile Address label */

    function collections_xprofile( $field ) {
    echo bp_collections_get_member_list_xprofile_data( $field );
    }
    function bp_collections_get_member_list_xprofile_data( $field ) {
    global $bp, $site_members_template;
    return xprofile_get_field_data( $field, $site_members_template->member->id );
    }

    ?>

    And the form:

    <?php if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>

    <form action="" method="post" id="oncall" class="oncall">

    <label for="address">At</label>
    <input type="text" name="address_line_1" id="address_line_1" value="<?php echo bp_collections_get_member_list_xprofile_data('Address Line 1') ?>" />
    <input type="text" name="address_line_2" id="address_line_2" value="<?php echo bp_collections_get_member_list_xprofile_data('Address Line 2') ?>" />
    <input type="text" name="town" id="town" value="<?php echo bp_collections_get_member_list_xprofile_data('Town') ?>" />
    <input type="hidden" name="state" id="state" value="MS" />
    <input type="" name="zip_code" id="zip_code" value="<?php echo bp_collections_get_member_list_xprofile_data('Zip Code') ?>" />
    <br />
    <label for="date">On</label>
    <input type="text" name="sched_date" id="sched_date" value="<?php $tomorrow = mktime(0,0,0,date("m"),date("d")+1,date("Y")); echo date("Y/m/d", $tomorrow); ?>" />

    <input type="submit" name="go" id="go" value="go"/>
    <input type="hidden" name="post_date" id="post_date" value="<?php $my_t=getdate(date("U")); print("$my_t[weekday], $my_t[month] $my_t[mday], $my_t[year]"); ?> " />

    <?php wp_nonce_field( 'schedule_collect' ) ?>
    </form>
    <?php endwhile; endif; ?>

    It has to be something simple but I’m lost. I’d really appreciate it if someone could take a minute and tell me what’s wrong with the code.

    #62812
    modemlooper
    Moderator

    Who needs a book when the community here is so vibrant :)

    #62811
    Mike Pratt
    Participant

    Was recently in the Pods IRC channel and was told by the devs that they don’t plan on addressing BP until WP 3.0 is out. I run Pods on my wife’s site and think you could force the issue but it might not be worth it

    #62809
    @mercime
    Participant

    speaking of book releases, WordPress Bible by Aaron Brazell with Mark Jaquith came out yesterday — now that’s a keeper.

    #62808
    paulhastings0
    Participant

    I’d much rather BP upgrade (i.e. get better) faster than a book can keep up with. I’ll have to check into it though.

    #62804
    danbpfr
    Participant

    :-)

    but it’s better to view here:

    https://trac.buddypress.org/roadmap

    #62802
    abcde666
    Participant

    when its ready

    ;-)

    #62800
    David Lewis
    Participant

    Well it takes about 6 months to a year to write a book. I think this book started sometime last summer. Basically, BuddyPress has been changing faster than you can write a book. There may be a 1.2 book in the works from another publisher that I was in contact with.

    #62798
    grosbouff
    Participant

    @Gpo1 That’s not a free plugin??

    #62797
    sakthig
    Participant

    Dear Swing Jazz

    I am having issues with viewing your website , some of your website components are not loaded correctly

    I am using Firefox version 3.6 with windows Vista

    I think the problem will be the result of wider content which is not supported by your theme

    One more thing, Being a fan of Jazz music I am registered with your website

    #62796
    paulhastings0
    Participant

    I would definitely ask that BP Links support the classic theme.

    #62795
    Windhamdavid
    Participant

    Yeah, you can do that. It will take some work. Just add in all the profile fields you’d like to use for the ‘business listing’ and then display those fields in a directory of sorts using custom template files. Or you could style up a member ‘blog’ theme that is formatted as a ‘listing’ with maybe some edit in place ajax functionality that’ll allow a member to enter their business info and restricts them from doing anything else. That way you could use sitewide queries to build a directory of these ‘listings’. I can’t say there’s a cut and paste sorta plugin to achieve this, but the best place to start would be here and here.

    #62793
    abcde666
    Participant

    I am also wondering how I can run WPMU + buddyPress across 5 different domains with just 1 user-table ?

    I guess I would need 5 separate installs and 1 common user-table ?

    Is this possible ?

    #62792
    geoffm33
    Participant

    define ( ‘BP_LINKS_THEME’, ‘bp-links-default’ );

    That seems to fix a lot for me!

Viewing 25 results - 58,376 through 58,400 (of 68,949 total)
Skip to toolbar