Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 3,426 through 3,450 (of 5,233 total)
  • Author
    Search Results
  • kyradk
    Member

    My client “accidentally” upgraded a buddypress pack about a month ago. I posted it on the forums here and someone responded telling me to delete that file. Unfortunately, when I try to look up that post here I can’t find it. When I click the link to see my activity/posts it takes me to a page not found error.

    Sooo. That did the trick. Before I deleted that folder the entire site was broken and deleting it fixed it. However, something that we missed is that NOW when you go to the activity section of the community on the site we get this error:

    Fatal error: Call to undefined function bp_is_single_activity() in /home/kerilyn/marriedtoachef.com/wp-content/plugins/bp-moderation/classes/bpModFrontend.php on line 65

    Here’s a link: http://www.marriedtoachef.com/activity/ though I’m not sure you can see it if you’re not logged in as a user.

    Can someone please help me with this issue? Thank you so much!

    1. Which version of WordPress are you running? 3.1.3
    2. Did you install WordPress as a directory or subdomain install? In root directory
    3. If a directory install, is it in root or in a subdirectory? “
    4. Did you upgrade from a previous version of WordPress? If so, from which version? No
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes
    6. Which version of BP are you running? How do I find this info??
    7. Did you upgraded from a previous version of BP? If so, from which version? No
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? Yes, many: AddToAny: Share/Bookmark/Email Buttons, Advanced Most Recent Posts Mod, AVH First Defense Against Spam, Block Bad Queries (BBQ), Buddypress Humanity, BuddyPress Moderation, BuddyPress Private Community, Buddypress Sidebar, CommentLuv, CommentLuv, Erocks Dashboard Lockdown, FD Feedburner Plugin, Feedburner Email Widget, FeedBurner FeedSmith, Feed Stats for WordPress, Google Analytics for WordPress *these were already installed when the site was working fine before the accidentally update and subsequent folder deletion
    9. Are you using the standard BuddyPress themes or customized themes? Customized
    10. Have you modified the core files in any way?
    11. Do you have any custom functions in bp-custom.php?
    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    13. Please provide a list of any errors in your server’s log files.
    14. Which company provides your hosting? Dreamhost
    15. Is your server running Windows, or if Linux; Apache, nginx or something else? Not positive but I think Linux

    #25411
    GoBangAshley
    Participant

    I’ve asked this question before but was unable to find my original post i’m afraid. I had some more thoughts about it…

    I have a community of only about 30 users and 1 ‘consultant’. I want to prevent the users from being able to send private messages to each other but I would like them all to be able to send messages to the consultant.

    I don’t think there’s any straightforward way of doing this based on roles or similar, so I wondered if I could create friendships between the consultant and the 30 members (but not between each other) and in the ‘Member Buttons’ part of functions.php, test for friendship and only display the private message button if there is a friendship.

    Unfortunately I don’t know where to look for the functions (or are they called actions?) bp_add_friend_button and bp_send_private_message_button

    Does this sound like a possible hack just so I can limit private messaging?

    I’m using CSS to hide the add / cancel friendship button by the way.

    Ross Wintle
    Participant

    Hmm…not sure what went wrong with my last attempt at posting this. Anyway, lost all my text and don’t have time to type the WHOLE thing in again now.

    I’ll start with just some questions this time:
    1) Does anyone know if something changed between BP v1.2.8 and BP v1.2.10 that meant that posts to private groups no longer appear in the “All Members” activity feed?
    2) If the answer to 1) is true – is there anyway to get private group posts back into the All Members feed?

    Thanks

    Ross

    Boone Gorges
    Keymaster

    I think that this is a decent candidate for a patch. Feel free to work it up as one and attach it to that ticket.

    wiking
    Member

    for sure – but the bug is open for 15 months ( https://buddypress.trac.wordpress.org/ticket/2576 ) and wasn’t fixed – and therefore i thought if you tidy the code up you could add it to core as a patch.

    Paul Wong-Gibbs
    Keymaster

    You should never, ever, edit core files.

    wiking
    Member

    As there was a php error if the user who uses the forum directory is not logged in the following modification was done:

    Code:
    //Get current user
    $current_user = wp_get_current_user();

    //Fetch forums IDs to which user has access
    $i = 0;
    $result = mysql_query("SELECT meta_value FROM oba_bp_groups_members, oba_bp_groups_groupmeta WHERE user_id = ".$current_user->ID." and oba_bp_groups_members.group_id = oba_bp_groups_groupmeta.group_id and oba_bp_groups_groupmeta.meta_key=’forum_id’")
    or die ("MySQL-Error: " . mysql_error());
    while ( $row = mysql_fetch_array($result)) {
    $res[$i] = $row["meta_value"];
    $i++;
    }

    //Implode forum ids into a comma sperated list e.g: 3,5,7
    if ( !empty( $res ) )
    $comma_separated = implode(",", $res);

    // Set this for groups
    //Old //$parts[‘groups’] = "(gm.meta_key = ‘forum_id’ AND gm.meta_value = t.forum_id)";
    $parts[‘groups’] = "(gm.meta_key = ‘forum_id’ AND gm.meta_value = t.forum_id AND gm.meta_value IN (".$comma_separated."))";

    You also need to add the functionality that logged in users can potentially see all forums (the above code then filters out forums the user is not member of):

    after

    Code:
    // Are we a super admin?
    elseif ( is_super_admin() )
    unset( $parts[‘private’] );

    add

    Code:
    // Allow the forum directory to display private forums for users
    elseif ( is_user_logged_in() )
    unset( $parts[‘private’] );
    Sirup
    Member

    This problem is solved.
    In in “bp-groups-filters.php” in function “function groups_add_forum_where_sql( $sql = ” ) ” change the following (oba is the database prefix):

    Code:
    //Get current user
    $current_user = wp_get_current_user();

    //Fetch forums IDs to which user has access
    $i = 0;
    $result = mysql_query("SELECT meta_value FROM oba_bp_groups_members, oba_bp_groups_groupmeta WHERE user_id = ".$current_user->ID." and oba_bp_groups_members.group_id = oba_bp_groups_groupmeta.group_id and oba_bp_groups_groupmeta.meta_key=’forum_id’")
    or die ("MySQL-Error: " . mysql_error());
    while ( $row = mysql_fetch_array($result)) {
    $res[$i] = $row["meta_value"];
    $i++;
    }

    //Implode forum ids into a comma sperated list e.g: 3,5,7
    $comma_separated = implode(",", $res);

    // Set this for groups
    //Old //$parts[‘groups’] = "(gm.meta_key = ‘forum_id’ AND gm.meta_value = t.forum_id)";
    $parts[‘groups’] = "(gm.meta_key = ‘forum_id’ AND gm.meta_value = t.forum_id AND gm.meta_value IN (".$comma_separated."))";

    wiking
    Member

    I still struggle to get this view running corectly.

    I managed to find out how to pull all group ID’s for a given userid:

    SELECT group_id FROM `xyz_bp_groups_members` where `user_id` = 1

    And how to get all forum_id’s for a given group:

    SELECT meta_value FROM `xyz_bp_groups_groupmeta` where group_id = 1 and meta_key = ‘forum_id’

    My idea was to do a join as i didn’t know how to follow your directions correctly @boonebgorges.
    Therefore i tried to modify the original $sql (line 83 in bp-group-filters.php):

    $sql .= ‘JOIN ‘ . $bp->groups->table_name . ‘ AS g LEFT JOIN ‘ . $bp->groups->table_name_groupmeta . ‘ AS gm ON g.id = gm.group_id ‘;

    with this extended version:

    $sql .= ‘JOIN ‘ . $bp->groups->table_name . ‘ AS g LEFT JOIN ‘ . $bp->groups->table_name_groupmeta . ‘ AS gm, oba_bp_groups_members AS gu ON g.id = gm.group_id AND gu.group_id = gm.group_id’;

    unfortunately i have not enough know-how how the buddypress-core is working correctly. Any hints on how to do this properly?

    Many Thanks!

    #122947

    In reply to: Privacy????

    aces
    Participant

    I’m using the walled garden technique for some privacy and have adapted it for bp 1.5.* !

    This is based on https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/members-privacy-how-can-i-hide-members-profiles?topic_page=2&num=15#post-102784 and needs to go in a bp-custom.php file…

    `
    function sh_walled_garden()
    {
    global $bp;
    if( bp_is_register_page() || bp_is_activation_page() || bp_is_page( BP_FORUMS_SLUG ) || bp_is_page( BP_GROUPS_SLUG ) )
    return;

    if( ! bp_is_blog_page() && ! is_user_logged_in() )
    bp_core_redirect( bp_get_signup_page() );
    }
    add_action( ‘wp_loaded’, ‘sh_walled_garden’ );
    `
    Originally add action was to get_header but now the bp template loads the header first so I had to move it…

    Before that one had to put a hook into the page template header to load the function – not sure which would now be best or if that hook is ok to use (It’s the only one i found that worked)?

    The above function hides members and activity from those not logged in but enables forums and groups for everyone – see variation here

    archonic
    Participant

    That was a terrible experience, but at least I know BP much better now. It was a combination of issues – ajax.php silently failed to load with the theme files on the production server, despite being identical to the theme files on staging (I still can’t explain that), and there was the just recently patched BP core bug with the red “You do not have access to this group” error.

    Resolved =)

    #122331
    archonic
    Participant

    The issue has been unravelling here:
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/cant-request-private-group-membership-you-do-not-have-access-to-this-group/

    I started from scratch on the production server here:
    http://dhcworks.carleton.ca/version2/

    With fresh files and a fresh DB, the issue came up again. Staging is here and hasn’t had any problems:
    http://dev.archonic.com/carleton/dhc/

    You can login using username and password “tester” on both sites. Note that on production, the buttons to join, leave, and request aren’t showing on the group directory or group home.

    UPDATE: just noticed r-a-y’s patch here – https://buddypress.trac.wordpress.org/ticket/3687. I’ll try it and report back.

    archonic
    Participant

    This bug is potentially costing me a client, I’ve got to get a gasp on it soon. I reinstalled everything and started with a fresh database and the issue is still there. So let me ask a more broad question –

    What does BP ask of a user to be eligible to join a group (public, private and hidden)?
    User must be logged in, and….?

    #122241
    Paul Wong-Gibbs
    Keymaster

    As you can see from that ticket, no, no-one’s fixed it yet. Patches welcome.

    gwu123
    Participant
    #122886
    jnnkn
    Member

    it happens only with my friends

    #123206
    Paul Wong-Gibbs
    Keymaster

    Does it break on all users, or just one particular user? If just one, what is the username (login name) of that user?

    #123319
    jnnkn
    Member

    buddypress.1.5 and using bp-default theme

    #123317
    @mercime
    Participant

    BP version? Are you using bp-default theme or custom theme? New or updated installation? Any messaging plugins activated?

    #25334
    jnnkn
    Member

    Hi guys i have a problem that when i click on private message button on my friends profile compose page opens but the send to is empty while when i press the private message button on my non friend member it automatically enters the members name near the send to please help i couldn’t fix it i will go crazy

    #122549
    ogeeku
    Member

    I am getting a similar error on friend requests as well as private messages being sent since the upgrade. Can you give an example of the code fix that you placed? (Example of commenting out within php)

    Thanks so much!

    archonic
    Participant

    Small update: I enabled the friending component of BP to invite a user to a group and that worked. However, in what might be an unrelated case, hitting “new topic” on all pages that have that button, as any user, does nothing. I believe it’s related – there’s a common condition failing for a number of functions due to botched permissions.

    Perhaps a drag and drop update to BP 1.6 bleeding messed up the user table? I believe I did that after the issue showed up.

    archonic
    Participant

    Thanks Ray, I’ll keep an eye on that ticket. I’m not sure it’s what I’m experiencing however. Despite having the same WP, BP, plugins and theme, the buttons to join both public and private groups do not appear for any user, only on my production site. When on the page for a private group you’re not a member of, there is a tab link to request membership which will show the “You do not have access to this group” error, but the issue is higher than that since joining any group is somehow unavailable.

    wiking
    Member

    i try to get it running and provide my version if it works.

    Boone Gorges
    Keymaster

    Probably at least some custom SQL is needed. Something along the lines of:
    (1) doing an additional query to get a list of the user’s groups and the forum_ids for those groups
    (2) limiting the main forum topic query WHERE ( forum_id IN ( {$user_forums} ) OR group_status = ‘public’ ) (not sure if group_status is available here, I would have to look)

    > is it still that hard to implement the bugfix
    It’s not very difficult technically, but it will introduce at least one or two more queries on what can already be a database-intensive page load. If you can provide a workable patch, I’m sure it would be happily considered.

Viewing 25 results - 3,426 through 3,450 (of 5,233 total)
Skip to toolbar