Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
523 views
in Q2A Core by

We have this in qa-page-user-profile.php to display User IP and link IP's search

        if (($loginlevel>=QA_USER_LEVEL_MODERATOR) && !qa_user_permit_error()) {
            $qa_content['form_profile']['fields']['lastlogin']=array(
                'type' => 'static',
                'label' => qa_lang_html('users/last_login_label'),
                'value' =>
                    strtr(qa_lang_html('users/x_ago_from_y'), array(
                        '^1' => qa_time_to_string(qa_opt('db_time')-$useraccount['loggedin']),
                        '^2' => qa_ip_anchor_html($useraccount['loginip']),
                    )),
                'note' => $userediting ? null : qa_lang_html('users/only_shown_moderators'),
                'id' => 'lastlogin',
            );

            if (isset($useraccount['written']))
                $qa_content['form_profile']['fields']['lastwrite']=array(
                    'type' => 'static',
                    'label' => qa_lang_html('users/last_write_label'),
                    'value' =>
                        strtr(qa_lang_html('users/x_ago_from_y'), array(
                            '^1' => qa_time_to_string(qa_opt('db_time')-$useraccount['written']),
                            '^2' => qa_ip_anchor_html($useraccount['writeip']),
                        )),
                    'note' => $userediting ? null : qa_lang_html('users/only_shown_moderators'),
                    'id' => 'lastwrite',
                );
            else
                unset($qa_content['form_profile']['fields']['lastwrite']);

        }

I would like to add that page a new line contains this: http://whatismyipaddress.com/ip/xx.xxx.xxxx

and that xx.xxx.xxxx is the user ip that target should beblank target=_blank

Can someone help to add that line after last_login IP and after Last write_IP

Thanks

 

Q2A version: 1.6.3

Please log in or register to answer this question.

...