PDA

View Full Version : editting the history


SHARKY
01-29-2005, 03:31 PM
ok what i would like to do is edit this code so when you visit history it shows the logs of all points donations from one user to another and really i do not need it to show the logs of the store items bought if anyona can help me please

$points = uttpoints_number_format($bbuserinfo['points']);
if ($vboptions['uttstore_historyitems'] != "0") {
$userhistory = unserialize($bbuserinfo['uttstore_history']);
if (!empty($userhistory)) {
arsort($userhistory);
foreach ($userhistory as $historyid => $thehistory) {
if (!isset($hnumber) || $hnumber < $vboptions['uttstore_historyitems']) {
$history = $thehistory;
$history['date'] = vbdate($vboptions['dateformat'], $history['timestamp']);
$history['time'] = vbdate($vboptions['timeformat'], $history['timestamp']);
(isset($hnumber) ? $hnumber = ($hnumber + 1) : $hnumber = "1");
eval('$historybits .= "' . fetch_template('uttstore_main_historybits') . '";');
}
}
}
(isset($historybits) ? $show['history'] = "1" : "");
}
arsort($sold);
foreach ($sold as $actionid => $sold) {
(isset($i) ? $i++ : $i = "1");
if ($i <= $vboptions['uttstore_mostsoldamount']) {
$name = $aname[$actionid];
eval('$mostsold .= "' . fetch_template('uttstore_main_mostsold') . '";');
}
}

basically i want it to show the global donations of all users and who donated to who