![]() |
IP address from user profile
Hi peeps
This is my 1st attempt, well actually i was helped by peterska2 of which i am eternally gratefull :) I have been wanting a hack like this for a while now, due to users registering and not posting, because they have not posted, there is no easy way to find thier IP address other than searching for it in the admincp. With this hack all you have to do is go into the users profile and the IP image is there next to the User Options link (see screenshot) click this and you have the users IP address :) Hope you find this as usefull as i do!! Instructions In the memberinfo template FIND Code:
<if condition="can_moderate()"> Code:
<if condition="can_moderate()"> Code:
<if condition="can_moderate()"> EDIT: Now optimised for IE |
First Post Reserved :p
Let me try Thanks for Share |
INstalled.Good one bashy,Simple and handy :)
|
Ya welcome peeps, tis handy if the member aint posted or ya cant be asked
checking the post to get the IP addy, spose ya can call it a lazy persons hack :) |
You might want to use:
HTML Code:
$admincpdir HTML Code:
admincp |
Although this MIGHT be handy, it would not be practically useful as many people's IPs change constantly. Therefore, to make this work properly, have it extract either the latest ip used from a post, or generate a list of ips.
|
Very useful.
|
nice one. thank you
|
Hi Psionic
it does generate a list of IPs used for said member ;) Quote:
|
Oh.. My bad. Heh.
|
No worries m8...perhaps i should have stated this :o
|
Nice little feature! ;)
|
Thank you,
It took a little while to figure out what it was i was after and now its finally done its been a great help, more so when your trying to keep an eye out for undesireables ;) Quote:
|
Is anyone using this in any IE browsers other than IE 7?
If so and its working can you let me know please? I am aware of an issue in IE7 and will hopefully be fixed, Unless its a major glitch with IE7, but i wouldnt have thought so!! |
yes quick install good handy little hack nice one bashy saves a lot of time surfing threw admin stuff by the way no probs running on ff or ie
|
Hmmm....it crashes and displays wrong if you have the template modified a bit.To avoid this find:
PHP Code:
PHP Code:
|
Must admit, i didnt have a prob with my memberinfo although i do know someone who did.... I also cannot find
Code:
<div class="smallfont"> Do you have a screener to show how the finished looks please :) |
Actually, the only thing you need to do if you use a modified memberinfo is to drop a couple of characters from the replace code.
so instead of using Code:
<if condition="can_moderate()"> Code:
<if condition="can_moderate()"> Bashy, can you update the zip and first post with this snippet instead? Cheers, mate |
Done, i didnt replace the code in the zip and 1st post, i added to the original, this ok or did you want the replacement code replacing?
Quote:
|
Quote:
|
lol...thats good point...i updated the zip and post but after now loking i dont see any difference myself lol
|
The first one had comments that ended in --!> which is invalid so breaks IE the second has comments that end in --> which is valid.
|
You know it would be better if he used my code.Just add your code after where is says about the userid: part.It will show next to rep points
|
Quote:
|
Erm....that is default style.Check out my site.You'll see
|
You are displaying an active link to the acp there. you don't want to do that.
and while you are using the default style, it has that many hacks in that you can't say that the userid code is in the default style. Which I can say for certain it isn't. If in doubt, look at the default template, or go to vB.com and look there, there is NO userid number in the memberinfo template by default. it is something that you have added in. |
Yeah i concure as well, i couldnt find anything with regards to the user ID
Although i do seem to remember a hack that adds this?? |
Thanks for this usefull modification.
|
@peterska2
I don't remember I would add anything like that :confused: So he can add it after reputation part |
Could this be made for version 3.5.2 bashy?
|
It should work in 3.5.2
|
Does it not work for 3.5.2 then?
I would have thought it did? Im sure peterska2 can shed some light on this? Quote:
EDIT: Damn you.....pmsl... [high]* bashy learns to type faster[/high] |
Well when i try this nothing shows up in users profile so i thought that it was not compatible with my version. ?
|
Were you logged in as an admin when you tried it?
|
Quote:
|
strange, because I've got it working in all versions of 3.5 here
|
This is a nice little add-in; however, it only works with admins. Any ideas as to how this can be set to work for moderators of the forum as well? As has been mentioned, it's a direct link to the admincp function which means it needs admin access?
[edit] found the workaround... find in the MEMBERINFO template: Code:
<a href="admincp/usertools.php?$session[sessionurl]do=doips&username=$userinfo[username]"> Code:
<a href="modcp/user.php?$session[sessionurl]do=doips&username=$userinfo[username]"> |
Very good...although i only needed this as admin i didnt think about others...i will add this to the 1st post, thanks again...ps i have added this to my forum now :)
|
Just upgraded one of my boards to 3.6.0, and I get this error:
Code:
Security alert: hash mismatch. Please press back, refresh the page, and try again. |
This modification does not work with 3.6.0 and higher. It is untested on 3.5.5 and may or may not work there also.
|
All times are GMT. The time now is 03:56 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|