Need script to remove every registrant except the admin

Does anyone have a script that can delete and remove all content for every user except the admin user? We have more than 45000 spam registration requests that made it past the CAPTCHA and are blocked but still clogging the system, and manually deleting them one pageful at a time is just too slow.

User Account Date Field

I have created a user account date field.
I would like to be able to change this date automatically when a date changes in a specific content type.
Can anyone please point me in the right direction?

Security Question

my images styles were not working everytime i exported o copied a website, i saw that the drupal folder permissions was checked to "read only" now that i have uncheck it they are working fine, this is a windows pc of course

MY QUESTION IS
is there any security threat when i upload the files to a server? should i set the drupal folder back to "read only" before uploading?

please help

thanks

Organic Groups configuration

Hi,

looking for someone to configure Organic Groups, utilising roles, auto creating groups, and moneyscripts membership suite.

2 roles

1: solo user.
organic group is created based on username at signup. content is private to this group (only user can see/edit/comment content).

2: multi user:
same as above, but user can add other users to their group for edit/update/comment.

SOLVED: Rules 2: Getting data back from rules_invoke_event()?

After calling rules_invoke_event(), how do I get data back from it?

Say that I had an event called 'pre_dive' that I invoke just before bringing up the Dive form.

I'd like to be able to have an 'abort_dive' action. If the user sets up a rule with a 'pre_dive' event trigger that ends up using the 'abort_dive' action, I want the calling function to know, so it redirects somewhere else, and never brings up the Dive form.

What's the best way to do this? rules_invoke_event() doesn't have a return value and doesn't pass variables by reference.

Creating a module with a form sumbit

I was wondering if there is a way to create a form and execute a snippet of PHP code on submit. I am not too sure on whether or not to create a block for this specific task or how to create this form. I am very new with Drupal, any help is appreciated.

Thank you

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x