Browse Source

Fixed display of OP in IP page

pull/40/head
Savetheinternet 13 years ago
parent
commit
cbdc3fd8e8
  1. 5
      inc/display.php
  2. 2
      mod.php
  3. 3
      style.css

5
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 .= '<br class="clear"/><hr/>';
$built .= '<br class="clear"/>' . ($this->hr ? '<hr/>' : '');
return $built;
}
};

2
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);
}

3
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;

Loading…
Cancel
Save