Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 19 replies - 1 through 19 (of 19 total)

  • jaumearagay
    Participant

    @jaumearagay

    My fault! I misspelled your name! I found you there! πŸ˜‰


    jaumearagay
    Participant

    @jaumearagay

    And your nick in the channel? I can’t find you there…


    jaumearagay
    Participant

    @jaumearagay

    And this is what we get at the groups’ listing page before the first group:

    http://pastie.org/10965263

    I’ve tried to paste it directly here but the forum does not allow me to do it. Sorry for the long-line format! πŸ˜‰


    jaumearagay
    Participant

    @jaumearagay

    I’ve left the other file’s modified version active.


    jaumearagay
    Participant

    @jaumearagay

    In the group page you get this output:

    int(91) string(21) "bp_groups_memberships" object(stdClass)#5452 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(91) string(21) "bp_groups_memberships" object(stdClass)#5465 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(91) string(21) "bp_groups_memberships" object(stdClass)#5465 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(91) string(21) "bp_groups_memberships" object(stdClass)#5465 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(91) string(21) "bp_groups_memberships" object(stdClass)#5751 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(91) string(21) "bp_groups_memberships" object(stdClass)#5753 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(91) string(21) "bp_groups_memberships" object(stdClass)#5753 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(6) string(22) "bp_friends_friendships" object(stdClass)#5774 (6) { ["id"]=> string(1) "6" ["initiator_user_id"]=> string(1) "6" ["friend_user_id"]=> string(2) "36" ["is_confirmed"]=> string(1) "1" ["is_limited"]=> string(1) "0" ["date_created"]=> string(19) "2016-09-06 09:22:58" } int(1) string(22) "bp_friends_friendships" object(stdClass)#5775 (6) { ["id"]=> string(1) "1" ["initiator_user_id"]=> string(1) "6" ["friend_user_id"]=> string(1) "5" ["is_confirmed"]=> string(1) "1" ["is_limited"]=> string(1) "0" ["date_created"]=> string(19) "2016-08-22 10:25:37" } int(6) string(16) "bp_last_activity" array(3) { ["user_id"]=> string(1) "6" ["date_recorded"]=> string(19) "2016-11-18 20:15:56" ["activity_id"]=> string(1) "1" }


    jaumearagay
    Participant

    @jaumearagay

    ADDITION means I leave the tweaked files in place and ADD this one? πŸ˜‰


    jaumearagay
    Participant

    @jaumearagay

    The code:

    Administradores de grupo
     $uncached group_ids: array(0) {
    }
     $group_mods before foreach: bool(false)
     $group_mods after foreach: array(1) {
      [0]=>
      object(stdClass)#5830 (1) {
        ["user_id"]=>
        int(0)
      }
    }
    Foto del perfil de Matilde RodrΓ­guez-Castellano
     $uncached group_ids: array(0) {
    }
     $group_mods before foreach: bool(false)
     $group_mods after foreach: array(1) {
      [0]=>
      object(stdClass)#5876 (1) {
        ["user_id"]=>
        int(0)
      }
    }
    Moderadores del Grupo
    Sin mods

    The screen capture: http://imgur.com/a/0H10D


    jaumearagay
    Participant

    @jaumearagay

    I can do it, for sure… But would you prefer an admin user to dive in it? The site is actually not open to the public, so we can tweak to our wish…

    I’ll do this step you ask me to but if you’d better check it yourself, just ask! πŸ˜‰


    jaumearagay
    Participant

    @jaumearagay

    The code pasted from the page:

    Administradores de grupo
     $group_mods before foreach: bool(false)
     $group_mods after foreach: array(1) {
      [0]=>
      object(stdClass)#5830 (1) {
        ["user_id"]=>
        int(0)
      }
    }
    [Here is the admin picture in the page]
     $group_mods before foreach: bool(false)
     $group_mods after foreach: array(1) {
      [0]=>
      object(stdClass)#5876 (1) {
        ["user_id"]=>
        int(0)
      }
    }
    Moderadores del Grupo
    Sin mods

    And the screen capture: http://imgur.com/a/E6R76


    jaumearagay
    Participant

    @jaumearagay

    Hi @dcavins! πŸ™‚

    I get this, see the image attached, but this is the summary: it gets called twice and the result is bool(false).

    http://imgur.com/a/tDmBr <– the screen capture in a group display page.

    Thanks! πŸ˜‰


    jaumearagay
    Participant

    @jaumearagay

    I have:

    a.- Updated to BP 2.7.2. <– Still same problems but warnings hidden by my code.

    b.- Removed the buddypress folder in my theme with edited files and checked. <– Still same problems: Warnings (as my code did not hide them), “Moderators” tag and “no mods” string.

    c.- Downloaded and activated Twenty Sixteen theme. <– Same as in previous step.

    And I get the same warning explained in the first entry in this post so it’s not about my modified files and it’s not about a theme problem.

    There are still two problems:

    1.- The warning points to get_group_moderator_ids( $group_id ) in /wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php

    I don’t have (or have had) moderators in any group so, “Creating default object from empty value” <– What default object from what empty value?

    2.- The problem is somewhere else: In line 33 of the group-header.php file (in groups/single/ ) we find this line:

    if ( bp_group_has_moderators() ) :

    where β€œbp_group_has_moderators()” is giving a false β€œtrue” value as I don’t have moderators in any group so it should not execute in the first place. And after the Moderators tag it says “no mods”, so it on a later step recognizes there are no moderators!!!

    Has the bp_group_has_moderators() function or get_group_moderator_ids( $group_id ) function been altered? Or the data about mods and/or admins in the groups?

    Because one of them creates two warnings (one before listing the admins and one before listing the mods) that were not there before and also shows a “Moderators” tag that did not appear as the if ( bp_group_has_moderators() ) returned the FALSE value my no-mods groups “deserve” (which it later recognizes when adding the “no mods” string) that now returns this “buggy” TRUE value and shows the tag.


    jaumearagay
    Participant

    @jaumearagay

    @manueldo, I’m using a child theme for Canvas from Woo.
    I’m so busy this week with something else… I’ll update to 2.7.2. probably on the weekend. I’ll keep you posted! πŸ˜‰


    jaumearagay
    Participant

    @jaumearagay

    Does anyone have the same problem or do I have a fight between plugins goin on? πŸ˜‰


    jaumearagay
    Participant

    @jaumearagay

    It’s a PRIVATE group I talk about, not a HIDDEN one. My fault! πŸ˜‰


    jaumearagay
    Participant

    @jaumearagay

    Has anyboby tried this, please?
    Can you join a private group either being an admin or not?
    Is this a bug or is this something that affects only my install?

    Thanks for your time! πŸ˜‰


    jaumearagay
    Participant

    @jaumearagay

    Hey @danbp!

    Any idea on how to solve this one? πŸ˜‰


    jaumearagay
    Participant

    @jaumearagay

    It does @danbp! πŸ˜‰


    jaumearagay
    Participant

    @jaumearagay

    Am I the only one having this problem?!

    Could you make one of your groups private and try to join it to see if you get the same problem, please?

    I want to know if the problem is from BP or something in WordPress messing with BP.

    Thanks in advance! πŸ˜‰

    Jaume.


    jaumearagay
    Participant

    @jaumearagay

    I copied that code. You are right. One extra problem… Activity still exists in the upper right corner menu that pops from the user name. Any idea on how to hide/disable that?

    Thanks! πŸ˜‰

Viewing 19 replies - 1 through 19 (of 19 total)
Skip to toolbar