Greetings,

I've been looking for a toggle feature like this for a long time. Good Work!
I just have a couple of suggestions/requests

1. Would love a toggle to publish/unpublish comments (I have quite a few users who self moderate, and thats the biggest request I get for functionality.)
2. Would love these to be buttons instead of text links.
3. Would love to be able to assign roles that can access these functions.

Thats it.

Thanks
Anthony

Comments

kkaefer’s picture

1. That's perfectly doable. I'll implement it in the next couple of days/weeks.
2. That's hardly possible due to the design of the "links" attached to a node.
3. Feasible, but I'm not sure if it really makes sense. Only users with the appropriate permissions have these toggle links anyway.

anthon1’s picture

Title: Suggestions » Suggestions (CSS Buttons)

I implemented some CSS to make these appear as buttons. It helps to differentiate them from the rest of the links on the site.

Just thought I'd post it here if anyone wants it.


html.js a.fasttoggle_status {
  float: left;
  margin: 1px 2px 1px 2px;
  padding: 2px;
  width: 70px;
  border-top: 1px solid #FF9090;
  border-bottom: 1px solid #A10202;
  border-left: 1px solid #FF9090;
  border-right: 1px solid #A10202;
  background:#FF0000;
  text-align: center;
  text-decoration: none;
  font: normal 10px Verdana;
  color: white;
}

html.js a.fasttoggle_sticky {
  float: left;
  margin: 1px 2px 1px 2px;
  padding: 2px;
  width: 70px;
  border-top: 1px solid #FF9090;
  border-bottom: 1px solid #A10202;
  border-left: 1px solid #FF9090;
  border-right: 1px solid #A10202;
  background:#FF0000;
  text-align: center;
  text-decoration: none;
  font: normal 10px Verdana;
  color: white;
}

html.js a.fasttoggle_promote {
  float: left;
  margin: 1px 2px 1px 2px;
  padding: 2px;
  width: 70px;
  border-top: 1px solid #FF9090;
  border-bottom: 1px solid #A10202;
  border-left: 1px solid #FF9090;
  border-right: 1px solid #A10202;
  background:#FF0000;
  text-align: center;
  text-decoration: none;
  font: normal 10px Verdana;
  color: white;
}
kkaefer’s picture

Well, CSS "Buttons" are not buttons at all. Buttons work technically in a different way (they require a form to be submittable). Also, I won't include such stylesheets with the module. Theming should take place on the theme level, not on the module level. If you want the links to look different, just pop that CSS definition in your theme's CSS file.

kkaefer’s picture

Title: Suggestions (CSS Buttons) » Implement fast toggling for comments
inforeto’s picture

Well, images serve as buttons for purposes of replacing text links, to the code should work.
As you mention, this css should be placed with the user theming.

For #3, what is the exact permission required? "administer nodes"?
Which permission could be used for moderation?

anthon1’s picture

I suppose I wasn't clear.

I was wondering if access to these buttons could be assigned to user groups, I have a user group for DJ's at my radio station websites, and I would like them to be able to use fasttoggle but not my normal registered users. "administer nodes" would be correct, but only in reference to comment nodes.

kkaefer’s picture

Version: master » 5.x-1.x-dev
Status: Active » Fixed

Implemented 1 and 3.

anthon1’s picture

Thank you!

Awesome Module, this module has made my life so much easier. Everyday I was having to moderate the comments from the previous day, and now its so incredibly easy with the toggle. Not to mention the DJs (Im using this on Radio Station Websites) are able to take over some of those moderation duties.

I just wanted let you guys know. :D

Sincerely
Anthony

dries’s picture

Status: Fixed » Closed (fixed)