ip logged php code location
jack3935 Offline
Junior Member
**
Posts: 7
Joined: Oct 2012
Post: #1
ip logged php code location
ip logged php code location  


please can u provide ip logged php code location in post


mybb forum is http://www.visionarysoft.com
(This post was last modified: 10-17-2012 05:16 PM by jack3935.)
10-16-2012 04:36 PM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #2
RE: ip logged php code location
in the post template find

{$post['iplogged']}


[Image: leelink.gif]
MYBB1.6 & XThreads
10-16-2012 11:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jack3935 Offline
Junior Member
**
Posts: 7
Joined: Oct 2012
Post: #3
RE: ip logged php code location
hi thanks 4 rply but i want php function code means in which .php file it is located
actually i want to use this function

if($user['lastip'])
{
        $api_result = @file_get_contents('http://freegeoip.net/json/'.$user['lastip']);
        $api_result = json_decode($api_result);
        $lastip_location = '<br />'.$api_result->city.': '.$api_result->country_name;
}

it shows ip address and using this function i want to show location
mybb forum is http://www.visionarysoft.com
(This post was last modified: 10-17-2012 05:15 PM by jack3935.)
10-17-2012 05:12 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: ip logged php code location
You can use {$post['lastip']} in postbit for post author (member).

For inserting your custom codes in the postbit, you can create a plugin for that, or insert it in your functions_post.php file.

10-18-2012 01:47 AM
Find all posts by this user Quote this message in a reply
jack3935 Offline
Junior Member
**
Posts: 7
Joined: Oct 2012
Post: #5
RE: ip logged php code location
can u tell me where to insert this code in functions_post.php
10-18-2012 03:42 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #6
RE: ip logged php code location
The appropriate place.

My Blog
10-19-2012 09:32 AM
Find all posts by this user Quote this message in a reply
jack3935 Offline
Junior Member
**
Posts: 7
Joined: Oct 2012
Post: #7
RE: ip logged php code location
hie
i inserted above code but getting error.

can u tell where to insert this code in functions_post.php file. or some one make this plugin for me.
10-22-2012 02:16 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: