vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Only Show IPs to Admins (https://vborg.vbsupport.ru/showthread.php?t=92223)

Chris M 07-14-2005 10:00 PM

Only Show IPs to Admins
 
[high]Installation Instructions[/high]

Step 1: Upload the plugin
Step 2: Alter the template [high]postbit_ip[/high]
Find:
HTML Code:

<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>

Replace with:
HTML Code:

<if condition="is_member_of($bbuserinfo, 6)">
<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>

[high]Credits[/high]
Requested: here

Satan

Barakat 07-15-2005 07:18 AM

install

Corriewf 07-15-2005 01:18 PM

This can make it hard to let a moderator do their job.

Chris M 07-15-2005 01:22 PM

Moderators really have no need to view IPs anyway - They cannot ban users with it, as thats an Admin-only feature ;)

They can still view Users IPs in the Mod CP, but there is no way to control that without file edits ;)

Most moderators are not smart enough to realise that anyway so removing it from Posts is enough to ensure a certain level of Security :)

Satan

Corriewf 07-15-2005 01:45 PM

Quote:

Originally Posted by hellsatan
Moderators really have no need to view IPs anyway - They cannot ban users with it, as thats an Admin-only feature ;)

They can still view Users IPs in the Mod CP, but there is no way to control that without file edits ;)

Most moderators are not smart enough to realise that anyway so removing it from Posts is enough to ensure a certain level of Security :)

Satan


Most boards I have run, when a member gets banned they come back with another IP addy and/or sign up again. My mods ( which I wouldnt have if they were as dumb as you described) look up the IP to figure out if past banned members have come back. They have actually caught a couple.

Btw, this point is moot if its an aol ip.

All this hack is doing is impairing their abilities. If you dont trust your mods with something simple as IP addys then they shouldnt be a mod.

A better mod would be to remove the ability for mods to prune threads.

Chris M 07-15-2005 01:49 PM

Quote:

Originally Posted by corriewf
Most boards I have run, when a member gets banned they come back with another IP addy and/or sign up again. My mods ( which I wouldnt have if they were as dumb as you described) look up the IP to figure out if past banned members have come back. They have actually caught a couple.

Btw, this point is moot if its an aol ip.

All this hack is doing is impairing their abilities. If you dont trust your mods with something simple as IP addys then they shouldnt be a mod.

A better mod would be to remove the ability for mods to prune threads.

I believe you already can with Moderator Permissions ;)

And I am probably going to alter this hack to only disable viewing of the Admins IP :)

Satan

Corriewf 07-15-2005 02:26 PM

Quote:

Originally Posted by hellsatan
I believe you already can with Moderator Permissions ;)

And I am probably going to alter this hack to only disable viewing of the Admins IP :)

Satan

Admin's IP is a good idea.

I had ot alter the code on the modcp file to remove permissions for pruning. They now have a message that tells them they dont have permissions if they click on it.

Chris M 07-15-2005 02:57 PM

Quote:

Originally Posted by corriewf
Admin's IP is a good idea.

I had ot alter the code on the modcp file to remove permissions for pruning. They now have a message that tells them they dont have permissions if they click on it.

Strange I would have thought the permissions system itself would have caught this - You may want to report that as a Bug at vB.com ;)

Satan

Corriewf 07-15-2005 03:11 PM

Quote:

Originally Posted by hellsatan
Strange I would have thought the permissions system itself would have caught this - You may want to report that as a Bug at vB.com ;)

Satan

No it is not part of any permission setting. Its in the index.php for modcp.

Chris M 07-15-2005 03:24 PM

Taken directly from /modcp/thread.php:

PHP Code:

if (!can_moderate(0'canmassmove') AND !can_moderate(0'canmassprune'))
{
    
print_stop_message('no_permission');


There are some permissions already;)

If you are referring to Super Mods, there is nowhere to set their permissions, sadly :(

But I believe it was KirbyDE that released a Code Mod to control their permissions :)

Satan


All times are GMT. The time now is 01:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01090 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete