Bury/Promote Comment?

Flying Drupalist - September 13, 2008 - 22:28
Project:Extra Voting Forms
Version:6.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I understand how to increase or decrease the number of points assigned to a comment, but how to set it so that the css class of the comment would change after a certain point?

Sorry if this was addressed already, I couldn't find the instructions.

#1

mercmobily - September 13, 2008 - 22:46

Hi,m

Sorry, I have to ask you to please clarify your question...
Can you please add a bit of detail?

The form is point-agnostic. I don't think there is currently a way to do that. There _is_ a class assigned if the node the form is referring to is promoted or not promoted... but I don't think that's what you're asking!

Merc.

#2

Flying Drupalist - September 13, 2008 - 23:02

On digg for example, if a comment passes a certain negative threshhold the comment is shrunken and marked as 'buried'.

Well you just answered my question. I guess the issue is that the form doesn't do anything about the points? Where would I have to go to enable some kind of affect to the comment? Trigger doesn't seem to have anything for comments.

#3

mercmobily - September 13, 2008 - 23:11

Hi,

ah, I now understand your question...
There are two possible ways.
The first one is to use the comment_bury_promote module -- which I wrote! -- which will allow you to actually kill a comment server-side.

But! If you want to have some kind of effect on the client as well, you will need to do some manual Javascript programming. Basically, your javascript will have to apply some kind of magic if the threshold is < of a certain number.

The client and the server side of the story are somehow separate... but not quite.

Does this make sense?

Merc.

#4

Flying Drupalist - September 13, 2008 - 23:16

Ahh of course, comment bury and promote!

Well I am happy with killing a comment server-side, so I'll leave the javascript for another year.

I suppose I'll wait for bury promote to come to Drupal 6, thanks for answering my question.

#5

mercmobily - September 14, 2008 - 01:40

Hi,

No worries :-D
I will prot comment Bury/Promote soon enough!

Merc.

#6

mercmobily - June 3, 2009 - 05:48
Status:active» fixed

Hi,

Issue is fixed...
It looks like I will port comment bury/promote soon enough...

Merc.

#7

System Message - June 17, 2009 - 05:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.