![]() |
Quote:
I tried almost every register_hook_name and none of them worked. it doesn't seem like it's possible to process this plugin without using the email verification function. That being said, if you only want to move a user to another primary group on registration without a custom field being checked, you can still do this: Add this: PHP Code:
Hook that with: register_addmember_process Activate and every member that registers on your site will have their primary group changed to ID: 11 (or whatever your choose) i hope this info helps and saves some people a lot of time. eric |
it should be hooked correctly in my forums "using 3.6.2" but it doesn't seem to work
here is my code, please let me know if something is wrong: "i use field5 by the way" Code:
if ($user['field5'] == 'Egypt') checked field matching checked case sensitivity is there anything else to check?! note: my field type is single selection menu, should i change it into radio buttons? note: here how the code is appearing in the plugins manager section: Code:
// Get the value for field 5 |
bumping thread
|
does this work in 3.6.4?
|
Yes. It's still running unchanged on my site.
|
This is VERY close to exactly what my members are asking for, but I would need one small change...
Most of my site is closed off to non-members, and so to make sure who I am adding, I have to moderate all new users for privacy reasons... So instead of adding new users directly to the group, what would I need to change to add them into the moderation queue instead? I'm decent with PHP and Mysql, but still learning ins and outs of vbulletin... any help? --edit 1-- Thinking about this more, is that POSSIBLE for a primary group? (if the user logs in while their primary group is still under review, wouldn't they then not belong to ANY group and be denied access?) --edit 2-- I hacked some code out, it may not be pretty, but it's working... https://vborg.vbsupport.ru/showthrea...31#post1129131 since it modifies the secondary user, i posted it over there... anyone have an idea on the edit 1 question? can that be done or would it throw a fit because they wouldn't have a group yet? |
i am having diffulculty getting this to work for me, i am using 3.5.4
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> |
can this mod work on vb 3.6.x? Im using 3.6.4 now.
|
Quote:
|
I installed this, but when i registered a new user to test it, it hasn't added it to the group at all. This is my very first plug in, so may be something i've done wrong. PLease help :)
Quote:
|
after 2 months of using this with vbulletin v3.6.2 here is what is happening:
- most of the time it is working fine "80% of the time" - sometimes instead of getting the user to the right group it gets him to REGISTERED "15%" - sometimes the user fails to get the activation email "not sure if this is caused by this plug in or not, but this is the ONLY plug in hooked with user_activate_process" "5%" This sample is taken from different 150 different registrations randomly from hotmail/gmail/yahoo/others users. will disable it within 24 hours and wait for another month to see what will happen and if there will be any change in percentages given above. |
Quote:
Bump!! |
is there a way to do this to users after they have registered?
how can i force users who have already answered the question into the usergroup? |
Hey amy.. should this plugin work with NON custom profile fields? ie: default ones?
I have noticed a pattern with certain spambots, they always use 'Man' as field1. Altering the plugin code to the following doesn't seem to work. PHP Code:
|
any ideas if this works with the latest version ?
|
Kinda.
Well, 90% of the time for me. :) |
Does this mod work in <hookname>register_activate_process</hookname> only?
I don't wanna use email for registration. |
*notification*
|
Hey guys,
For those of you interested, a guy has created a modification that will move users to a specified usergroup depending on a profile field selection. For me, when a user registers, they need to select whether they are male or female. Once they have registered, depending on whether they selected male or female, they get moved to the male or female user group i created. You are able to get this mod by sending an email to: hugh@alaweb.com and requesting the 'user profile group modification'. This mod was not made for free, so it will cost you $25.00 US. I have tested it with vb 3.6.5 and it works great, highly recommend! PM me if you want more info. |
Quote:
Hello, I have made it like this; switch($userinfo['field5']) { case "Male": $userdata->set('usergroupid', 30); break; case "Female": $userdata->set('usergroupid', 29); break; } and added beneath the the plugin Quote:
Thanks for a reply, of any advanced person with this script ;) |
please, could somebody help me :(
any moderators/coders? |
I have imported this into 3.6.8 after the making the changes but my test users aren't being put into the correct groups based on their registration field selection.
Can anyone help? This is a fresh install of vb and I have done the necessary changes as outlined in the instructions here? :( If I can get it working it would save me a lot of work, Thanks |
Can someone write cron something like this?
I mean automatic move to an usergroup if that user is Female? :) Thanks |
How can I do this with this mod.....
Spammers 99% of the time put a url in my FULL NAME field, and I would like to use this mod if possible. I installed it, and want any user that enters "http" in the FULL NAME field to be moved to the banned usergroup. This is the code I'm using but it doesn't work: HTML Code:
// Get the value for field 6 |
Is this still be supported? I tried installing on the board with no luck. 3.6.8pl2. Anyone?
|
Hi, It seems that you've got a very interesting mod here. :-)
I have Vbulletin 3.6.8 Patch Level 2 and vBadvanced CMPS v3.0 RC2 installed to my forum. Will it work to my forum or it works only with 3.5.x??? Should I try it?? Can you provide us with a 3.6.8 version that works for sure? (I haven't try it yet...because I am waiting for your answer first). :-) |
Can I use this mod to do this: all users that have EN language are automatically moved to usergroup: en_users
can I do this? I have also Vbulletin 3.6.8 Patch Level 2 |
it doesn't work for me, any help?
|
is there a way to move people who have already answered the question?
|
i would like to incorporate this into my postbit using this as a base so that the admin can change the users primary usergroup from the postbit .. can't figure out how any idea?
PHP Code:
|
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 04:15 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:
|