There were some solutions on this... here and here I guessFriendly wrote:It would be very nice if we could click on the user's IP address and be brought to a whois query on them
For instance, you could replace the line in viewtopic.phpmoselekm wrote:Is there a way to restrict this as a specific permission per user-group?
Code: Select all
'POSTER_IP' => (($auth->acl_get('a_') || $auth->acl_get('m_')) && $user->data['is_registered']) ? $row['poster_ip'] : '',
Code: Select all
'POSTER_IP' => ($auth->acl_get('m_info') && $user->data['is_registered']) ? $row['poster_ip'] : '',
Code: Select all
<p class="author"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF -->{L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR_FULL}</strong> {L_POSTED_ON_DATE} {postrow.POST_DATE}</p>
Actually, that line is from viewtopic_body,html (in /template folder of the style you're using)hellreturn wrote:i need to modify above lines to which are suggested on first page in:viewtopic.php
You can either try this way or change the part of code of the line in viewtopic.phpkramtronix wrote:Is there a MOD for hiding IP addresses from MODeratorS?
Code: Select all
'POSTER_IP' => (($auth->acl_get('a_') || $auth->acl_get('m_')) && $user->data['is_registered']) ? $row['poster_ip'] : '',
Code: Select all
'POSTER_IP' => ($auth->acl_get('a_') && $user->data['is_registered']) ? $row['poster_ip'] : '',
Yes, I did all that, no errors. I'm using my own style, so I made the changes on the prosilver and change it to that one. Still nothing.rxu wrote:So there're no errors showed? Did you purge the cache/refresh template in ACP? Did you edit the template for the style you're using currently?
In viewtopic.php findJeRicHoOL wrote:How can I hide the user IP's from moderators so that only admins can see the IP's?
Code: Select all
'POSTER_IP' => (($auth->acl_get('a_') || $auth->acl_get('m_')) && $user->data['is_registered']) ? $row['poster_ip'] : '',
Code: Select all
'POSTER_IP' => (($auth->acl_get('a_') && $user->data['is_registered']) ? $row['poster_ip'] : '',
Do you mean it doesn't work for prosilver? It has to be shown in users' miniprofiles beside the posts in viewtopic.Xaman wrote:I made the changes on the prosilver and change it to that one.
Nice one, muggins..muggins wrote:Very nice, thanks! I will try making it a pop-up window...
Change the replacement to this:
Code: Select all
<!-- IF postrow.POSTER_IP --><dd><strong>{L_IP}:</strong> <a href="javascript:void(0)" onclick="window.open('http://en.utrace.de/?query={postrow.POSTER_IP}' , 'popup','width=800,height=620,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false">{postrow.POSTER_IP}</a></dd><!-- ENDIF -->
toscrollbars=no
because it might confuse someone and make them believe that there is something missing there..scrollbars=yes