Topic: Mods/admins don't see IP addresses on anonymous users' posts
which is bad, because they're often the ones we need to moderate the most.
Index: viewtopic.php
===================================================================
--- viewtopic.php (revision 1540)
+++ viewtopic.php (working copy)
@@ -342,20 +347,23 @@
}
// Generate author information
- if ($cur_post['poster_id'] > 1 && $pun_config['o_show_user_info'] == '1')
+ if ($pun_config['o_show_user_info'] == '1')
{
- if ($cur_post['location'] != '')
- {
- if ($pun_config['o_censoring'] == '1')
- $cur_post['location'] = censor_words($cur_post['location']);
+ if ($cur_post['poster_id'] > 1)
+ {
+ if ($cur_post['location'] != '')
+ {
+ if ($pun_config['o_censoring'] == '1')
+ $cur_post['location'] = censor_words($cur_post['location']);
- $pun_page['user_info'][] = '<li><span><strong>'.$lang_topic['From'].'</strong> '.pun_htmlencode($cur_post['location']).'</span></li>';
- }
+ $pun_page['user_info'][] = '<li><span><strong>'.$lang_topic['From'].'</strong> '.pun_htmlencode($cur_post['location']).'</span></li>';
+ }
- $pun_page['user_info'][] = '<li><span><strong>'.$lang_topic['Registered'].'</strong> '.format_time($cur_post['registered'], true).'</span></li>';
+ $pun_page['user_info'][] = '<li><span><strong>'.$lang_topic['Registered'].'</strong> '.format_time($cur_post['registered'], true).'</span></li>';
- if ($pun_config['o_show_post_count'] == '1' || $pun_user['is_admmod'])
- $pun_page['user_info'][] = '<li><span><strong>'.$lang_topic['Posts'].'</strong> '.$cur_post['num_posts'].'</span></li>';
+ if ($pun_config['o_show_post_count'] == '1' || $pun_user['is_admmod'])
+ $pun_page['user_info'][] = '<li><span><strong>'.$lang_topic['Posts'].'</strong> '.$cur_post['num_posts'].'</span></li>';
+ }
if ($pun_user['is_admmod'])
{