× Joomla Facebook Connect support forum

Topic-icon Side effect with CB Redirect Plugin

Active Subscriptions:

None
15 years 1 month ago #9818 by guero
Hello!

I'm using the CB Redirect Plugin where you can register for CB events and in case they do occure a specific URL gets loaded. I have setup a trigger for "onAfterUserUpdate" which gets triggerd in case the user has update his/her profile. This works fine in a CB only environment. If I signup a new user
via JFBCLogin it seems that not all the code of the function createNewCBUser() [communitybuilder.php] get completly run through. Because the user which gets created gets not the confirmed/approved flag which gets normally set within this function. So my assumption is that within createNewCBUser a CB function gets triggered which then triggers the "onAfterUserUpdate" event which then make the CB Redirect plugin to redirect the page to the specified URL. And the code which sets the db entries that the account is approved/confirmed never gets run through. I hope that this makes sense to you and you understand what I'm talking about ;-) If the process of JFBC Login is finshed I only see the CB messages "This user has not yet confirmed his email address and account! This user has not yet been approved by a moderator!"

If I disable the CB Redirect event trigger for "onAfterUserUpdate" the JFBCLogin works again. The user gets correctly created and confirmed.

Do you have any hint how I could solve this problem - maybe by shifting some pieces of the code so that the confirmation gets set before any "onAfterUserUpdate" could be triggered ?

Details of my environment:
CB 1.3.1
Joomla 1.5.23
JFBConnect 3.1.2
JFBCLogin 3.1.1
Authentication Plugin 3.1.0
System Plugin 3.1.2 3.2.1
User Plugin 3.1.0 3.2.0

Best regards
Oliver
The topic has been locked.