PDA

View Full Version : Move Login tabe to top


Roccus
01 Jan 08, 10:08
Hi, How can i move the login table from bottom to top in a phpbb3 style?

Couse i want the login section to appear above all other when users are not logged in.

CyberAlien
01 Jan 08, 12:46
In index_body.html find this:<!-- IF not S_USER_LOGGED_IN -->
<br clear="all" />

<form method="post" action="{S_LOGIN_ACTION}">

{$CA_BLOCK_START}
<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
{$CA_CAP_START}<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>{$CA_CAP_END}
<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" />&nbsp;<!-- ENDIF --> <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td>
</tr>
</table>
{$CA_BLOCK_END}
{S_FORM_TOKEN}
</form>
<!-- ENDIF -->and move it closer to top of that file

Roccus
01 Jan 08, 21:16
thx :) i only could see the difference when i cleared the boards cache becouse i had the style already active. when the style is active then the board uses the file in the cache instead of the original file that comes with the style. So if someone else wants to change this on an active style then make sure to clear the boards cache in acp or also modify the file in the boards cache dir wich is more difficult to do..

CyberAlien
01 Jan 08, 22:48
No, it doesn't matter if style is active or not. To see changes immediately enable option "recompile stale style components" in acp in load settings.

Roccus
02 Jan 08, 09:04
ah ok.
Thanks for the help, it worked great :)