From d2b6d71dfc8f353d4b56f1b76552f6897493bb6d Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 26 Oct 2008 16:18:09 +0000 Subject: Small fixes for signature. Only show when actually there. Wrap signature in div/class. --- forum/utils/posts.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'forum') diff --git a/forum/utils/posts.php b/forum/utils/posts.php index 209d316..e9a5d1d 100644 --- a/forum/utils/posts.php +++ b/forum/utils/posts.php @@ -69,7 +69,12 @@ class Post { if(!$client_is_mobile_device) echo "Date: "; echo date("j. M Y - G:i", $this->date) . "\n"; echo $indent . "
\n"; - echo parse($this->message . "\n------\n" . $user->signature, $indent . " ") . "\n"; + echo parse($this->message, $indent . " ") . "\n"; + if($user->signature != "\n " && $user->signature != "") { + echo $indent . "
\n"; + echo parse("\n------------------\n" . $user->signature, $indent . " ") . "\n"; + echo $indent . "
\n"; + } echo $indent . "
\n"; echo $indent . "
\n"; -- cgit v1.2.3