Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Useful Add On Request: Mark Post As Irrelevant
I came accross this feature over on some similar style forums called http://www.yayhooray.com
Basically, the topic starter (in his own discussion) and any admin/ mod are able to mark certain posts in a discussion as irrelevant. (a link next to edit would suffice with the same styling). Basically this would collapse the comment, so all other users would have to click "show comment" to see it, then when the click show it drops back to its normal position in the topic and you can click hide again. As its irrelevant to the topic. Simple css should do this. Anyone up for doing it? I'm sure it would help alot of people and also keep comments from going off topic in discussions.
To see what I'm talking about take a look here: (Not sure if you can see it without being signed in? But you can register if interested)
http://www.yayhooray.com/thread/78621/Yay-UK---Make-it-swap-it
designorant has his post marked irrlevant.
0
This discussion has been closed.
Comments
For example:
1. You'll need to add a new column to the comment table - there is a slick way of doing that in comment protection.
2. You'll need to add the new definitions for your new column to the database structure array - that's in there as well.
3. You will need to add buttons into each comment to mark irrelevant or not, that is also accomplished in this extension.
4. You will need to set up the ajax behind applying the irrelevance, that is also accomplished in this extension.
The only thing left to tackle after that is somehow applying the css to hide or reveal the comment. Right now I don't know of a way to do it. You might be able to do it with javascript - identifying all of the commentids that should be hidden and then javascripting them out of visiblity. I'm sure you can come up with something nifty...
<script type="text/javascript"> <!-- function handleParent(parentId) { myParent = document.getElementById("Menu" + parentId) if (myParent.style.display=="block") { myParent.style.display="none" } else { myParent.style.display="block" } } //--> </script>
I used that with a link like
<a href="javascript:handleParent(<?php echo $row_dbDVDs['id']; ?>)"><?php echo $row_dbDVDs['title']; ?></a>
Then for the part that disappears
<div id="Menu<?php echo $row_dbDVDs['id']; ?>" class="DVDDesc">
Hope that helps in some way.
Maybe a really unobtrusive system, that I'd be fine with, but once you start hiding comments just because some people didn't like the content is when it starts getting annoying.
My suggestions for this add-on:
1. Do not enable the filter by default
This is a complaint I share with SirNot as it encourages groupthink
Add a "Toggle Filter" link in the side panel (like the "text-only" mode).
2. Allow Admins to edit the link labels
Allow the admin to choose the labels they want to use for "Toggle Filter" or "Irrelevant Post." In some applications defined labels may be inappropriate, and the admins may prefer to use a toggle filter link labeled "View Central Discussion" and a comment toggle link labeled "Not Central" or something.