From cbdc3fd8e817dfa5429c8f8fdcb587f2c2b740b6 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Fri, 18 Feb 2011 01:13:56 +1100 Subject: [PATCH] Fixed display of OP in IP page --- inc/display.php | 5 +++-- mod.php | 2 +- style.css | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/inc/display.php b/inc/display.php index 023f5648..871b2a9d 100644 --- a/inc/display.php +++ b/inc/display.php @@ -194,7 +194,7 @@ }; class Thread { - public function __construct($id, $subject, $email, $name, $trip, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename, $ip, $sticky, $locked, $root=null, $mod=false) { + public function __construct($id, $subject, $email, $name, $trip, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename, $ip, $sticky, $locked, $root=null, $mod=false, $hr=true) { global $config; if(!isset($root)) $root = $config['root']; @@ -221,6 +221,7 @@ $this->locked = $locked; $this->root = $root; $this->mod = $mod; + $this->hr = $hr; if($this->mod) // Fix internal links @@ -366,7 +367,7 @@ $built .= $post->build($index); } - $built .= '

'; + $built .= '
' . ($this->hr ? '
' : ''); return $built; } }; diff --git a/mod.php b/mod.php index 4b4046a9..ecc39093 100644 --- a/mod.php +++ b/mod.php @@ -657,7 +657,7 @@ while($post = $query->fetch()) { if(!$post['thread']) { - $po = new Thread($post['id'], $post['subject'], $post['email'], $post['name'], $post['trip'], $post['body'], $post['time'], $post['thumb'], $post['thumbwidth'], $post['thumbheight'], $post['file'], $post['filewidth'], $post['fileheight'], $post['filesize'], $post['filename'], $post['ip'], $post['sticky'], $post['locked'], $mod ? '?/' : $config['root'], $mod); + $po = new Thread($post['id'], $post['subject'], $post['email'], $post['name'], $post['trip'], $post['body'], $post['time'], $post['thumb'], $post['thumbwidth'], $post['thumbheight'], $post['file'], $post['filewidth'], $post['fileheight'], $post['filesize'], $post['filename'], $post['ip'], $post['sticky'], $post['locked'], $mod ? '?/' : $config['root'], $mod, false); } else { $po = new Post($post['id'], $post['thread'], $post['subject'], $post['email'], $post['name'], $post['trip'], $post['body'], $post['time'], $post['thumb'], $post['thumbwidth'], $post['thumbheight'], $post['file'], $post['filewidth'], $post['fileheight'], $post['filesize'], $post['filename'], $post['ip'], $mod ? '?/' : $config['root'], $mod); } diff --git a/style.css b/style.css index b7550664..b9b3b787 100644 --- a/style.css +++ b/style.css @@ -32,6 +32,9 @@ p.intro a.email span.name { p.intro a.email:hover span.name { color: #ff0000; } +p.intro label { + display: inline; +} h2 { color: #AF0A0F; font-size: 11pt;