Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[mini-RELEASE v2.0.1] - Show IP Icon/Text to Admins and Mods only Details »»
[mini-RELEASE v2.0.1] - Show IP Icon/Text to Admins and Mods only
Mod Version: 1.00, by VirtueTech (Coder) VirtueTech is offline
Developer Last Online: Feb 2005 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: Rating: (0 vote - 0 average) Installs: 2
Released: 30 Jul 2001 Last Update: Never Downloads: 0
Not Supported  

Hello everyone,

I noticed that the IP Logged GIF or TEXT was just taking up some valuable icon space in my
posts for my registered members. Also the only people that use the IP icon/text are Admins,
Moderators, or Super Moderators.

So I just made a small hack to showthread.php and thought some of you might find this useful:

Hack Directions (tested on vb2.0.1)

In Showthread.php:
Find the following:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And replace it with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Next: Be sure to go through the function above and make sure that the 'usergroupid'
matches that of your Administrators, Moderators, and Super Moderators
for both the 'if' and 'elseif' statments in that script.

For example: my 'usergroupid' (s) looked like this:
$bbuserinfo['usergroupid']==5 (Super Mods)
$bbuserinfo['usergroupid']==6 (Mods)
$bbuserinfo['usergroupid']==95 (Admins)

Just something small to keep the administrative ideas away from the users as
much as possible to limit the users ideas of possible security threats as well as space
saving for the postbit template.

With IP Icon - What Admins/Mods/Super Mods See

Without IP Icon - What Members See

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
[mini-hack] Hidden profile fields viewable by admins & mods IN profile. EvilLS1 vBulletin 2.x Full Releases 24 27 Jan 2004 19:46
[Release v2.0.3] Mods & Admins online rylin vBulletin 2.x Full Releases 27 27 Oct 2001 22:36
[Mini-Release 2.x.x:] Dont show unmoderated users under "the newest user" Stasik vBulletin 2.x Full Releases 5 12 Sep 2001 18:16

Comments
  #2  
Old 30 Jul 2001, 07:46
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
 
Join Date: Jan 2002
Real name: Wayne
Here is how I did it... If you notice the code is a little simpler and it acheives an bonus effect in that moderators of the forum (including super moderators and administrators) don't see the "Report" icon I have set up for regular members.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This does require a new template called "postbit_report" to hold the code for the report icon.
__________________
Wayne Luke
Get started with your own social network. Purchase and download vBulletin today.
Take vBulletin to the next level - vBCodex. Find Tips, Tutorials, and Resources.
Reply With Quote
  #3  
Old 30 Jul 2001, 07:50
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
Good idea with the Report button. I'll implement that.

Except you need to change your code a bit so that if the Admin chooses to show IP's publicly....on an intranet maybe.
__________________
PaintballCity.com
VB Board of the Month: October
Reply With Quote
  #4  
Old 30 Jul 2001, 08:00
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
 
Join Date: Jan 2002
Real name: Wayne
Actually it only tries to determine if the IP should be shown if the user is a moderator. If they are it will follow whatever settings are made under options.

If you look, the first line includes a call to "ismoderator()" this function returns true if the user is a moderator. You can find it in admin/functions.php. Makes it a lot easier to find appropriate moderator permissions without trying to remember user groups and permission levels or whatnot.
__________________
Wayne Luke
Get started with your own social network. Purchase and download vBulletin today.
Take vBulletin to the next level - vBCodex. Find Tips, Tutorials, and Resources.
Reply With Quote
  #5  
Old 30 Jul 2001, 08:52
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
Correct me if I'm wrong but in your code...if $logip==2 then only your mods can view the IP...when $logip==2 sets the "view IP's to public viewing".

No big deal just a thought.

Thanks wluke for optimizing my code for me and teaching me about that ismoderator function. Very useful.

Now I'm off to go optimize some other code of mine where the usergroupid lines may range forever onward.
__________________
PaintballCity.com
VB Board of the Month: October
Reply With Quote
  #6  
Old 03 Aug 2001, 09:32
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
It worked fine with v2.0.0, but I can't find that code in showthread.php of v2.0.3.
Reply With Quote
  #7  
Old 03 Aug 2001, 09:54
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
I haven't upgraded to vb2.0.3 yet. I just upgraded the sessions.php script like they said for the security issue.

When I upgrade I will be sure to let you know. Sorry
__________________
PaintballCity.com
VB Board of the Month: October
Reply With Quote
  #8  
Old 03 Aug 2001, 10:03
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
The code it probably somewhere else, or on a template, I'll (try to) find it myself.
Thanks anyway.

Nice hack.
Reply With Quote
  #9  
Old 05 Aug 2001, 12:55
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Anyone found out how to install this hack on v2.0.3?
Reply With Quote
  #10  
Old 05 Aug 2001, 13:00
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
 
Join Date: Jan 2002
Real name: Wayne
You need to change the postbit function in admin/functions.php.

It is the second function in the file. The code is actually the same, just in a different file.
__________________
Wayne Luke
Get started with your own social network. Purchase and download vBulletin today.
Take vBulletin to the next level - vBCodex. Find Tips, Tutorials, and Resources.
Reply With Quote
  #11  
Old 05 Aug 2001, 13:39
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Thanks for the quick reply.

Once again, great hack.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 09:05.

Layout Options | Width: Wide Color: