Posted at 18-03-2009 @ 17:37 by ..::DeUCeD::..
UPDATE: Trukz Stats is fun but not too useful if there is NOT a static page to get available stats. So i decided to ABANDON this plugin till Trukz developers will offer public profiles or somekind of feed. But if you still wanna use it share your thoughts here…

For sometime now i play Trukz. It’s a text simulation game where you get a truck and start hauling tons of cargo, drifting around cities all over the world. I really like the game and chose to put a link in my sidebar. I wish there could be a feed of my profile or (better) a public profile so i could get and show some live stats but there is not. Instead there ’s only a useless general stats page for all the drivers. Several days i kept thinking a way to pull those few things about my profile from the general stats page and put it in my sidebar along with the link back. I found a way and that’s how Trukz Stats plugin was born. It’s not perfect but it’s better than nothing.
Trukz Stats
WordPress plugin
Download v. 1.2Trukz Stats
PHP script
Download v. 1.2Last Update: 10 May 2009
- Description
As you see there are two similar versions of Trukz Stats, the first is a WordPress plugin and the second is a php script to use in a personal website. Both of them do the same thing, they open a connection to Trukz general stats, to the page that your driver is located and get the line for your driver showing it to your site. The stats are Driver’s name, driver’s Company, logged Miles, driver’s Rating and Cash earned. Not enough but all that someone can get without using usernames and passwords. An example is at my sidebar (scroll a bit down).
- Important Note
Trukz Stats gets the available stats but there’s one disadvantage. General stats page changes frequently. Drivers rating changes, miles and money, everything is new every minute. So i kept watching it and realize that if i order the stats based on driver’s join date, the changes to the list are less often. But “less often” doesn’t mean “rare”. So after a couple of days the position of your driver changes and you gotta reconfigure the page number that the plugin/script uses with the new one.
- Trukz Stats: WordPress Plugin Configuration
Things are pretty straightforward as any wordpress widget plugin. Add Trukz Stats widget and configure it, save it et voila! Click here for more details in widget ↓↑
- Trukz Stats: PHP Script Configuration
In case you use the stand alone script you need a simple text editor like Notepad (or better, Notepad2 but *NOT* Word) to edit it. Open trukz-stats.php file and set the proper values. Then include it in a php page or put it in an iframe in html page. Click here for more details in stand alone script ↓↑
- Usage
Either using WordPress plugin or stand alone script you must have in mind that your driver position changes after a couple of days. Then Trukz Stats won’t find your driver’s name and will display a message saying that your driver’s position has changed. Most probably you went a page back so check and change configuration. Remember to search the stats ordered based on ASCENDING creation date. For those gonna use the script a php include is OK or even iframe for html pages. If you need further assistance let me know.
- Changelog
- Version 1.2 released: Money fix
- Version 1.1 released: Code optimized and “Days on the road” added
- Version 1.0 released





















20-03-2009 @ 07:18 [ID:10419]
Hi, how can i make the script work at blogger?
20-03-2009 @ 09:41 [ID:10420]
Hi 18wheeler,
I don’t think that you could run any php script in a free host like blogger. There are some free hosts that can let you but IMHO you cannot rely on them. Unfortunately you will need a paid host that runs PHP to make Trukz Stats work for you.