Quote:
Originally Posted by heroia
I want to allow IP Info to be seen only by Admins, not for MODs.
What to do for this ?
I am using 3.6.0.
|
Try this:
Note: My Admin is usergroup "6"
EX:
Code:
<if condition="$bbuserinfo[usergroupid] == 6">
Template: postbit_ip:
== REPLACE WITH: ================================================== =======
Code:
<if condition="$bbuserinfo[usergroupid] == 6">
<if condition="$show['ip']">
$vbphrase[ip]: $post[ip]
<else />
<if condition="$post['userid'] > 0">
<a href="ipinfo.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
<else />
<a href="postings.php?$session[sessionurl]do=getip&p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
</if>
</if>
<else />
<if condition="$show['ip']">
$vbphrase[ip]: $post[ip]
<else />
<a href="postings.php?$session[sessionurl]do=getip&p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
</if>
</if>
--------------------------------------------------------------------------