Blocks/user_block Bad Redirect


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: [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 =).

Profile PM  
Subject: Re: Blocks/user_block Bad Redirect
MMmmm! We need more "Bug" killer? :LOL:

Profile PM  
Subject: Re: Blocks/user_block Bad Redirect
Informpro.

Is this 1.3.6.70 ?? git version ??

or is this a .53b bug ?

Subject: Re: Blocks/user_block Bad Redirect
I'm working on the github version, but I think the bug is present in actuel release.

Profile PM  
Subject: Re: Blocks/user_block Bad Redirect
Thanks, fixed.


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.2042s (PHP: 9% SQL: 91%)
SQL queries: 15 - Debug Off - GZIP Enabled