[TYPO3-project-seminars] redirect url - not working

Cathy Stephens cathys at northcoastchurch.com
Thu Sep 6 19:21:00 CEST 2007


Thank you Oliver for your suggestion.  It has gotten me further along
but not quite there yet.

Added config.linkVars = redirect_url to template on login page.

Now when clicking on registration for an event, I see the proper
redirect reference on the login page that it directs me to.  As I begin
to create an account, I see the proper redirect reference  on the create
account form (still on login page) and on the preview account form
(still on the same login page).

But when the final "create account" button is pushed, I am still on the
login page with the message that the account has been created and I am
logged in.  But now the redirect url info is replaced in the top address
bar.  Instead I see this info in the address bar:

redirect_url=&user=cat300&pass=cat30&pid=31&logintype=login

And since I am on the login page already, I am not redirected to the
event registration page.

As far as using the onetimeaccount extension...that is a possibility.
The reason I have not looked at this as yet is I like the feature where
a user can see what he signed up for using the My Events option.  I
expect this would not work for the onetimeaccount option.  But it is a
possibility and I may look into using it.


Cathy Stephens 




-----Original Message-----
From: typo3-project-seminars-bounces at lists.netfielders.de
[mailto:typo3-project-seminars-bounces at lists.netfielders.de] On Behalf
Of Oliver Klee
Sent: Thursday, September 06, 2007 2:07 AM
To: typo3-project-seminars at lists.netfielders.de
Subject: Re: [TYPO3-project-seminars] redirect url - not working


Hi Cathy,

Cathy Stephens schrieb:
> It is perfect for what we are using it for....a way to register for 
> community service projects.  I know it has been said several 
> times...but thank you Oliver for a great extension!!  The install and 
> configuration went very well and the manual was very helpful.

:-))

> But I have a question about how the registration and redirect url 
> works. I am using newloginbox 3.0.1  and sr_feuser_register 2.5.7.
[snip]
> When I finish creating the account, I am stil on the login page and 
> see this in the address bar: 
> user=cat800&pass=cat80&pid=31&logintype=login&redirect_url=
>  
> Notice nothing shows in redirect_url value.  And I am not redirected 
> back to the event I wanted to register.
>  
> On the registration form TEMPLATE_CREATE_SAVED template, I have this:
>  
> <input type="hidden" name="pid" value="###THE_PID###" />
>   <input type="hidden" name="redirect_url" value="" />

So the redirect_url parameter gets emptied (which explains why the
redirect doesn't work).

I think I once had a similar problem on a site using these extensions.
Could you try whether the following helps, testing after each step:

1. Remove the following line from your sr_feuser_register HTML template
(if you are using the original template, make a copy and point the
extension to it so your changed won't be overwritten on an upgrade):

<input type="hidden" name="redirect_url" value="" />

2. Create an extension template on the page subtree that contains the
login and add the following TS setup code:

config.linkVars = redirect_url


Another approach: If you would like the users to self-register quickly
for events without creating full FE user accounts with user name and
password, you can also use the "onetimeaccount" extension which was
designed for exactly that task.

Regards


Oliver
_______________________________________________
TYPO3-project-seminars mailing list
TYPO3-project-seminars at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-semin
ars




More information about the TYPO3-project-seminars mailing list