option for making samefags public
This commit is contained in:
parent
e00299b376
commit
6abf65c062
@ -243,6 +243,8 @@ class CommentList extends Extension {
|
|||||||
$sb->add_label("<br>Show ");
|
$sb->add_label("<br>Show ");
|
||||||
$sb->add_int_option("comment_list_count");
|
$sb->add_int_option("comment_list_count");
|
||||||
$sb->add_label(" comments per image on the list");
|
$sb->add_label(" comments per image on the list");
|
||||||
|
$sb->add_label("<br>Make samefags public ");
|
||||||
|
$sb->add_bool_option("comment_samefags_public");
|
||||||
$event->panel->add_block($sb);
|
$event->panel->add_block($sb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,11 +187,12 @@ class CommentListTheme extends Themelet {
|
|||||||
$anoncode2 = "";
|
$anoncode2 = "";
|
||||||
if($this->show_anon_id) {
|
if($this->show_anon_id) {
|
||||||
$anoncode = '<sup>'.$this->anon_id.'</sup>';
|
$anoncode = '<sup>'.$this->anon_id.'</sup>';
|
||||||
if($user->can("view_ip")) {
|
if(!array_key_exists($comment->poster_ip, $this->anon_map)) {
|
||||||
|
$this->anon_map[$comment->poster_ip] = $this->anon_id;
|
||||||
|
}
|
||||||
|
#if($user->can("view_ip")) {
|
||||||
#$style = " style='color: ".$this->get_anon_colour($comment->poster_ip).";'";
|
#$style = " style='color: ".$this->get_anon_colour($comment->poster_ip).";'";
|
||||||
if(!array_key_exists($comment->poster_ip, $this->anon_map)) {
|
if($user->can("view_ip") || $config->get_bool("comment_samefags_public", false)) {
|
||||||
$this->anon_map[$comment->poster_ip] = $this->anon_id;
|
|
||||||
}
|
|
||||||
if($this->anon_map[$comment->poster_ip] != $this->anon_id) {
|
if($this->anon_map[$comment->poster_ip] != $this->anon_id) {
|
||||||
$anoncode2 = '<sup>('.$this->anon_map[$comment->poster_ip].')</sup>';
|
$anoncode2 = '<sup>('.$this->anon_map[$comment->poster_ip].')</sup>';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user