Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   General questions (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=17)
-   -   [SOLVED] Registration redirect and reg info massage (http://www.youjoomla.com/joomla_support/showthread.php?t=513)

anthonyh 03-30-2008 09:00 PM

Re:Registration page redirection in Newsline templ
 
Ok. I placed the line <jdoc:include type=\message\ /> in the index.php of the template. It works indeed now. Only its not a pretty solution as there appears a notice on top of the page with the message:

Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link when you get the e-mail before you can login.

But its on the same page. I was hoping for a redirection or something.

CProject60 03-30-2008 09:10 PM

Re:Registration page redirection in Newsline templ
 
Thats the way it suppose to work.

Welcome TO Joomla!

neo 03-30-2008 09:30 PM

Re:Registration page redirection in Newsline templ
 
anthonyh wrote:
Quote:

Ok. I placed the line <jdoc:include type=\message\ /> in the index.php of the template. It works indeed now. Only its not a pretty solution as there appears a notice on top of the page with the message:

Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link when you get the e-mail before you can login.

But its on the same page. I was hoping for a redirection or something.
open

components/com_registratiron/registration.html.php

add
Code:

<jdoc:include type=\message\ />
after line 29
it should look like this
Code:

<form action=\index.php\ method=\post\>
<jdoc:include type=\message\ />

now the massage is not on the top of the page but in mainbody

I am trying to see if I can get redirect working ,
if you guys know direct link to login page for J1.5 I need it to test the hack


neo 03-30-2008 09:38 PM

Re:Registration page redirection in Newsline templ
 
this is better add it in template index.php just above

<jdoc:include type=\message\ />
<jdoc:include type=\component\ />

I will try to add this as default in future templates

as for redirect I need direct link to login page

anthonyh 03-30-2008 10:00 PM

Re:Registration page redirection in Newsline templ
 
Hi, thanks for the help.

I dont have the com_registration in my components directory so that part I couldnt do. There is some info I found at: http://forum.joomla.org/viewtopic.php?f=431&t=265750

<div id=\maincolumn\>
<jdoc:include type=\message\ />
<div class=\nopad\>
<?php if($this->params->get(showComponent)) : ?>
<jdoc:include type=\component\ />
<?php endif; ?>
</div>
</div>

They say when you place this code it should be placed in the middle instead of the top of the page. But I dont know where to put this code in the template index.php

neo 03-30-2008 10:03 PM

Re:Registration page redirection in Newsline templ
 
follow the instructions above for template index.php ,
yes I made mistake it is com_user in J1.5 but you dont need it just edit template index.php

neo 03-30-2008 10:04 PM

Re:Registration page redirection in Newsline templ
 
ok this is link to login page

index.php?option=com_user&view=login

anthonyh 03-30-2008 10:27 PM

Re:Registration page redirection in Newsline templ
 
Im sorry, Im a little lost.
This goes beyond my current newbie skills. I tried to copy paste the codes mentioned above but I am definitely placing them in the wrong place in the index.php.
My pages get constantly messed up. I placed
Code:

<jdoc:include type=\message\ />
back at the top of the page and it works again with the notice on the top of the page.

neo 03-30-2008 10:29 PM

Re:Registration page redirection in Newsline templ
 
not done still working on redirect:0

neo 03-30-2008 10:38 PM

Re:Registration page redirection in Newsline templ
 
WHO IS THE MASTER!:)

heheheh you owe me an awesome review

ok ready ?
go

components/com_user/controler.php

line 268
change

Code:

$this->register();
to
Code:

                $this->register();
            $this->setRedirect(http://www.youjoomla.com);

if you want them to go to login page it would be

Code:

                $this->register();
            $this->setRedirect(index.php?option=com_user&view=login);


please clap now :)


All times are GMT -4. The time now is 10:51 PM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.