Skip to content
Permalink
Browse files

improved feedback when changing profile details, email or password

After profile detail change, return to the details display.
After email or password is changed, show only success message.
  • Loading branch information...
following
following committed Feb 13, 2013
1 parent 8e17e53 commit 028b50eaa4f9a1a93090ba0f1a2b355b62970519

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -86,6 +86,8 @@ function change()
$bError = true;
$tpl->assign('errorUnknown', true);
}
else if (!$bError)
$tpl->redirect('mydetails.php');
}
assignFromDB($login->userid);
@@ -110,8 +110,8 @@
{
$tpl->assign('codeChanged', true);
$user->clearNewEMailCode();
$tpl->assign('newemail', '');
$tpl->assign('code', '');
// $tpl->assign('newemail', '');
// $tpl->assign('code', '');
}
}
}
@@ -218,6 +218,7 @@ ul#statmenu { padding: 0px; margin: 0px;}
.warning {overflow: hidden; width: 735px; height: 24px; border: 1px solid black; background-color: rgb(240,100,100); margin: 0px 0px 0px 0px; padding: 8px 0px 0px 32px; color: rgb(50,50,50); font-weight: bold; font-size: 12px; background-image: url(../images/misc/32x32-impressum.png); background-position: top left; background-repeat:no-repeat;behavior: url(resource2/ocstyle/css/iepngfix.htc);}

.errormsg {color: rgb(240,100,100); font-weight: bold;}
.okmsg {color: rgb(0,191,0); font-weight: bold;}

#cache_name_block { width: 670px; padding-left: 5px; padding-top: 5px;}

@@ -13,27 +13,24 @@
<br />

<p><strong>Version 3.0.4</strong> &ndash; <i>in Arbeit</i></p>
<p>Neu:</p>
<ul class="changelog">
</ul>

<p>Geändert / verbessert:</p>
<ul class="changelog">
<li class="changelogitem">neues Design des Seitenkopfes mit neuem Logo</a></li>
<li class="changelogitem">Die <a href="map2.php">Karte</a> zeigt jetzt bis zu 600 statt 180 Cachesymbole an (MS Internet Explorer: bis zu 200).</a></li>
<li class="changelogitem">auch Hamburg ist jetzt im Menü der <a href="map2.php">Kartenseite</a> direkt anwählbar</a></li>
<li class="changelogitem">einheitliche Darstellung in der <a href="newlogs.php">Liste neuer Logs</a></li>
<li class="changelogitem">verbesserte Benutzerführung beim Ändern von Profildetails, Emailadresse oder Passwort</li>
<li class="changelogitem">verbesserte Verwaltung von Cachemeldungen (intern)</a></li>
<li class="changelogitem">Suchmaschinenoptimierung</a></li>
<li class="changelogitem">Team- und Spendenseite aktualisiert</a></li>
<li class="changelogitem"><a href="articles.php?page=team">Team-</a> und <a href="articles.php?page=donations">Spendenseite</a> aktualisiert</a></li>
<li class="changelogitem"><a href="articles.php?page=dsb">Datenschutzbelehrung</a> aktualisiert; Verbesserungen beim Datenschutz</a></li>
<li class="changelogitem">diverse interne Änderungen zur Umstellung von PHP 5.2 auf PHP 5.3</li>
</ul>

<p>Korrigiert (Bugfixes):</p>
<ul class="changelog">
<li class="changelogitem">explizite Länderangabe für Cachelistings hat Vorrang vor automatischer Zuordnung</li>
<li class="changelogitem">Icons für Event-Logs in der <a href="newlogs.php">Liste neuer Logs</a></li>
<li class="changelogitem">geändertes Statistikbild erscheint sofort im Benutzerprofil</a></li>
<li class="changelogitem">diverse interne Änderungen zur Umstellung von PHP 5.2 auf PHP 5.3</li>
</ul>
<br />

@@ -203,7 +203,8 @@
<tr><td class="spacer" colspan="2">&nbsp;</td></tr>
<tr>
<td style="vertical-align:top;">{t}Statistic picture:{/t}</td>
<td><img src="statpics/{$opt.template.locale}/{$login.userid}.jpg?reload={$smarty.now}" align=middle></td>
<td><img src="statpics/{$opt.template.locale}/{$login.userid}.jpg" align="middle"></td>
<!-- ...&reload=[$smarty.now] to force reload -->
</tr>
<tr><td class="spacer" colspan="2"></td></tr>

@@ -9,6 +9,10 @@
{t}Change E-Mail address{/t}
</div>

{if $codeChanged==true}
<br /><p>&nbsp;<span class="okmsg">{t}The E-Mail-Address was changed.{/t}</span></p>
{else}

<form action="newemail.php" method="post" style="display: inline;">
<input type="hidden" name="request" value="1" />

@@ -94,8 +98,6 @@
<tr><td>&nbsp;</td><td class="errormsg">{t}There already exists an account with that E-Mail address. It's not possible the register a scond account with the same E-Mail address.{/t}</td></tr>
{elseif $codeErrorUnkown==true}
<tr><td>&nbsp;</td><td class="errormsg">{t}An unknown error occured.{/t}</td></tr>
{elseif $codeChanged==true}
<tr><td>&nbsp;</td><td class="successmsg">{t}The E-Mail-Address was changed.{/t}</td></tr>
{/if}
<tr><td class="spacer" colspan="2"></td></tr>
<tr><td class="spacer" colspan="2"></td></tr>
@@ -106,4 +108,6 @@
</td>
</tr>
</table>
</form>
</form>

{/if}
@@ -9,6 +9,11 @@
{t}Change password{/t}
</div>

{if $passwordChanged==true}
<br /><p>&nbsp;<span class="okmsg">{t}The password has been changed.{/t}</span></p>
<p>&nbsp;{t}You can now <a href="login.php">login</a> with the new password.{/t}</p>
{else}

<form action="newpw.php" method="post" style="display: inline;">
<table class="table">
<tr>
@@ -105,9 +110,6 @@
</td>
</tr>
<tr><td class="spacer" colspan="2"></td></tr>
{if $passwordChanged==true}
<tr><td width="150px">&nbsp;</td><td><span class="successmsg">{t}The password has been changed, you can now <a href="login.php">login</a> with the new password.{/t}</span></td></tr>
{/if}
<tr><td class="spacer" colspan="2"></td></tr>
<tr>
<td class="header-small" colspan="2">
@@ -116,4 +118,6 @@
</td>
</tr>
</table>
</form>
</form>

{/if}

0 comments on commit 028b50e

Please sign in to comment.
You can’t perform that action at this time.