Display Users IP in Viewtopic
Posted: 26 Jul 2011, 20:10
Display Users IP in Viewtopic
Written by rxu
Shows posters' IP addresses in topic for administrators and moderators.
Open viewtopic.php
Find:
After add:
Find:
After add:
Open styles/prosilver/template/viewtopic_body.html
Find:
After add:
Open styles/subsilver2/template/viewtopic_body.html
Find:
After add:
Written by rxu
Shows posters' IP addresses in topic for administrators and moderators.
Open viewtopic.php
Find:
Code: Select all
'post_edit_user' => $row['post_edit_user'],
Code: Select all
'poster_ip' => $row['poster_ip'],
Code: Select all
'POSTER_ID' => $poster_id,
Code: Select all
'POSTER_IP' => (($auth->acl_get('a_') || $auth->acl_get('m_')) && $user->data['is_registered']) ? $row['poster_ip'] : '',
Find:
Code: Select all
<!-- IF postrow.POSTER_FROM --><dd><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF -->
Code: Select all
<!-- IF postrow.POSTER_IP --><dd><strong>{L_IP}:</strong> {postrow.POSTER_IP}</dd><!-- ENDIF -->
Find:
Code: Select all
<!-- IF postrow.POSTER_FROM --><br /><b>{L_LOCATION}:</b> {postrow.POSTER_FROM}<!-- ENDIF -->
Code: Select all
<!-- IF postrow.POSTER_IP --><br /><b>{L_IP}:</b> {postrow.POSTER_IP}<!-- ENDIF -->