Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Only Show IPs to Admins Details »»
Only Show IPs to Admins
Version: 1.0.0, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 3.5.0 RC1 Rating:
Released: 07-14-2005 Last Update: Never Installs: 31
Uses Plugins Template Edits
 
No support by the author.

[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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-15-2005, 07:18 AM
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Location: Jerusalem
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

install
Reply With Quote
  #3  
Old 07-15-2005, 01:18 PM
Corriewf's Avatar
Corriewf Corriewf is offline
 
Join Date: Dec 2004
Location: parse error
Posts: 799
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This can make it hard to let a moderator do their job.
Reply With Quote
  #4  
Old 07-15-2005, 01:22 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 07-15-2005, 01:45 PM
Corriewf's Avatar
Corriewf Corriewf is offline
 
Join Date: Dec 2004
Location: parse error
Posts: 799
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 07-15-2005, 01:49 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 07-15-2005, 02:26 PM
Corriewf's Avatar
Corriewf Corriewf is offline
 
Join Date: Dec 2004
Location: parse error
Posts: 799
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 07-15-2005, 02:57 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 07-15-2005, 03:11 PM
Corriewf's Avatar
Corriewf Corriewf is offline
 
Join Date: Dec 2004
Location: parse error
Posts: 799
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 07-15-2005, 03:24 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04513 seconds
  • Memory Usage 2,305KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete