Closed (won't fix)
Project:
AJAX Comments
Version:
6.x-1.7
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2009 at 14:22 UTC
Updated:
20 Oct 2010 at 20:15 UTC
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
Comment #1
neochief commentedSorry, 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().
Comment #2
ad6 commentedI 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.
Comment #4
halfiranian commentedad6 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
Comment #5
ad6 commented@peashooter:
sorry i`m a drupal novice and have no drupal developer skills, yet.
Comment #6
halfiranian commentedThanks 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
Comment #7
halfiranian commentedDuplicate of http://drupal.org/node/375407
Comment #8
neochief commentedIt's not duplicate. I will fix this when I'll get free time, guys. Your help and patches are much appreciated.
Comment #9
rjbrown99 commentedIt 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.