Redirect URL after Registration ???

13 years 2 months ago #157722 by BlackSunel
Redirect URL after Registration ??? was created by BlackSunel
Hi there

How can I give a REDIRECT URL to User's Profile just after registration ???

Hope to hear from somebody soon.

Cheers
Alex

Please Log in to join the conversation.

13 years 2 months ago #157747 by nant
Replied by nant on topic Re: Redirect URL after Registration ???

BlackSunel wrote: Hi there

How can I give a REDIRECT URL to User's Profile just after registration ???

Hope to hear from somebody soon.

Cheers
Alex


Nope - there is a redirect to go there after first login.

Please Log in to join the conversation.

13 years 2 months ago - 13 years 2 months ago #157758 by BlackSunel
Replied by BlackSunel on topic Re: Redirect URL after Registration ???
Hi

I downloaded this Autologin plugin - extensions.joomla.org/extensions/access-a-security/authentication/12640

for joomla 1.5

And it works ... after clicking SUBMIT when finishing the registration the user automaticaly is logged .. BUT .. I'm getting this 2 messages

1.This user has not yet confirmed e-mail address and account!
2.This user has not yet been approved by a moderator!

But I have these options set to NO in CB settings ...

Even when I want to enter in profile it says these messages.


Here is the code of the plugin :

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.plugin.plugin');
class plgUserAutolog_after_registration extends JPlugin {
//Constructeur
function plgUserAutolog_after_registration( &$subject ) {
parent::__construct( $subject );
}
function onAfterStoreUser($user, $isnew, $succes, $msg){
// just startup
global $mainframe, $model;
$usersipass = JRequest::getvar('username');
$usersipass = JRequest::getvar('password');
$mainframe->login($usersipass);
// You ca use the "return" hidden input in your form template
$return = trim(JRequest::getvar('return'));
if ($return!="") {
$mainframe->redirect(JRoute::_(base64_decode($return)));
} else {
$mainframe->redirect(JRoute::_('index.php'));
}
} // fonction
} // class
?>


Please have a look .

Cheers
Alex

Joomla 1.5.22 - CB 1.3

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.184 seconds

Facebook Twitter LinkedIn