Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 36,726 through 36,750 (of 68,918 total)
  • Author
    Search Results
  • #119851
    NKTricker
    Member

    1. Also latest version of WP, and BP. WordPress is installed in a sub directory.
    Everything was just installed today. So latest version on everything.
    No other plugins other than bbPress and Buddy Press installed.
    Using the standard Buddy Press theme. I notice that you can’t really create separate forum in the bbPress version installed in BuddyPress. Is the internal version limited in someway or something???
    Please help, and thanks in advance.

    #119850
    NKTricker
    Member

    Also, I don’t really like the bbPress forums at all. It seems very very limited and you can’t make forum categories with it. Is there anyway to get the BuddyPress forums working with phpbb? I tried the gateway plugin, but it corrupted my database and I couldn’t find the correct files to use with it.

    #119848

    In reply to: Profile rating system

    @christophg

    I’m glad to help! I’m sure some of my ideas are not the cleanest way to solve the problems, but they seem to work. And as it seems difficult to get answers to questions here sometimes, I try to help where I can.

    Let me know how things go after you get a chance to try them out. Ps. the code I pointed to in that link, if it is not clear- I used it to create an ‘if’ statement.

    Peace.

    sdls
    Member

    understood.. thanks again Boone!

    Boone Gorges
    Keymaster

    The functions are not new – the whole point of a framework like BuddyPress, from the beginning, has been so that you *don’t* have to reinvent the wheel :)

    I think that for your purposes you can use `xprofile_get_field_data()`. See bp-xprofile/bp-xprofile-functions.php.

    sdls
    Member

    thanks @boonebgorges !

    WOW searching through all these new functions will be time consuming at first, but I’m sure will make things better over the long term. are these new to BP 1.5?

    I’m so used to just using SQL to solve my problems these seems way complicated… (above my head and slightly to the left) So let’s say I just want to check for the whether a record exists, is it suggested that these BP functions should be used for all database communication?

    for example… this checks for the existence of the field in the first place

    `
    $sql4 = “SELECT *
    FROM wp_bp_xprofile_data XP
    WHERE XP.user_id = $iUserID”;
    $acheck_for_user_xprofile = $wpdb->get_col( $wpdb->prepare($sql4));
    if ($acheck_for_user_xprofile) {
    $check_for_user_xprofile_answer = “yes“;
    } else {
    $check_for_user_xprofile_answer = “no”;
    }
    `

    Boone Gorges
    Keymaster

    That’s what `xprofile_set_field_data()` is for.

    `xprofile_set_field_data( 1, $iallusersUserID, $nicename );`

    No need to use $wpdb!

    #119840
    lexayo
    Member

    hum… do you know how to follow @r-a-y about this plugin? is he working on this already?
    thank you all

    #119839

    In reply to: adding group fields

    4ella
    Participant

    @qrahaman yes , group fields are already working for us on that link and I got from @brajesh http://www.buddydev.com even better solution for group custom fields (maybe non paid members can’t see it) :
    http://buddydev.com/forums/topic/displaying-group-custom-fields-in-group-headerphp
    I didn’t have a time till now to check it out , but as soon as possible I can I will check it out and if I understood it well it should help us to display whatever we wish if group value is EMPTY.

    and as far as I know @slaffik have said that his plugin in future versions will work exactly as you’ve said (at least I wish it will work like that – you’ve perfectly described my wish how slaffik’s plugin should work.)

    #119831

    In reply to: Profile rating system

    christophg
    Member

    Hey @embergermedia,
    As usual your advise dose not disappoint! I’m in the process of moving and also the creation of s second business site so as soon as I can I’ll give you an update on how it all works out! Ill also continue to mull over your problem and see if I can help at all! Talk to you soon!

    sdls
    Member

    Thanks both for the feedback!… looking into xprofile_insert_field() in bp-xprofile/bp-xprofile-functions.php. This appears to be the function for adding a new profile field to the BP system.

    `function xprofile_insert_field( $args = ” ) {
    global $bp;

    extract( $args );

    /**
    * Possible parameters (pass as assoc array):
    * ‘field_id’
    * ‘field_group_id’
    * ‘parent_id’
    * ‘type’
    * ‘name’
    * ‘description’
    * ‘is_required’
    * ‘can_delete’
    * ‘field_order’
    * ‘order_by’
    * ‘is_default_option’
    * ‘option_order’
    */

    // Check we have the minimum details
    if ( !$field_group_id )
    return false;

    // Check this is a valid field type
    if ( !in_array( $type, (array) $bp->profile->field_types ) )
    return false;

    // Instantiate a new field object
    if ( $field_id )
    $field = new BP_XProfile_Field( $field_id );
    else
    $field = new BP_XProfile_Field;

    $field->group_id = $field_group_id;

    if ( !empty( $parent_id ) )
    $field->parent_id = $parent_id;

    if ( !empty( $type ) )
    $field->type = $type;

    if ( !empty( $name ) )
    $field->name = $name;

    if ( !empty( $description ) )
    $field->description = $description;

    if ( !empty( $is_required ) )
    $field->is_required = $is_required;

    if ( !empty( $can_delete ) )
    $field->can_delete = $can_delete;

    if ( !empty( $field_order ) )
    $field->field_order = $field_order;

    if ( !empty( $order_by ) )
    $field->order_by = $order_by;

    if ( !empty( $is_default_option ) )
    $field->is_default_option = $is_default_option;

    if ( !empty( $option_order ) )
    $field->option_order = $option_order;

    return $field->save();
    }
    `
    All I really need to do is add a little record into the existing “wp_bp_xprofile_data” table

    This below code works however it’s definately not Open source friendly or BP friendly

    `

    // grab this users nicename

    $user = get_userdata( $iallusersUserID );
    $nicename = $user->user_nicename;
    $last_udpated = date(‘Y-m-d H:i:s’);

    // create a new record in bp_xprofile_data and add the nicename

    $wpdb->insert(
    ‘wp_bp_xprofile_data’,
    array(
    ‘field_id’ => 1,
    ‘user_id’ => $iallusersUserID,
    ‘value’ => $nicename,
    ‘last_updated’ => $last_udpated
    ),
    array(
    ‘%d’,
    ‘%d’,
    ‘%s’,
    ‘%s’
    )
    );
    `

    Any thoughts? Thanks again!

    Paul Wong-Gibbs
    Keymaster

    We fixed this in BuddyPress 1.5

    Boone Gorges
    Keymaster

    +1 to using the `xprofile_` functions if you can.

    #119825

    In reply to: adding group fields

    Quint
    Participant

    @4ella, I believe this is post to which you are referring (near the bottom of the page): https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-add-fields-to-group-creation-with-group-extension-api-please-read/?topic_page=4&num=15

    It’s from modemlooper. And it’s a follow-on to modemlooper/jorges plugin. One has to go into the php file to add/modify fields but it solves the need. Plus, whatever html tags have been placed in the php file to organize the fields, one can just add IDs/Classes and style them in your child theme’s style.css. No need for inline styling.

    With that being said, @slaffik will your update allow for Group types and/or categories? For example, for a specific group type, the admin could create/apply a form containing fields specific to that Group type. With the application of categories/sub-categories, the user would be able to filter across an exhaustive list of Groups. I am looking forward to trying your updated plugin.

    #119823

    In reply to: adding group fields

    modemlooper
    Moderator

    Try using this http://github.com/modemlooper/buddypress-group-fields

    You have to edit the code your self to add fields. i’m going to develop it so it matched the profile fields editor that comes in default BP.

    #119822

    In reply to: Profile rating system

    Hey @christophg

    Sorry, I’ve been travelling a lot or work and haven’t had enough time to come back here!! Thanks for the info on Profile manager. I was half way through with my solution when I stumbled upon hers. It didn’t work for me, so I contacted her. After several iterations of the plugin it still didn’t work for me. I suspect there may be a plugin conflict, however, I have limited plugins running on my installation, and my community needs every one of them. So I continued to make refine the idea I sent to you.

    As for your question regarding using S2 to control who gets one of your pages created, I am not sure if it is possible. As it stands, S2’s hooks and filters only allow you to keep content sequestered depending on user level.

    One idea for you though is to allow a page to be created for every one who registers. Then, display the contents of that page as an iFrame on each users member profile page. Create a private group for the members who should have a rating. Then wrap the iframe in code that restricts the display of the iframe to only displayed members of that group. I do this very thing for my “Brands”.

    I believe this is the code I used to show only on my brands member pages:

    https://buddypress.org/community/groups/creating-extending/forum/topic/checking-if-a-user-is-in-a-group

    Let me know if you need more help!

    #119821
    tommyhoang
    Member

    HOLY SMOKES! i figured it out, the bp-custom.php file mustve been corrupted because i deleted and simply tried to replace the code. and now it works!!!

    thanks for all the help @mercime!!!!

    #119820
    tommyhoang
    Member

    @mercime, but it doesnt change the fact that my members are still autojoining the group when they reply to a post. the original code only disables the autojoin when starting a new topic.

    #119819

    In reply to: adding group fields

    hjbarraza
    Member

    Hey guys, im just posting this +1 so i can find this thread again.
    I’m willing to donate a few dollars to @SlaFFik if he updates his plugin
    : )

    Anonymous User 96400
    Inactive

    If you want to add a record, then there are API functions to do that for you for the most part. `xprofile_insert_field()` is one such function. There’s more in bp-xprofile/bp-xprofile-functions.php.

    If you really do need to query the database directly, then you can find the table names within the $bp global, e.g. `$bp->groups->table_name` for the main groups table.

    If there are API functions, then you should use these. Only query directly if you can’t find a function to do the heavy lifting for you.

    Boone Gorges
    Keymaster

    Components register their table names themselves. See https://buddypress.trac.wordpress.org/browser/trunk/bp-xprofile/bp-xprofile-loader.php#L85

    In the case of xprofile, they are
    `$bp->profile->table_name_data
    $bp->profile->table_name_fields`
    and so on.

    You may find it helpful to look at https://buddypress.trac.wordpress.org/browser/trunk/bp-xprofile/bp-xprofile-classes.php to see how BP itself references these tables. Likewise for the other components.

    sdls
    Member

    Something like this

    `
    $sql = “SELECT *
    FROM wp_bp_xprofile_data XP
    WHERE XP.user_id = $iallusersUserID”;
    $xprofile = $wpdb->get_col( $wpdb->prepare($sql));
    `

    should probably more like this

    `
    $sql = “SELECT *
    FROM $wpdb->x_profile XP
    WHERE XP.user_id = $iallusersUserID”;
    $xprofile = $wpdb->get_col( $wpdb->prepare($sql));
    `

    Maybe this whole style of calling a custom SQL query is way of track? any suggestions?

    #119813
    sdls
    Member

    Altough User A (ID:21) does show up in the table “wp_bp_xprofile_data”
    It would be great if there was some help in bp_has_members
    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-members-loop/
    To reference these orphaned users with a state…. like “inactive”

    #119811
    sdls
    Member

    On this same topic…..In the members directory in BP 1.5 user are displayed based on more criteria then mentioned by the discussion above.

    User A (ID: 21) is showing up in the members directory but does NOT appear in the buddypress activity tables

    `
    $sql2 = “SELECT *
    FROM wp_bp_activity activity
    WHERE activity.user_id = $iUserID”;
    `

    OR the user_meta table

    `
    $sql3 = “SELECT *
    FROM wp_usermeta UM
    WHERE UM.user_id = $iUserID
    AND UM.meta_key LIKE ‘last_activity'”;

    `

    Any thoughts on what’s making these members appear in the directory?

    #119804
    Boone Gorges
    Keymaster

    @simon_said – Would you mind posting a bug ticket on trac.buddypress.org, with steps to reproduce? Thanks!

Viewing 25 results - 36,726 through 36,750 (of 68,918 total)
Skip to toolbar