![]() |
Someone needs to update this for 3.7 Gold. It's causing registration errors for my users.
|
This is perfect for my forums but is this 3.7 Gold compatible?
|
Anyone using this successfully on 3.7 gold or 3.7.1??
|
I, too, really need this for 3.7.1!
|
Quote:
Quote:
THANKS! This is the answer I've been looking for. It will automatically ban my spammers. Edit: Also works on 3.7.4 p1 |
This is an old one but I love it.
Spammers usually enter the same number into my location profile field. Bam, automatic ban. Just banned two more. They have gotten past answering questions which I'm sure stops a few, and this mod is just another measure. |
Thank you Amy this is exactly what my client needed to perfect their forums.
Now all I need to do is learn how to do something like this with a cron job so that users who are already registered can choose something in their profile to 'upgrade' their account and set their primary usergroup. |
There we go, I went ahead and wrote a Scheduled Task that every 10 minutes would check for anybody in the primary group 'Registered users' with the custom profile field9 set to 'Yes' and move them to usergroup 9, and vice versa. Sorry in advance for unclean code and please don't hate.
Place the code in the box below in a .php script in your /includes/cron folder and create a new scheduled task pointing to that script. Replace 'field9' with the field you want to check. Replace 'Yes' and 'No' with the values of your field9 option. Replace 'New member' and 'Introductory grower/distributor' with your chosen user titles. Replace the usergroup numbers 2(Registered member) and 9(Custom usergroup) on the MySQL queries with the numbers of the usergroups you want to migrate to and from. Sorry I can't go into more detail, sort of in a hurry to get this job done for my client. I don't recommend attempting this if you are not comfortable editing SQL queries. Be sure to test this out on your forums using the 'Run now' option from the Scheduled Tasks section of the control panel, if you have messed up the syntax at all the control panel should return an error and send a copy of the error to the board owner via email. I recommend backing up your databases before trying this out just in case you do something wrong, I don't hold any responsibility for lost or corrupt data in your database. P.S. I recommend putting a notice in your custom usergroup description letting the user know that it can take up to 10 minutes for the changes to take effect to avoid confusion. (Or whatever interval you set your scheduled task job to.) PHP Code:
|
Hi there,
Does it work on the latest vB 3.8? I need this. Thank you all. :confused: |
i need this for the latest vb too!! can you please update it!!
thanks! |
All times are GMT. The time now is 10:50 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|