Icy Phoenix

     
 

Blocks/user_block Bad Redirect

Blocks/user_block Bad Redirect

Article
Reply with quote    Download Post  
Post 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: [Download] [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: [Download] [Hide]
  1.     <input type="hidden" name="redirect" value="{U_PORTAL}" /> 
Replace with
Code: [Download] [Hide]
  1.     <input type="hidden" name="redirect" value="{U_PORTAL_NOSID}" /> 


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


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



 
Informpro - View user's profile Send private message  
Informpro [ Wed 25 May, 2011 11:21 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


Blocks/user_block Bad Redirect

Comments
Reply with quote    Download Post  
Post Re: Blocks/user_block Bad Redirect 
 
MMmmm! We need more "Bug" killer?  



 
mort - View user's profile Send private message  
mort [ Wed 25 May, 2011 13:19 ]
Reply with quote    Download Post  
Post Re: Blocks/user_block Bad Redirect 
 
Informpro.

Is this 1.3.6.70 ?? git version ??

or is this a .53b  bug ?



 
spydie - View user's profile Send private message  
spydie [ Wed 25 May, 2011 15:26 ]
Reply with quote    Download Post  
Post Re: Blocks/user_block Bad Redirect 
 
I'm working on the github version, but I think the bug is present in actuel release.



 
Informpro - View user's profile Send private message  
Informpro [ Wed 25 May, 2011 20:59 ]
Reply with quote    Download Post  
Post Re: Blocks/user_block Bad Redirect 
 
Thanks, fixed.



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Sat 04 Jun, 2011 11:46 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 1