klox7 VIP
Total posts: 914
29 Jul 2015 20:27

Hi,

I managed to create form with ChronoForms where users can claim existing Cobalt records on my site. In form they can select Cobalt record. With form they can also register.

I'm wondering what kind of query I have to make so when user registers the event checks selected record and change author to just registered user. But user is manually activated from my end so if user account is not OK I delete it. In that case author must change back.

Does anybody maybe have any suggestions?

Regards

Last Modified: 31 Jul 2015


Sergey
Total posts: 13,743
31 Jul 2015 10:12

klox7 I'm wondering what kind of query I have to make so when user registers the event checks selected record and change author to just registered user.

I think user plugin group and onUserAfterSave($user, $isnew, $success, $msg) event will do.

There is another event onUserLogin you may use that one. Because login can be done only by approved users.

Powered by Cobalt