MyBB Community Forums

Full Version: CPALead Postback to change usergroup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys, anyone know how to use CPALeads postback fuction to change someones usergroup on a survey being completed?

Ive read the guide on the CPALead site but it isnt very helpfull for mybb database editing.

Any ideas?

Thanks

I have attached a small script that will act as your postback script. It seems logical, but I have not tested it.

Before uploading it to your forum's root directory, you'll need to edit one variable according to what usergroup you want the user to be added to.

On line 13, change the 'X' to the id of whatever usergroup you wish to use. Then, upload it to your forum's root directory, and add the url to your CPALead control panel. From there, you should get it working.

If the script provided does not, please let me know, and I'll see if I can get it working. Smile
[attachment=21856]
Thanks, ill try that.