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

neochief’s picture

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().

ad6’s picture

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.

Status: Fixed » Closed (fixed)

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

halfiranian’s picture

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

ad6’s picture

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

halfiranian’s picture

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

halfiranian’s picture

Status: Active » Closed (duplicate)
neochief’s picture

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.

rjbrown99’s picture

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.