Watchman Redirection

abasel 12 Aug, 2010
Currently my form redirects to the homepage and doesn't display my redirection messages.

I have added
<jdoc:include type="message">

to my template

The debug info appears to indicate that all is well.
Debug information
Params: JParameter Object ( [_raw] => redirect_url=index.php debug=1 gid=18 redirect_message_users=1 open=06-09-2010 12:25 redirect_message_open=Option selection will be available from the 6 September until 17 September 2010 close=18-08-2010 12:10 redirect_message_close=Option selection is now closed. You will have to see Mr Cooper to make any changes now. days=1|2|3|4|5|6|0 open_time=00:00 redirect_message_open_time=2 close_time=00:00 redirect_message_close_time=3 [_xml] => [_elements] => Array ( ) [_elementPath] => Array ( [0] => /var/www/vhosts/rosmini.school.nz/httpdocs/libraries/joomla/html/parameter/element ) [_defaultNameSpace] => _default [_registry] => Array ( [_default] => Array ( [data] => stdClass Object ( [redirect_url] => index.php [debug] => 1 [gid] => 18 [redirect_message_users] => 1 [open] => 06-09-2010 12:25 [redirect_message_open] => Option selection will be available from the 6 September until 17 September 2010 [close] => 18-08-2010 12:10 [redirect_message_close] => Option selection is now closed. You will have to see Mr Cooper to make any changes now. [days] => Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 [6] => 0 ) [open_time] => 00:00 [redirect_message_open_time] => 2 [close_time] => 00:00 [redirect_message_close_time] => 3 ) ) ) [_errors] => Array ( ) )
Open date (06-09-2010 12:25)
Redirecting Now !!!! to ('redirect_url') with message: Option selection will be available from the 6 September until 17 September 2010


What else should I check?
GreyHead 12 Aug, 2010
Hi abasel,

Nothing else as far as I can see. Can you post a link to the form?

Bob
GreyHead 12 Aug, 2010
Hi abasel,


The plugin seems to be working OK. I think that the problem is that the message isn't displaying. Try adding the / to
<jdoc:include type="message" />



Bob
gorangrooves 30 Nov, 2010
Hi Bob,
where exactly in the template would you add this line to? I tried in a couple of places at the top of HTML template file, but it destroys my site.
Thanks
rcadmin 30 Nov, 2010
It can go anywhere; wherever you want the message to appear. It shouldn't destroy your code.

For starters put it just after the <body> tag, just to see it working.
gorangrooves 30 Nov, 2010
Thanks Bob. I'll play around with it. The code is no longer braking the site when put where you suggested.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger