Enable and Activate users (com_users\models\registration) - Joomla! Forum - community, help and support


hello guys,

i've been searching if there way, let users active , enable, once register?

i tried $data['block'] = 0; i'm still newbie variables , php code, please?

best regards,
raúl

this part of code:

code: select all

elseif ($useractivation == 1)
      {
         // set link activate user account.
         $uri = juri::getinstance();
         $base = $uri->tostring(array('scheme', 'user', 'pass', 'host', 'port'));
         $data['activate'] = $base.jroute::_('index.php?option=com_users&task=registration.activate&token='.$data['activation'], false);

         $emailsubject   = jtext::sprintf(
            'com_users_email_account_details',
            $data['name'],
            $data['sitename']
         );

         if ($sendpassword || $data['source'] == 'stddwl' || $data['source'] == 'mdldwl')
         {
            $data['activate'] = ''; //these 2 lines try create user without activation
            $data['block'] = 0;

            if ($data['source'] == 'stddwl')
            {
               $emailbody = jtext::sprintf(
                  'com_users_email_registered_with_activation_body_std',
                  $data['name'],
                  //$data['siteurl'].'index.php?option=com_users&task=registration.activate&token='.$data['activation'],
                  $data['siteurl'].'login',
                  $data['username'],
                  $data['password_clear'],
                  'welcome@bizagi.com'
               );
            }
            elseif ($data['source'] == 'mdldwl')
            {
               $emailbody = jtext::sprintf(
                  'com_users_email_registered_with_activation_body_mdl',
                  $data['name'],
                  //$data['siteurl'].'index.php?option=com_users&task=registration.activate&token='.$data['activation'],
                  $data['siteurl'].'login',
                  $data['username'],
                  $data['password_clear'],
                  'welcome@bizagi.com'
               );
            }
         }





Comments

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

uppercase letters in url - Joomla! Forum - community, help and support

Joomla! Update is not offering Joomla 3 - Joomla! Forum - community, help and support