Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Displaynig details about a computer's operating system or web browser that members comment from (?)

edited June 2012 in Vanilla 2.0 - 2.8

I'm asking for something like this: http://wordpress.org/extend/plugins/wp-useragent/

Tagged:

Answers

  • 422422 Developer MVP

    You want this on every post?

    There was an error rendering this rich post.

  • edited June 2012

    Yes.

    Because each post (presumably) is for a new user from his/her diverse PC.

    Ideal: when a user post a new comment, 2 (or more) icons are displayed on his/her post:

    • Icon of his/her browser
    • icon of his/her OS.
  • hbfhbf wiki guy? MVP
    edited June 2012

    there should be some http context information you can pick up through the envirnment similar to this which can be used to get the end point IP address:

    function getIP() { 
    $ip; 
    if (getenv("HTTP_CLIENT_IP")) 
    $ip = getenv("HTTP_CLIENT_IP"); 
    else if(getenv("HTTP_X_FORWARDED_FOR")) 
    $ip = getenv("HTTP_X_FORWARDED_FOR"); 
    else if(getenv("REMOTE_ADDR")) 
    $ip = getenv("REMOTE_ADDR"); 
    else 
    $ip = "UNKNOWN";
    return $ip; 
    
  • cPanel normally logs user's actions as in IP, Date, Time, OS, Browser, etc. can it be usable?

    209.191.122.70 - - [26/Mar/2012:11:27:21 +0100] "GET ... (Windows...) Gecko/... Firefox/11.0"

  • hbfhbf wiki guy? MVP

    acoda said:
    cPanel normally logs user's actions as in IP, Date, Time, OS, Browser, etc. can it be usable?

    209.191.122.70 - - [26/Mar/2012:11:27:21 +0100] "GET ... (Windows...) Gecko/... Firefox/11.0"

    it's the same information that the code i mentioned before is getting from the http header...

    are you suggesting you think parsing the log file on the webserver is going to be easier that querying the http header for the request?

  • edited June 2012

    hbf said:

    it's the same information that the code i mentioned before is getting from the http header...
    are you suggesting you think parsing the log file on the webserver is going to be easier that querying the http header for the request?

    Actually No, I said that because I didn't get this phrase: "pick up through the envirnment"

Sign In or Register to comment.