1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-13 18:40:49 +01:00

Fixed display of OP in IP page

This commit is contained in:
Savetheinternet 2011-02-18 01:13:56 +11:00
parent 556e5bdcea
commit cbdc3fd8e8
3 changed files with 7 additions and 3 deletions

View File

@ -194,7 +194,7 @@
}; };
class Thread { 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; global $config;
if(!isset($root)) $root = $config['root']; if(!isset($root)) $root = $config['root'];
@ -221,6 +221,7 @@
$this->locked = $locked; $this->locked = $locked;
$this->root = $root; $this->root = $root;
$this->mod = $mod; $this->mod = $mod;
$this->hr = $hr;
if($this->mod) if($this->mod)
// Fix internal links // Fix internal links
@ -366,7 +367,7 @@
$built .= $post->build($index); $built .= $post->build($index);
} }
$built .= '<br class="clear"/><hr/>'; $built .= '<br class="clear"/>' . ($this->hr ? '<hr/>' : '');
return $built; return $built;
} }
}; };

View File

@ -657,7 +657,7 @@
while($post = $query->fetch()) { while($post = $query->fetch()) {
if(!$post['thread']) { 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 { } 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); $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);
} }

View File

@ -32,6 +32,9 @@ p.intro a.email span.name {
p.intro a.email:hover span.name { p.intro a.email:hover span.name {
color: #ff0000; color: #ff0000;
} }
p.intro label {
display: inline;
}
h2 { h2 {
color: #AF0A0F; color: #AF0A0F;
font-size: 11pt; font-size: 11pt;