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.
[
attachment=21856]