Hi primehalo,
yes i'm sure too there should be an solution.
I need this because after the user is loged in i would display the Users Avatar instead of the login form so i modified the prime_quick_login.html for my needs.
Code: Select all
<!-- IF S_PRIME_QUICK_LOGIN and not AUTO_REFRESH and not S_USER_LOGGED_IN and not S_IS_BOT -->
<ul style="background: url() no-repeat;">
<li style="text-align: left; padding-left: 15px;" class="menuetitel"><span class="no_link" style="font-size: 12px;">Login</span></li>
</ul>
<div style="display:block;margin:1px 0pt 0px 12px;">
<table border="0" width="120" cellspacing="0" cellpadding="0">
<tr>
<td class="login_forum" style="padding-left: 2px;">
<form method="post" action="{S_PRIME_QUICK_LOGIN}">
<p style="font-size: 8pt; line-height: 0.3em;">
<input type="text" name="username" size="12" style="color: #999999; border: 1px ridge #999AB9; background-color: #FFFFFF;" value="Username" onblur="setField(this)" onfocus="this.value =(this.value=='Username')? '': this.value;"/><br />
<input type="password" name="password" size="12" style="color: #999999; border: 1px ridge #999AB9; background-color: #FFFFFF;" onfocus="this.value =(this.value=='Passwort')? '': this.value;" value="Passwort"/>
<input type="submit" name="login" value="{L_LOGIN}" style="border: 1px ridge #999AB9; background-color: #FFFFFF;"/>
<br />
<input type="hidden" name="redirect" value="user_start.php">
<br />
<a href="../community/ucp.php?mode=register"><span style="font-size: 8pt; color: #0033cc; font-family: arial; line-height: 0.8em;">Paguaner werden</span></a>
</p>
</form>
</td>
</tr>
</table>
</div>
<!-- ELSE -->
<ul style="background: url() no-repeat;">
<li style="text-align: left; padding-left: 15px;" class="menuetitel"><span class="no_link" style="font-size: 12px;">Hallo {L_PRIME_QUICK_USERNAME}</span></li>
</ul>
<div style="margin: 1px 0px 0px 1px;">
<table border="0" width="124" cellspacing="0" cellpadding="0">
<tr>
<td class="login_forum" align="center">
{PRIME_QUICK_AVATAR}
</td>
</tr>
</table>
</div>
<div style="margin: 1px 0pt 0px 1px;">
<table border="0" width="120" cellspacing="0" cellpadding="0">
<tr>
{PRIME_QUICK_PRIVMSG}
{PRIME_QUICK_VISITOR}
{PRIME_QUICK_FRIENDS}
{PRIME_QUICK_POSTS}
{PRIME_QUICK_GAMES}
</tr>
</table>
</div>
<!-- ENDIF -->
Other solution could be writing all the code not in these files but in an own file and put the code there but i think on the administration pages the problem will coninue.
So simply what i would get to work is to display the login in overall_header if the user is not logged in and display its Avatar in overall_header if the user is logged in.
So i could imagine that i uses two mods, the prime_quick_login for the login form an an other mod to display the avatar.
But i don't know if such a mod exists...
Or i give you all the code what i have written and we fix the problem together and you can add this function to your mod in a new version?!
Do you have an idea in which direction i should go?
best regards
maggo