![]() |
|
C'mon, who do I have to kiss to get some help?
|
Can someone help me, I added this plugin to our website (XYZ Training) and when clicking on the activation link that is sent automatically to your email account I get a parse error. (See Attachment)
I think I installed the plugin correctly, and I made sure I enter the correct information into the code before I uploaded the xml file. I double checked the group ID, and the usergroup ID. I also verified the contents that will be entered into the text field. Thanks, Paul |
Has anyone got this to work on 3.5.4, and would like to help me out?
Thanks, Paul |
Paul, it's been running on my board since the early betas and still works on 3.5.4
|
Thanks for getting back to me. I wasn't sure if it still worked for 3.5.4. I'm working on an Activation Code text field that would appear during registration. This would allow for a community license to be issued to a school or company (we will be creating video tutorials).
After talking to other users they suggested that I use the secondary usergroup script that you created, this would allow me to easily demote a group of users back to a normal registered usergroup if needed. Will your primary or secondary script that you created work with text fields? Or only Radio & Check boxes? Thanks, Paul |
text fields will work as well.
|
amykhar, you wrote:
Code:
NOTE: This mod works for forums that require users to verify their email address upon registration. If your forum does not require users to verify their email address, you will need to use a different hook. If I have time, I'll test that variation. (Btw: I tried but it doesnt go) :( |
Is it possible to assign an user to an usergroup depending the value of the profile field after they have registered?
Let me explain. I run a hosting forum and some members don't even use their hosting account. I send out an email telling that they haven't used their (sub)domain and that need to reply to the email. After I send the email I edit their profile and select "Warned" from the drop down list. I also have "Suspended" (from the hosting) and "Terminated". |
It's possible to do it, just not with this mod.
|
If I use moderated public groups, the user is active in this group without moderation. Is there a workaround?
|
what do mean by moderated public group? A group where the leader must approve the members? This mod is not intended to work with such groups.
|
Quote:
btw, I have checked all the userids and options of the custom field. I am using custom groups which are not public and emails must be verified by users. Here is the php code from the plugin... Code:
Plugin PHP Code |
Hey. :) Well It was working for the secondary user-group. Although I found out that I needed one for the primary group. So Amykhar helped me out with this slight modification of the script... Works on my board (3.5.4).
PHP Code:
Paul F |
Because this mod requires you to change the code for it to work, you really need to be careful when making the changes. You haven't closed the braces on your first three if clauses, which is what's giving you the parse errors. I'm sorry, but I can't keep fixing these problems on an individual basis here and am referring any further issues to my premium support forum.
|
Hi Amy,
I need this mod to read a different field (referrer) rather than profile field. Basically the user is put into a usergroup based on what field is filled out as referrer (automatically passed from URL). Basically if they are my referral they are top dog permissions because they are somebody who I can trust, if a troll refers them then maybe they get put into a special group. Will this work do you think? Thx Matt |
Quote:
I plan on having available more usergroups in the future, and would like to have the individual be able to type in the group they are entering (I'd have a link to the possibilities on the registration page). Also, has their been any changes so that this could work all the time (for example, they can change their usergroup as they like through edit profile)? Thanks. |
can someone post some working, multi-item xml code? I got mine working for multiple raio buttons with the secondary code, but i switched all of those groups to 'non-joinable custom/primary' usergroups and now I get nothing showing up when Iclick the registration email link and I can't get it to work. I've trid every combination i can think of... Ive got the right field, correct spelling and syntax, groups... i think i need to see someone's successful code for a multi-item xml file to compare. tia
this is the code i have now that does not want to work: PHP Code:
|
This installed beautifully, Amy! I'm all about automation and this cuts down on quite a bit of work for me. Thank you!
|
happy to be of service :)
|
Hey,
I would like to have a the usergroup be based on the email domain. i.e. if the register with one domain they get put in a special usergroup but if it's any other domain they are simply put into registered users. Is this possible with this plugin? Thanks! |
Hello. You can definitely set it up so if a user is from a certain domain they get put into a special user-group. You just setup a text field, and point this script towards this text field, and your good to go. You could probably setup the script to do an "if and or" statement. If it's from this domain do this, otherwise do this. But I'm not the person to ask about how to program this... But it can be done.
Thanks, Paul |
Do you know off the top of your head what the variable is that holds the users email address? I could just get the domain off of that.
|
I don't know off the top of my head what this variable is. You could try contacting vBulletin.com support.
Thanks, Paul |
Anyone got any links to a similar system that would allow users to either switch their primary usergroup or secondary at any time via the control panel?
|
Thank you for this mod. It was just what I was looking for :)
on a side note though, if you don't have email confirmation, do you know which hook to use? |
I have a question is there anyway to mass add the users that have already registered to that usergroup?
if i ran this as a cron would it do it? // Get the value for field 11 $user = $db->query_first(" SELECT field11 FROM " . TABLE_PREFIX . "userfield WHERE userid = " . $vbulletin->userinfo['userid'] . " "); if ($user['field11'] == 'No') { $userdata->set('usergroupid', 18); } or if i add it as a hook somewhere else on the site? like forumhome? |
Can anyone tell me what other hooks I can use this doesnt work on our forums if they activate manually.
|
Quote:
i dont use email verification so is there any other solution to make this hack work cause i need it... |
How is this for 3.6? I absolutely need this one.
|
Working fine for me on 3.6.0 and 3.6.1 :)
|
I thought it wasn't working, but then through troubleshooting I realized that the value of my field couldn't have both numbers and letters. I switched it to just letters and my test account was properly switched into the new usergroup.
If I want to set up multiple "custom registration codes," can I duplicate this script and rename it, changing the values? |
Quote:
Amy this hack is exactly what I have been looking for except I have a couple of questions. I've set up a custom user profile field that asks the user upon registration if they are a reatil buyer or wholesaler and I'm using a radio button to ask them. Now with your code if they select on item it puts them in a certain user group, but what if they pic the other? do they just go in the default user group? I want it to place them in eaither group depending on what they pic. I hope this makes sense. |
This mod is more of a template for you to decide what you want to do with users based on that profle field. You code the logic of where they are sorted. The mod itself hooks to the right place and gets you started so you can see how to inspect the value of the field and how to put the user in a group.
|
Quote:
Could you help me out with this ... say my user field is 5 and my options are Dealer or End User my user group for Dealers is 10 and my user group for End Users is 11 would my code look something like this???: Code:
if ($user['field5'] == 'Dealer') |
Installed, it would be helpful to my forum :D
|
I need this plugin for my forum. :)
|
Quote:
(It works on 3.5.x and 3.6.x). |
Quote:
I think that all vBb customers use the newest vBb version. |
Quote:
Quote:
|
All times are GMT. The time now is 07:25 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:
|