View Full Version : Show IP's directly for those who may view them
Stadler
11-08-2002, 10:00 PM
I've seen this in some other forums and I think it's quite useful.
With it mods and admins will be able to view IP's directly and even users will be able to view their own IP. Others will only see "IP: logged" as usual or whatever you specify in your templates.
If a mod or admin views a post, it's a link, where he could check the host. If a user views it, it's no link at all.
Screenshots:
Updated Option in Admin-CP (https://vborg.vbsupport.ru/attachment.php?postid=320484)
Guest viewing a thread or user viewing posts of other users (https://vborg.vbsupport.ru/attachment.php?postid=320485)
User views it's own posts (https://vborg.vbsupport.ru/attachment.php?postid=320486)
Mod or admin viewing a thread (https://vborg.vbsupport.ru/attachment.php?postid=320487)
Stadler
11-09-2002, 04:38 PM
Updated Option in Admin-CP
Stadler
11-09-2002, 04:39 PM
Guest viewing a thread or user viewing posts of other users.
Stadler
11-09-2002, 04:40 PM
User views it's own posts
Stadler
11-09-2002, 04:41 PM
Mod or admin viewing a thread.
filburt1
11-09-2002, 04:57 PM
Nice mod :)
(now if only I was still hacking...:D)
Goldknight
11-09-2002, 05:19 PM
Perfect hack, I need it and it is useful =D thanks
Edit: before I install this hack, I d like to know will it add more queries?
Stadler
11-09-2002, 05:20 PM
Well, I've just changed the query so there won't be any conflicts between the settingids of other settings. Now it depends on varname.
Version is 1.0.1 now.
LangTuDaTinh
11-09-2002, 05:24 PM
great hack...***installed**** thanks
assassingod
11-09-2002, 05:48 PM
Very nice work! Will install - many thanks!
Stadler
11-09-2002, 06:29 PM
Well, I just got rid of another bug, which caused, that IP's weren't logged anymore, after activating the hack through the new setting in the admin-cp.
Just apply the following and it works again############################################# ######
#-------------==={OPEN THE FILES}===--------------#
################################################## #
forum/newthread.php
forum/newreply.php
################################################## #
#---------------==={FIND IN BOTH}===--------------#
################################################## #
if ($logip==1 or $logip==2) {
################################################## #
#---------==={REPLACE IT IN BOTH WITH}===---------#
################################################## #
if ($logip>0) {It should work then.
Stadler
11-12-2002, 03:43 PM
Originally posted by Goldknight
Edit: before I install this hack, I d like to know will it add more queries? Well, actually yes: One extra query per Post, but I've managed to solve it now.
Now it's only 1 additional query.
Could someone test Version 1.0.4, plz? It works on our forums, as it should do, but I want to make sure, that it didn't miss something in the hack-file.
shaith
11-13-2002, 03:53 AM
Originally posted by Stadler
Well, actually yes: One extra query per Post, but I've managed to solve it now.
Now it's only 1 additional query.
Could someone test Version 1.0.4, plz? It works on our forums, as it should do, but I want to make sure, that it didn't miss something in the hack-file.
seems to work just fine.
AngelPride
11-28-2002, 01:27 PM
Modifying the database update script as follows cleans up the display in Admin CP so that the radio buttons are aligned down the left:
UPDATE setting SET optioncode='<input type=\\"radio\\" name=\\"setting[$setting[settingid]]\\" ".iif($setting[value]==0,"checked","")." value=\\"0\\"> Do not log IP<br><input type=\\"radio\\" name=\\"setting[$setting[settingid]]\\" ".iif($setting[value]==1,"checked","")." value=\\"1\\"> Display but require administrator or moderator<br><input type=\\"radio\\" name=\\"setting[$setting[settingid]]\\" ".iif($setting[value]==2,"checked","")." value=\\"2\\"> Display publicly<br><input type=\\"radio\\" name=\\"setting[$setting[settingid]]\\" ".iif($setting[value]==3,"checked","")." value=\\"3\\"> Display directly for administrator or moderator or original poster' WHERE varname='logip';
Stadler
11-28-2002, 01:41 PM
THX. :)
Updated the attachment
Chris M
12-01-2002, 05:13 PM
Nice:)
Satan
Ummm... really dumb question... but... I am running VB Version 2.2.7... How do I do the Query thing?
I have done everything that is stated in the installation of this hack... but I am confused when it comes to "DO THE FOLLOWING QUERY". I do this through phpmyadmin right?
ok I'm sorry I got that working. But now I have another prob. When I activate the "Display directly for administrator or moderator or original poster" I am not able to view anybodys IP addresses at all. :(
Stadler
12-04-2002, 12:40 PM
Maybe you just forgot to add the new template?######################################### ##########
#--------==={ADD A NEW TEMPLATE CALLED}===--------#
################################################## #
postbit_ip_link
################################################## #
#----------==={PUT IN THE FOLLOWING}===-----------#
################################################## #
IP: <a href="postings.php?s=$session[sessionhash]&action=getip&postid=$post[postid]">$post[ip]</a>
Nope. I did add that template. But it still won't work. :( It's just blank.
Stadler
12-06-2002, 12:43 PM
Well, go to your vBulletin-Options in your Admin-CP. Are your IP-logging-options looking and set like this (https://vborg.vbsupport.ru/attachment.php?postid=320484)?
If yes, then click on Save changes, even if you didn't change any of the settings there.
Try creating a post with a test account (normal registered user). And look at his post, being logged in as your test account.
Try reverting the templates postbit_ip_show and postbit_ip_hidden in your Postbit Templates.
Revert all changes files and try to reapply all the changes. Maybe you just forgot something or you've made a mistake?
LOD-squa
12-17-2002, 12:54 AM
I have done this but nothing...
Stadler
12-17-2002, 02:26 AM
Sorry, but I need a little more Info: What do you mean with nothing and what have you done?
LOD-squa
12-17-2002, 02:42 AM
When I look on postbit it only shows IP: and nothing and I did everything...
Stadler
12-17-2002, 02:49 AM
mmh ... try checking the HTML-Source and maybe some other/older posts. And check, if you've updated the setting in your Admin-CP.
LOD-squa
12-17-2002, 02:50 AM
The thing is that when I try to view the source the freaking notepad window doesn't open, And I did update em.
Courage
02-19-2003, 11:26 AM
I there a way so only the poster , admins and super admin can see the IP ?
I do not want the moderators to see any IP :(
Stadler
02-19-2003, 06:02 PM
Well, you could simply turn off 'Can View IPs' for every moderator in your Admin-CP
hukgwai
03-02-2004, 04:02 PM
i've got this all working, but how do i make it so that the IP "seems" public only to Mods/Admins.. i checked the correct radio button.
is there a way to show the IPs of others to mods/admins WITHOUT clicking on the link to resolve the IP?
Stadler
03-02-2004, 06:01 PM
The hack is designed to work only, if you check the last option.
If you want to hide the IP from your users, just remove } elseif ($bbuserinfo[userid]>0 and $bbuserinfo[userid]==$post[userid]) {
eval("\$post[iplogged] .= \"".gettemplate("postbit_ip_show")."\";");
from the hack.
hukgwai
03-02-2004, 06:19 PM
no, that's not what i was saying.
is it possible to show the IP of everyone ONLY to mods/admins WITHOUT clicking on Logged: ?
Stadler
03-02-2004, 06:49 PM
As I said: You have to check the last option in the vBulletin Options to enable the hack. (Display directly for administrator or moderator or original poster)
And if you remove the code as I said above, Users won't be able to see their own IPs but only admins/mods.
hukgwai
03-02-2004, 07:13 PM
i didn't think i had a problem with my english. :)
i'll ask one more time:
is it possible for the IP address itself (not Logged:/ not a link to resolve the IP) to show up in postbit template for ONLY mods/admins
right now.. i did what you said.. i have the last option enabled (mods,admins, poster) and removed those 2 lines of code from /admin/functions.php
when I (admin) am logged in.. i can see my own IP in postbit, but i still have to click on Logged: to see others' IPs.. can i make it so that I DON'T have to click on the link to find out the IP address.
this helps in finding double accounts, double user, trolls.. things of that nature
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.