Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,351 through 16,375 (of 69,016 total)
  • Author
    Search Results
  • #184861
    @mercime
    Participant

    that I’m using the BuddyPress default theme


    @lorns
    Change to the Twenty Fourteen theme.
    Strange that you could see and activate to the BP Default theme in a new installation http://bpdevel.wordpress.com/2013/11/13/the-future-of-the-bp-default-theme/

    But if I act as a new user, I cannot register using the BuddyPress register page.

    Please make sure that you’re logged out first before going to the register page. If you were logged out, do give steps or more information to replicate the issue.

    #184852

    In reply to: add page to a group

    shanebp
    Moderator

    You can do that with the Group Extension API.

    jsepkenya
    Participant

    add this to your theme functions
    to redirect to wherever

    ///////////////////////////////////////////////////////////////////////
    /// check if is friend
    ///////////////////////////////////////////////////////////////////////
    function bp_displayed_user_is_friend() {
    global $bp;
    $friend_privacy_enable = “enable”;
    $friend_privacy_redirect = ‘http://yourdomain.com/members’;

    if($friend_privacy_enable == “enable”) {
    if ( bp_is_profile_component() || bp_is_member() ) {
    if ( (‘is_friend’ != BP_Friends_Friendship::check_is_friend( $bp->loggedin_user->id, $bp->displayed_user->id )) && (bp_loggedin_user_id() != bp_displayed_user_id()) ) {
    if ( !is_super_admin( bp_loggedin_user_id() ) ) {
    if($friend_privacy_redirect == ”) {
    bp_core_redirect( $bp->root_domain );
    } else {
    bp_core_redirect( $friend_privacy_redirect );
    }
    }
    }
    }
    } //enable
    }
    add_filter(‘get_header’,’bp_displayed_user_is_friend’,3);

    ///////////////////////////////////////////////////////////////
    // check privacy
    ////////////////////////////////////////////////////////////////

    function check_if_privacy_on() {
    global $bp;
    $location = $_SERVER[‘HTTP_REFERER’];
    $privacy_enable = “enable”;
    $privacy_redirect = ‘http://your domain.com/login/’ ;
    if($privacy_enable == “enable”) {
    if ( bp_is_profile_component() || bp_is_activity_component() || bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) {
    if(!is_user_logged_in()) {
    if($privacy_redirect == ”) {
    bp_core_redirect( $bp->root_domain . ‘/’ . BP_REGISTER_SLUG . ‘/’ );
    } else {
    bp_core_redirect( $privacy_redirect ) ;
    }
    }
    }
    } //off
    }

    add_filter(‘get_header’,’check_if_privacy_on’, 1);

    function check_if_create_group_limit() {
    global $bp;
    $create_limit_enable = “yes”;
    $create_limit_redirect = ‘http://yourdomain.com/groups’;
    if($create_limit_enable == “yes”) {
    if( bp_is_group_create() ) {
    if ( current_user_can( ‘delete_others_posts’ ) ) { //only admins and editors
    } else {
    if( $create_limit_redirect == ” ) {
    bp_core_redirect( $bp->root_domain . ‘/’ );
    } else {
    bp_core_redirect( $create_limit_redirect );
    }
    }
    }

    } //off
    }
    add_filter(‘get_header’,’check_if_create_group_limit’,2);

    for all pages created with buddypress level 1 i hope is all u want to restrict

    Stephen Edgar
    Moderator

    Presuming your forums are under the f1 parent in my previous post a couple of options to try:

    First potential solution:

    With your group forum that is broken create a new bbPress eg test under the f1 parent forum and then either via the front end or backend change that BuddyPress Group forum to point to the new ‘test’ forum you just created.

    What happens when you visit this group forum? Does it work as expected it should?

    Now go back and change the group back to the correct bbPress forum, does this fix it?

    Second solution if the first above does not work. Whilst BuddyPress is deactivated edit the bbPress forum permalink so that it matches the same URL structure as your BuddyPress Group that does work.

    Does this fix it?

    notpoppy
    Participant

    OK three of the four were right:

    – Forum Root Slug -> forums -> correct
    – Forum Prefix -> Check/Tick -> correct
    – Single Forum Slugs -> Forum -> forum -> correct

    However the correct value for BuddyPress Integration is:

    “BuddyPress Integration” -> “Group Forums Parent” is set as “F1”

    jashwant
    Participant

    I added class="form-control" to input and btn class to submit button.

    Hope this helps.

    function cb_bp_directory_members_search_form() {
      $search_form_html = '<form action="" method="get" id="search-members-form">
        <label><input type="text" class="form-control" name="s" id="members_search" placeholder="'. esc_attr( $search_value ) .'" /></label>
        <input type="submit" id="members_search_submit" class="btn"  name="members_search_submit" value="' . __( 'Search', 'buddypress' ) . '" />
      </form>';
      return $search_form_html;
    }
    add_filter('bp_directory_members_search_form', 'cb_bp_directory_members_search_form');
    Stephen Edgar
    Moderator

    Ok, we’re closer, looks like the correct bbPress forum ID is correctly associated with the BuddyPress Group 🙂

    It looks like the slug/permalink is broken 🙁

    Before looking at a fix, a clarification if I could

    Here is my bbPress Forums Hierarchy Structure Layout

     
    BuddyPress Forums Category (Top Level Category)
    — BuddyPress Public Group Forum (Forum)
    — BuddyPress Hidden Group Forum (Forum)
    — BuddyPress Private Group Forum (Forum)

    In bbPress Settings (Settings -> bbPress) (/wp-admin/options-general.php?page=bbpress)

     
    “BuddyPress Integration” -> “Group Forums Parent” is set as “BuddyPress Forums Category”

    My bbPress settings for forum slugs are:

     
    – Forum Root Slug -> forums
    – Forum Prefix -> Check/Tick
    – Single Forum Slugs -> Forum -> forum

    So my URL’s are build with the “forum root slug” then the “forum single slug” then “BuddyPress Forums Category” and lastly the actual forum “BuddyPress Public Group Forum” which results in:

    /forums/forum/buddypress-forums-category/buddypress-public-group-forum/

    Now onto your URL’s:

    Yours with bbPress forum ID 127650

     
    /forums/forum/forums-2/f1/correct-group-name/

    Yours with bbPress forum ID 127628

     
    /forums/forum/forums-2/name-of-another-group/

    These infer the following:

     
    forums-2
    — f1
    — — correct-group-name
    — name of another group

    With your settings:

     
    “BuddyPress Integration” -> “Group Forums Parent” is set as “forums-2”
    – Forum Root Slug -> forums
    – Forum Prefix -> Check/Tick
    – Single Forum Slugs -> Forum -> forum

    As long as the quote/code formatting displays as expected is this what your bbPress forums layout hierarchy looks like?

    EDIT: Tweaked the formatting above and just trying to digest where the forums-2 comes from and why it is there, the f1 no doubt is part of the incorrect forum slug that we can get to with the fix, I’ve got to go dig through some source code of bbPress & BuddyPress to workout where things are broken and how to fix it.

    notpoppy
    Participant

    It was clear enough! 🙂

    Do both show the correct/expected bbPress forum selected?

    Yes, they do.

    comparing my examples above do you see anything in your config that differs that matches up with your URL mismatch somewhere…

    OK here’s what links I have for the forum where I have the problem with BuddyPress activated and deactivated. Note that it’s when BuddyPress is activated that the wrong group name appears on the ‘view’ link.

    BuddyPress activated

    Edit link: /wp-admin/post.php?post=127650&action=edit
    View link: /groups/incorrect-group-name/forum/

    BuddyPress deactivated

    Edit link: /wp-admin/post.php?post=127650&action=edit
    View link: /forums/forum/forums-2/f1/correct-group-name/

    And here’s the same information for a forum which is working correctly:

    BuddyPress activated

    Edit link: /wp-admin/post.php?post=127628&action=edit
    View link: /groups/name-of-another-group/forum/

    BuddyPress deactivated

    Edit link: /wp-admin/post.php?post=127628&action=edit
    View link: /forums/forum/forums-2/name-of-another-group/

    Stephen Edgar
    Moderator

    There are two locations you can edit the bbPress Group forum associated with a BP Group:

    Frontend:
    http://example.com/groups/buddypress-public-group/admin/forum/
    Navigate to the groups ‘home page’ -> Admin -> Forum
    (Where ‘buddypress-public-group’ is the name of the group forum)

    Backend:
    http://example.com/wp-admin/admin.php?page=bp-groups&gid=1&action=edit
    Wp-Admin Dashboard -> Groups -> ‘BuddyPress Public Group’ -> Edit
    (Where ‘gid=1’ is the group forum ID)

    Each of those screens should show both a checkbox and a dropdown menu showing the available bbPress Forums to associate with that particular BuddyPress Group.

    Do both show the correct/expected bbPress forum selected?
    (If you think any of the forum names in these dropdowns is ambiguous view the HTML source of the dropdown and each forum should also have a value= form field and that will be the ID of the bbPress forum)

    However I do note that on the forums page although the ‘Edit’ button shows the correct forums_id values for each forum, the ‘View’ button shows an incorrect link for the problematic forum.

    Hmmm… To continue using my same examples I have thus far, the bbPress Forum I am using has an ID of 25 and it’s edit link is http://example.com/wp-admin/post.php?post=25&action=edit, it’s view link is http://example.com/groups/buddypress-public-group/forum/. Because BuddyPress is activated we add some redirection bits and pieces so we cannot directly modify the bbPress forum permalink whilst BuddyPress is activated.

    If you deactivate BuddyPress for a moment and check the view link of the same bbPress forum it should be similar to http://example.com/forums/forum/buddypress-forums-category/buddypress-public-group-forum/ where in my case buddypress-forums-category is the bbPress parent forum category that all by BuddyPress group forums are located under and buddypress-public-group-forum is the bbPress forum.

    So comparing my examples above do you see anything in your config that differs that matches up with your URL mismatch somewhere….

    Clear as mud all of the above 😉

    #184826
    bp-help
    Participant

    @chiraggmodi
    Here is a free code snippet with instructions:

    Add Xprofile fields to the members directory


    You will place it in bp-custom.php if you do not know what this file is, then here is a link that will help explain it:
    https://codex.buddypress.org/plugindev/bp-custom-php/
    Good luck!

    @mercime
    Participant

    @giorgosnl Next time, please start a new topic as moderators could miss your post.

    But when I click on upload image it redirects to my profile and will change admins image??

    When I checked the issue you posted, the avatar was correctly changed in user’s profile but the update did redirect after completion to the Site Admin’s profile page. The issue was also posted at https://buddypress.trac.wordpress.org/ticket/5580 and fix is slated for BP 2.1.

    If your issue is not resolved with the patch after changing to one of WP Default themes and deactivating all plugins except BP to exclude conflicts, please feel free to create a new trac ticket using your WP username and password to log in.

    Stephen Edgar
    Moderator

    Also did you try updating via the ‘Group Forums’ Edit Screen UI?

    It should be correctly updating the bbPress Forum there for your BuddyPress Group, did it? did you try?

    Stephen Edgar
    Moderator

    As per your original post you are using bbPress v2.5.4, the bb_forums table are part of the legacy BuddyPress Group Forums/bbPress v1.x Forums.

    bbPress 2.x no longer uses these tables, all of bbPress 2.x forums, topics and replies are in the wp_posts table as custom post types.

    If you look in the bbPress Forums panel and hover your mouse over or edit one of the forums you will see the post ID in the URL, you will find that (educated guessing here) that most of your forums have a six digit ID’s?

    Each of those ID’s should correspond to the bbPress 2.x Forum attached to each BuddyPress Group Forum as you see in your wp_groups_groupmeta table.

    So if you look in the wp_groups_groupmeta table at your group ID 26 and that 127650 value does NOT match the bbPress forum ID you expect it should match.

    Grab the correct bbPress forum ID and write down the current ID if you need to revert, bakcup your database etc etc) then update that value and I think you should be sorted.

    Stephen Edgar
    Moderator

    Thinking about this further by updating the bbPress forum associated with the BuddyPress Group via the BuddyPress Groups edit should update the value in wp_bp_groups_groupmeta as I outlined above.

    Before you try the MySQL direct approach above could you try editing the group and seeing if the the bbPress forum ID is updated correctly please.

    Dashboard -> Groups -> Edit Group

    Then, on the far right is a dropdown to select the bbPress forum associated with the BuddyPress group, if you change this does it update forum_id in wp_bp_groups_groupmeta with the correct bbPress forum ID?

    r-a-y
    Keymaster

    @dainismichel – Cool, glad to hear of your rejuvenated relationship with BuddyPress 🙂

    Talk to @hnla or @mercime if you want to contribute to documentation. We can always use more help.

    #184774
    shanebp
    Moderator

    BuddyPress uses bbPress for forums.
    So you want to import into bbPress.
    Try asking bbpress support.

    dainismichel
    Participant

    thank you so very very much @r-a-y, from my vantage point, this thread is closed.

    this was a real pivotal moment for me and my “relationship” with buddypress.

    u got me considering contributing regarding functionality planning & concept design — is there a “workgroup” that discusses such issues? is there a documentation workgroup?

    best,
    dainis

    ps — if i remember correctly, i did edit some buddypress dox a while back. nothing much, just some precision edits.

    r-a-y
    Keymaster
    #184757
    r-a-y
    Keymaster

    You’ll probaly want to build a plugin using the Group Extension API:

    Group Extension API

    r-a-y
    Keymaster

    Sounds like you just need an Events plugin that allows posting from the frontend. BuddyPress might be overkill for this.

    If you do need to use BuddyPress and a frontend Events plugin that integrates with BuddyPress, then you’ll have to look for one that does this.

    #184745
    @mercime
    Participant

    @jeremiahward Did you download the file from buddypress.trac in the Original Format per link at the bottom of the page, i.e., index.php? And did you add that index.php to your WP child theme folder per structure I gave you in your own child theme? If you did, and it’s still not working for you because of some conflict, you can always go through the CSS route. Add this to your stylesheet:

    .activity form#whats-new-form {
    display: none;
    }
    #184705
    savor2
    Participant

    @djouonanglandry We are attempting to contact @megainfo (the author of BuddyPress Activity Privacy plugin) to report a bug. We are not interested in being solicited by a third party.

    #184672
    Mr-B
    Participant

    Hello
    I have been thinking more about sweetdate but it does not seem to be responsive on my mobile.
    I wanted to test your site on my mobile, but it seems your community and forum links might be dead. Did you abandon buddypress and / or sweetdate themes?
    Brian.

    #184663
    Łukasz Wilk
    Participant

    Hmm that’s really strange. It might be a good idea to contact BuddyPress developers if you are sure that this is the issue.

    #184662
    dainismichel
    Participant

    is this an even “better” solution from even longer “ago?” LOL

    https://buddypress.org/support/topic/how-to-calm-down-comment-nesting/

    — really — has the nesting issue been resolved by some “checkbox” that i am missing?

Viewing 25 results - 16,351 through 16,375 (of 69,016 total)
Skip to toolbar