Project:AJAX Comments
Version:6.x-1.7
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

It would be nice if ajax comments would have options in the drupal permissions area so that I could specify which roles can use ajax comments. So that if I want only administrtors to use ajax comments then I would check the administrator column.
This would be the best adition ;).

Compliments for your module, but I think this addition is a must.

Comments

#1

Status:active» fixed

Sorry, I don't see a strong reason to add permissions. If familiar with programming and very need this, you can implement it in your own helper module. You just need to set unset #ahah properties in comments buttons for non-admin roles in hook_form_alter().

#2

I saw in this the only way to make it work with mollom, because on my site, mollom is disabled for registered. I wanted to activate ajax comments only for them, the registered.

#3

Status:fixed» closed (fixed)

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

#4

Status:closed (fixed)» active

ad6 did you have any luck with this? i'd like to disable it for anonymous users too - using recaptcha and buedit and it's not very happy with ajax comments.

So I'd just like to disable it.

Unfortunately I'm not a very proficient Drupal developer but will try and make helper module if you can tell me where to look? Didn't fully understand the hints in #1

Thanks for the great module and all your work

Cheers

#5

@peashooter:
sorry i`m a drupal novice and have no drupal developer skills, yet.

#6

Thanks ad6 anyway!

@neochief

ok so I unset the ajax submit easily enough with:

unset($form['submit']['#ahah']);
unset($form['preview']['#ahah']);

in the right part of my custom_form_alter function.

But the problem is not really the Ajax submit, the problem is the javascript sliding form etc seems to not be able to handle a reCaptcha form. That's why I'd like to disable it for anonymous viewers.

Is there a simple way to do this? Disable a whole module for a certain role? Haven't been able to find a guide on drupal.org

Thanks

#7

Status:active» closed (duplicate)

Duplicate of http://drupal.org/node/375407

#8

Status:closed (duplicate)» active

It's not duplicate. I will fix this when I'll get free time, guys. Your help and patches are much appreciated.

#9

Status:active» closed (won't fix)

It doesn't appear that either neochief or myself will be able to have time to implement this, so I'm closing as won't fix. If someone develops a patch please re-open and I'd be happy to review it.