Page 1 of 4

ACP login after update to 3.0.7

Posted: Tue Mar 02, 2010 7:24 pm
by andrius757
After update to 3.0.7, after loging into acp admins are redirected not into acp, but into index.php(forum root). Where can be the problem?

Re: ACP login after update to 3.0.7

Posted: Tue Mar 02, 2010 7:27 pm
by Erik Frèrejean
This is a known issue with 3.0.7 and there isn't a bug fix for it yet.
http://www.phpbb.com/bugs/phpbb3/58345

Re: ACP login after update to 3.0.7

Posted: Tue Mar 02, 2010 10:28 pm
by buckshot101
I too had this issue....You need to download the patch files and makes the changes to your custom style template. You will notice the {S_LOGIN_REDIRECT} change and need to make sure template style pages have the correct coding.

Once I made the changes. I logged into ACP and Purged the data and everything was back to working right.

http://www.phpbb.com/downloads/olympus.php?update=1

Example of changed coding........(this is just a snippet of changed file coding that needs to be done)
#
#-----[ OPEN ]---------------------------------------------
#
styles/subsilver2/template/index_body.html

#
#-----[ FIND ]---------------------------------------------
# Around Line 78
</tr>
<tr>
<td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" />&nbsp; <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" />&nbsp; <!-- IF S_AUTOLOGIN_ENABLED --> <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /><!-- ENDIF -->&nbsp; <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td>
</tr>
</table>

#
#-----[ AFTER, ADD ]---------------------------------------------
#
{S_LOGIN_REDIRECT}

#
#-----[ OPEN ]---------------------------------------------
#
styles/subsilver2/template/login_body.html

#
#-----[ FIND ]---------------------------------------------
# Around Line 75
<tr>
<td class="cat" <!-- IF not S_ADMIN_AUTH or S_CONFIRM_CODE -->colspan="2"<!-- ENDIF --> align="center">{S_HIDDEN_FIELDS}<input type="submit" name="login" class="btnmain" value="{L_LOGIN}" tabindex="5" /></td>
</tr>
</table>
{S_FORM_TOKEN}

#
#-----[ AFTER, ADD ]---------------------------------------------
#
{S_LOGIN_REDIRECT}

Re: ACP login after update to 3.0.7

Posted: Tue Mar 09, 2010 3:05 pm
by 5minutes
I tried the above and am still experiencing the problem. When in the ACP, it occasionally kicks the admin users out, back to the login screen.

Re: ACP login after update to 3.0.7

Posted: Tue Mar 09, 2010 3:24 pm
by andrius757
5minutes wrote:I tried the above and am still experiencing the problem. When in the ACP, it occasionally kicks the admin users out, back to the login screen.
To login screen? I had an issue where admins were kicked to index page, but nod acp index. After making changes on template files(after purging cache and refreshing template, themes, imageset) the problem is gone.

Re: ACP login after update to 3.0.7

Posted: Tue Mar 09, 2010 3:42 pm
by 5minutes
'scuse me. Not login screen. Index.

And it's happening under Subsilver as well as my pretty template. I've got another thread started on this, so I'll carry this over there.

Re: ACP login after update to 3.0.7

Posted: Tue Mar 09, 2010 4:41 pm
by 5minutes
And yeah - I've changed the template. This one's a 3.0.6 (I added in the line indicated by that one fix into the index_body.html and login_body.html) and it's "guaranteed"... I'd leave it in Prosilver, but I've got a guy over me who's not happy with the look and feel during the fix.

Re: ACP login after update to 3.0.7

Posted: Sun Mar 14, 2010 3:15 pm
by duncon
did update my styles as decribed with no success - still get redirected to the inxex.php

but also checked subsilver style where the {S_LOGIN_REDIRECT} is implemented already (not by me)

anyonme has a solution?

duncon

Re: ACP login after update to 3.0.7

Posted: Sun Mar 14, 2010 4:14 pm
by HGN
The default styles prosilver and subsilver2 are updated with the update package (or by doing the full upload). All custom styles have to be modified by hand or the 3.0.7 version of the style has to be uploaded to the board.

Re: ACP login after update to 3.0.7

Posted: Sun Mar 14, 2010 4:32 pm
by GameraFan
Thanks for the fix. The incorrect redirect was annoying.

Re: ACP login after update to 3.0.7

Posted: Mon Mar 15, 2010 8:58 pm
by Kristas360
I'm unclear on exactly which template file you edit with the above coding. Which one is it?

Re: ACP login after update to 3.0.7

Posted: Mon Mar 15, 2010 9:09 pm
by HGN
Templates to be changed:
  • styles/<stylename>/template/index_body.html
  • styles/<stylename>/template/login_body.html
  • styles/<stylename>/template/login_forum.html
The previous post shows changes for subsilver2 (and subsilver2 based styles). Below are the changes for prosilver (and prosilver based styles).

Code: Select all

#
#-----[ OPEN ]--------------------------------------------- 
#
styles/prosilver/template/index_body.html

#
#-----[ FIND ]---------------------------------------------
# Around Line 22
			<label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" />
			<!-- IF S_AUTOLOGIN_ENABLED -->
				| <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label>
			<!-- ENDIF -->
			<input type="submit" name="login" value="{L_LOGIN}" class="button2" />

#
#-----[ AFTER, ADD ]---------------------------------------------
#
			{S_LOGIN_REDIRECT}

#
#-----[ OPEN ]--------------------------------------------- 
#
styles/prosilver/template/login_body.html

#
#-----[ FIND ]---------------------------------------------
# Around Line 34

		<dl>
			<dt>&nbsp;</dt>
			<dd>{S_HIDDEN_FIELDS}<input type="submit" name="login" tabindex="6" value="{L_LOGIN}" class="button1" /></dd>
		</dl>

#
#-----[ AFTER, ADD ]---------------------------------------------
#
		{S_LOGIN_REDIRECT}

#
#-----[ OPEN ]--------------------------------------------- 
#
styles/prosilver/template/login_forum.html

#
#-----[ FIND ]---------------------------------------------
# Around Line 22
	</dl>
	<dl class="fields2">
		<dt>&nbsp;</dt>
		<dd>{S_HIDDEN_FIELDS}<input type="submit" name="login" id="login" class="button1" value="{L_LOGIN}" tabindex="2" /></dd>
	</dl>

#
#-----[ AFTER, ADD ]---------------------------------------------
#
	{S_LOGIN_REDIRECT}
Note that these are just some of the changes required to make your style compatible with the phpbb version. Check the codechanges package in the downloadsection or the stickies in the Styles Support & Discussion forum for all changes.

Re: ACP login after update to 3.0.7

Posted: Mon Mar 15, 2010 9:16 pm
by Kristas360
Thank you so much. I'll give that a try.

Re: ACP login after update to 3.0.7

Posted: Tue Mar 16, 2010 12:13 am
by Kristas360
Hello again folks,

I tried the fix above for the subsilver, but it hasn't fixed the problem yet. I have only edited . . .

index_body
login_body

. . . based on the instructions above.

However, HGN says you also have to edit "login_forum" and I don't see instructions on what code to edit on that file in subsilver. Am I missing a step?

Re: ACP login after update to 3.0.7

Posted: Tue Mar 16, 2010 12:18 am
by Dudez009
What version is your theme running? What's the theme?