Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • I hadn’t noticed that, I hope it IS intended behaviour as I always found it annoying having small edits bump the post back to the top.

    ok, using $modgroup = new BP_Groups_Group(1); instead *seems* to be working, so the only thing I can think of is I read groups_get_group leverages WP cache, so I’m assuming a mod logs in, goes to the backend, it does a check if they are in the group, sets [“is_member”] => 1 and caches it, then the next person logs in, goes to the backend, and it retrieves [“is_member”] === 1 from the cache.

    and some (not all) other users that ARE members can’t approve images.

    I’ve also tried $modgroup = groups_get_group(‘group_id=1’); instead of using an array, and it fixed it for my test user, but randomly some other users can approve images, even though they aren’t members =/

    sounds like a script isn’t being loaded, are you using the Buddypress template pack? If so go to appearance/BP compatability and make sure the JS isn’t disabled. Otherwise try disabling all your other plugins and seeing if it works then, if it does enable a plugin at a time until you find the one causing issues.

    Ignore that, I had a look at the messages_new_message function and realised it should be sending a notification so I guessed the issue was I was testing using the same id for uploader and denyer, i changed to another uploader and it worked perfectly :)

    Thanks so much for that, it’s used within a plugin so I used:
    `
    function bp_send_image_denied_message($sender_id, $recip_id, $subject, $message) {
    global $bp;
    if ( $thread_id = messages_new_message( array(‘sender_id’ => $sender_id, ‘subject’ => $subject, ‘content’ => $message, ‘recipients’ => $recip_id ) ) ) {
    bp_core_add_message( __( ‘Image Denied Message was sent.’, ‘buddypress’ ) );
    } else {
    bp_core_add_message( __( ‘There was an error sending that Private Message.’, ‘buddypress’ ), ‘error’ );
    }

    } `
    and pass the required bits, the only thing it’s not doing is adding a notification item, is there an easy way to add that?

    Again, thanks a lot, I would have spent ages trying to figure that out.

    hmm, actually, would a better way to deal with this be to set the capability to view the menu to read and put an if (user_is_mod()) add_submenu_page

    Hi, thanks for replying, any pointers on profiling queries? lol.

    I have added images to the users profile, so I suppose people could be going to other members profiles to look at their images (I haven’t yet put any paging in).

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