[RSS Feed/News] Extending Registration Complete

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hello,

I am extending registration complete class, Other code is working fine when registration completes. but when I try to get User ID of user registered it is returning 0 as user id instead of original user ID.

This is my code sample.

PHP:

Code:
class RegistrationComplete extends XFCP_RegistrationComplete
{
    public function actionIndex()
    {

        $visitor = \XF::visitor();

        
        $visitor_id = $visitor->user_id

    }

}


Please help me getting user...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom