Blocks/user_block Bad Redirect »  Show posts from    to     

Icy Phoenix


Old Support Topics - Blocks/user_block Bad Redirect



Informpro [ Wed 25 May, 2011 11:21 ]
Post subject: Blocks/user_block Bad Redirect
Hoi there.

I found a little, the user_block is used to log directly from the portail (I.E.) but a problem remains : it uses
Code: [Hide]
  1. <input type="hidden" name="redirect" value="{U_PORTAL}" /> 
The problem is that U_PORTAL have SID in it. So, you'll be logged ... But your sid won't change.
To correct that, open templates/default/blocks/user_block_block.tpl
Find
Code: [Hide]
  1. <input type="hidden" name="redirect" value="{U_PORTAL}" /> 
Replace with
Code: [Hide]
  1. <input type="hidden" name="redirect" value="{U_PORTAL_NOSID}" /> 


Open user_block.php
Find
Code: [Hide]
  1. 'AVATAR_IMG' => $avatar_img, 
  2. 'U_NAME_LINK' => $name_link, 
Before, add
Code: [Hide]
  1. 'U_PORTAL_NOSID' => CMS_PAGE_HOME, 


Have a nice day playing around with Icy Phoenix =).


mort [ Wed 25 May, 2011 13:19 ]
Post subject: Re: Blocks/user_block Bad Redirect
MMmmm! We need more "Bug" killer?


spydie [ Wed 25 May, 2011 15:26 ]
Post subject: Re: Blocks/user_block Bad Redirect
Informpro.

Is this 1.3.6.70 ?? git version ??

or is this a .53b bug ?


Informpro [ Wed 25 May, 2011 20:59 ]
Post subject: Re: Blocks/user_block Bad Redirect
I'm working on the github version, but I think the bug is present in actuel release.


Mighty Gorgon [ Sat 04 Jun, 2011 11:46 ]
Post subject: Re: Blocks/user_block Bad Redirect
Thanks, fixed.




Powered by Icy Phoenix