![]() |
Show IP's directly for those who may view them
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 Guest viewing a thread or user viewing posts of other users User views it's own posts Mod or admin viewing a thread |
Updated Option in Admin-CP
|
Guest viewing a thread or user viewing posts of other users.
|
User views it's own posts
|
Mod or admin viewing a thread.
|
Nice mod :)
(now if only I was still hacking...:D) |
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? |
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. |
great hack...***installed**** thanks
|
Very nice work! Will install - many thanks!
|
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 PHP Code:
|
Quote:
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. |
Quote:
|
Modifying the database update script as follows cleans up the display in Admin CP so that the radio buttons are aligned down the left:
Code:
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'; |
THX. :)
Updated the attachment |
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. :(
|
Maybe you just forgot to add the new template?
PHP Code:
|
Nope. I did add that template. But it still won't work. :( It's just blank.
|
Well, go to your vBulletin-Options in your Admin-CP. Are your IP-logging-options looking and set like this?
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? |
I have done this but nothing...
|
Sorry, but I need a little more Info: What do you mean with nothing and what have you done?
|
When I look on postbit it only shows IP: and nothing and I did everything...
|
mmh ... try checking the HTML-Source and maybe some other/older posts. And check, if you've updated the setting in your Admin-CP.
|
The thing is that when I try to view the source the freaking notepad window doesn't open, And I did update em.
|
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 :( |
Well, you could simply turn off 'Can View IPs' for every moderator in your Admin-CP
|
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? |
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 PHP Code:
|
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: ? |
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. |
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 |
All times are GMT. The time now is 02:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|