Re: Filtering Activity Loop with Meta Values
@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.