/* *********************************************************************************************************** NOTICE: This code is provided as is, and you use it at your own risk. By using this code, you acknowledge that Stuart Morris or shehaal.com cannot be held responsible for any problems or issues that may be caused as a direct or indirect result of its use. Feel free to use, modify, or redistribute this as you wish. There is some css classes used here, to allow you to format the tables. These are: .GameTitle .GameDate .Gamertag The first two allow you to format the game title/link and the date it was played. Gamertag is provided mainly to allow you to format the column width, eg: .Gamertag { width: 200px; } All gamertags and column titles use the
| '.$item['title'].' '; $desc = $item['description']; // Create and print game header section of table $desc = str_replace('Game played', 'Game played', $desc); $desc = preg_replace('~GMT .+ Gamertag: ~', 'GMT | |||||||
| Gamertag | ', $desc); $desc = str_replace('Standing, Score, Kills, Deaths, Assists', 'Place | Score | Kills | Deaths | Assists | ', $desc); $deschead = preg_replace('~()(.+)(Assists)(.+)~', '$1$2$3', $desc); echo $deschead; // Create and print game stats section of table $desc = preg_replace('~()(.+)(Assists)~', '', $desc); $desc = str_replace(': ', '', $desc); $desc = str_replace(', ', ' | ', $desc);
$desc = str_replace(' ', ' |
|---|---|---|---|---|---|---|---|
| ', $desc); $desc = substr_replace($desc, '', -8, 8); $desc = $desc.' | |||||||
'.magpie_error().'
'; } // Restore original error reporting value @ini_restore('error_reporting'); ?>