Codes used are from Patschi and RMcGirr83
find in index.php
Code: Select all
// Assign index specific vars
$template->assign_vars(array(
'TOTAL_POSTS' => sprintf($user->lang[$l_total_post_s], $total_posts),
'TOTAL_TOPICS' => sprintf($user->lang[$l_total_topic_s], $total_topics),
Code: Select all
'USER_IP' => $user->ip,
I use it in stats and also as a link to UCP (If there isn't one near the bottom of the forum it saves scrolling up)
Code: Select all
<!-- IF not S_IS_BOT --><!-- IF S_USER_LOGGED_IN --><a href="{U_PROFILE}">{USER_IP}</a><!-- ENDIF --><!-- ENDIF -->