mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-19 17:51:02 +00:00
feat: message sender (when reading message) now links to a user
This commit is contained in:
@@ -74,11 +74,14 @@
|
|||||||
}
|
}
|
||||||
$date = $generator->procMtime($message->inbox1[$i-1]['time']);
|
$date = $generator->procMtime($message->inbox1[$i-1]['time']);
|
||||||
if($message->inbox1[$i-1]['owner'] <= 1) {
|
if($message->inbox1[$i-1]['owner'] <= 1) {
|
||||||
echo "</td><td class=\"send\"><a><u>".$database->getUserField($message->inbox1[$i-1]['owner'],'username',0)."</u></a></td>
|
echo "</td><td class=\"send\"><a href=\"support.php\"><u>".$database->getUserField($message->inbox1[$i-1]['owner'],'username',0)."</u></a></td>
|
||||||
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo "</td><td class=\"send\"><a href=\"spieler.php?uid=".$message->inbox1[$i-1]['owner']."\">".$database->getUserField($message->inbox1[$i-1]['owner'],'username',0)."</a></td>
|
$linkSender = ($message->inbox1[$i-1]['owner'] != 2 && $message->inbox1[$i-1]['owner'] != 4);
|
||||||
|
|
||||||
|
echo "</td><td class=\"send\">".($linkSender ? "<a href=\"spieler.php?uid=".$message->inbox1[$i-1]['owner']."\">" : '<b>').$database->getUserField($message->inbox1[$i-1]['owner'],'username',0).($linkSender ? '</a>' : '</b>')."</td>
|
||||||
|
|
||||||
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,19 @@ include("menu.tpl");
|
|||||||
<div id="read_content" class="msg_content">
|
<div id="read_content" class="msg_content">
|
||||||
<img src="img/x.gif" id="label" class="read" alt="" />
|
<img src="img/x.gif" id="label" class="read" alt="" />
|
||||||
<div id="heading">
|
<div id="heading">
|
||||||
<div><?php echo $database->getUserField($message->reading['owner'],"username",0); ?></div>
|
<div><?php
|
||||||
|
$linkSender = ($message->reading['owner'] != 2 && $message->reading['owner'] != 4);
|
||||||
|
if ($linkSender) {
|
||||||
|
echo '<a href="'.rtrim(SERVER, '/')."/spieler.php?uid=".$message->reading['owner']."\">";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo $database->getUserField($message->reading['owner'],"username",0);
|
||||||
|
|
||||||
|
if ($linkSender) {
|
||||||
|
echo '</a>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
<div><?php echo $message->reading['topic']; ?></div>
|
<div><?php echo $message->reading['topic']; ?></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="time">
|
<div id="time">
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
- link username to user in message sender
|
|
||||||
- scale oasis regeneration with game progresses (now we have elephants and tigers everywhere)
|
- scale oasis regeneration with game progresses (now we have elephants and tigers everywhere)
|
||||||
- add checkbox when sending units for a raid to include the attack in the raid list, if eligible
|
- add checkbox when sending units for a raid to include the attack in the raid list, if eligible
|
||||||
- change "incoming attacker" title of the raid list icon when actually attacking a farm (it should be "Own attacking troops")
|
- change "incoming attacker" title of the raid list icon when actually attacking a farm (it should be "Own attacking troops")
|
||||||
|
|||||||
Reference in New Issue
Block a user