draive
01-19-2009, 07:21 PM
Hi guys,
I am hacking phpraider to work for the game Darkfall. I have made some pretty good improvements even though this is the first time I have written php (I usually use java, c#, c++ etc).
anyways, here is the code I have put in in the roster.php file:
while($data = $db_raid->fetch()) {
if($data['att_show']) {
$icon = '<img src="games/'.$pConfig['game'].'/images/attributes/'.$data['att_icon'].'"
onMouseover="ddrivetip(\''.$data['att_name'].'\');" onMouseout="hideddrivetip();" height="18" width="18" alt="'.$data['att_name'].'">';
if($data['att_name'] == 0){
$icon2 = '<img src="games/'.$pConfig['game'].'/images/attributes/'.$data['att_icon'].'"
onMouseover="ddrivetip(\''.$data['att_name'].'\');" onMouseout="hideddrivetip();" height="18" width="18" alt="'.$data['att_name'].'">';
$report->addOutputColumn($icon2, $icon, 'null', 'center');
}else{
$report->addOutputColumn($data['att_name'], $icon, 'null', 'center');
}
}
}
as you can see, when I get a attribute that's value is == 0 , I want it to show a picture instead of the value. When I run it, I get nothing shown.
I will assume its something to do with the ReportList class, can someone point me in the right direction?
Thanks in advance.
-d
I am hacking phpraider to work for the game Darkfall. I have made some pretty good improvements even though this is the first time I have written php (I usually use java, c#, c++ etc).
anyways, here is the code I have put in in the roster.php file:
while($data = $db_raid->fetch()) {
if($data['att_show']) {
$icon = '<img src="games/'.$pConfig['game'].'/images/attributes/'.$data['att_icon'].'"
onMouseover="ddrivetip(\''.$data['att_name'].'\');" onMouseout="hideddrivetip();" height="18" width="18" alt="'.$data['att_name'].'">';
if($data['att_name'] == 0){
$icon2 = '<img src="games/'.$pConfig['game'].'/images/attributes/'.$data['att_icon'].'"
onMouseover="ddrivetip(\''.$data['att_name'].'\');" onMouseout="hideddrivetip();" height="18" width="18" alt="'.$data['att_name'].'">';
$report->addOutputColumn($icon2, $icon, 'null', 'center');
}else{
$report->addOutputColumn($data['att_name'], $icon, 'null', 'center');
}
}
}
as you can see, when I get a attribute that's value is == 0 , I want it to show a picture instead of the value. When I run it, I get nothing shown.
I will assume its something to do with the ReportList class, can someone point me in the right direction?
Thanks in advance.
-d