Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 58,451 through 58,475 (of 69,016 total)
  • Author
    Search Results
  • #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!

    #62791
    Windhamdavid
    Participant

    interesting? you can use sunrise.php to support multiple domains with one user table, but I’m not sure how site_url() (BuddyPress) would react to it. Search for wpmuguru. He’s really good with configuring multiple domains/databases on multi-user. It would be interesting to test and with enough custom code, you could make almost anything happen

    ps.. you should mark the topic as resolved since this really isn’t a direct support question.

    #62790
    r-a-y
    Keymaster

    lol @ designodyssey!

    #62788
    designodyssey
    Participant

    Couldn’t resist commmenting on premature release.

    Back to scheduled programming.

    #62787
    modemlooper
    Moderator

    yeah seems like a premature release considering the 1.2 update.

    #62786
    MrMaz
    Participant

    @Bowe

    I think get_blog_option() is not working the way I expect it to. Can you try adding this line to wp-config.php and see if it helps?

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

    #62785
    Bowe
    Participant

    I now have:

    WPMU 2.9.1

    BP 1.2 RC2

    BP Default 1.2 (loaded from the plugin dir)

    the template is loading fine for the profile page but I get a error: no links found

    and I can not add new links. If I go to the links page I get a page not found error.

    Hope this helps :)

    #62784
    MrMaz
    Participant

    Thanks to everyone who tested so far. I am going to work on these issues tonight and tomorrow. I hope the single WP support doesn’t hurt too much, argh.

    Question: Can somebody please test with MU 2.9.1 or higher, bp-default theme activated, and NO child theme? This is what I have working in my sandbox with none of the above reported issues.

    #62783
    r-a-y
    Keymaster

    Also if you’re using a child theme of bp-default, the stylesheet URL links to:

    /wp-content/plugins/buddypress-links/themes/bp-links-custom/style.css

    which doesn’t’ exist.

    But the actual location of it is:

    /wp-content/plugins/buddypress-links/themes/bp-links-default/style.css

    [EDIT]

    Looks like the magic happens here:

    /wp-content/plugins/buddypress-links/buddypress-links.php

    There’s a couple of defines here that can be overriden in bp-custom.php.

    Will play with this a bit more when I have some time.

Viewing 25 results - 58,451 through 58,475 (of 69,016 total)
Skip to toolbar