Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • danbrellis
    Participant

    @danbrellis

    @abysshorror & @magicroundabout
    I almost have it down, but I’m still working on it. I am developing it as a plugin of sorts, though I never planned on releasing it, so it’s not entirely compatible all around. I can send you both what I’ve got so far and I’d love to collaborate with either of you to turn this into a real plugin.

    Basically, I set up a value for groups to see if the group should be moderated, then if they are moderated all new posts get the meta value of pending. I then filter the activity stream to exclude activities which have that meta value, unless it’s an admin, in which case they get a link to approve it.

    All is pretty well, though I’m still struggling with filtering the activity in the most efficient way. You can download what I’m working on here: http://pastebin.com/239ZjLLq. You can also add this to style posts that need to be moderated.

    `.activity-list li.pending {
    background-color: #FF9;
    }
    .activity-list li.pending .moderation {
    float: right;
    }`

    Remember, it’s a work in progress and may not work out of the box on your install. I’ll answer any questions if I can though. Like I said, I’d really like to collaborate and make this a useful plugin.


    danbrellis
    Participant

    @danbrellis

    Okay, so I’ve sort of abandoned this method and have been trying to figure out the bp_has_activities filter. It seems the ‘current documentation’ (https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/) is actually outdated because there is no mention of an exclude parameter which was indeed added to buddypress 1.5!

    I need to modify the activity stream and exclude all updates and comments if they have a specific meta. I can get a list of ids to include or exclude, but I’m lost at how to appropriately apply the filter from within a plugin.

    Again, I’d really appreciate the help. I’m having an impossible time finding current discussions or docs for the bp_has_activities filter for buddypress 1.5.


    danbrellis
    Participant

    @danbrellis

    Anyone have any ideas on this? Thanks!


    danbrellis
    Participant

    @danbrellis

    Brilliant! This worked perfectly. Thanks very much :)


    danbrellis
    Participant

    @danbrellis

    bump?


    danbrellis
    Participant

    @danbrellis

    @Chad, did you ever figure out a solution to this? I am trying to do a similar thing. Please let me know. Thx


    danbrellis
    Participant

    @danbrellis

    Okay, fixed this as well…. js file uses j(“input#aw-whats-new-submit”) as the selector. I got it working now. Nice plugin, very useful.


    danbrellis
    Participant

    @danbrellis

    Edit* I corrected the <? to <?php on the loader.php file and tried reuploading it. The error went away and the textareas show the tinymce. But now when I enter content and click submit (in the activity stream for instance), I get an error- "Please enter some content to post.".


    danbrellis
    Participant

    @danbrellis

    Are there any updates to this? I changed the selectors in the javascript, but still nothing. Also, on activation, I received “The plugin generated 350 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”, though I couldn’t see the output…


    danbrellis
    Participant

    @danbrellis

    Any updates on this? A feature like this would be ideal for my development site.


    danbrellis
    Participant

    @danbrellis

    Any word or progress on this? This would be extremely useful for me!

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