4
seems to work quite well ;)
just 2 more questions for the moment:
1.) $xoopsConfig['sitename'] is the next thing i need. how do i get it (same file).
2.) i want to show all winners of an expired competition. therefor i've got some code :-/
$member_handler =& xoops_gethandler('member');
$winners = explode("|", $myrow['winners']);
$gw['gws'][$k]['showwinners'] = false;
if (sizeof($winners) > 0) {
$gw['gws'][$k]['showwinners'] = true;
for($i=0; $i < sizeof($winners); $i++) {
$thisuser =& $member_handler->getUser($winners[$i]);
$gw['gws'][$k]['winners'] .= $thisuser->getVar['uname'].", ";
}
}
$gw['gws'][$k]['winners'] = substr($gw['gws'][$k]['winners'],0,strlen($gw['gws'][$k]['winners']-2));
for my tests i'm using 4 records. the values for $myrow['winners'] are:
a.) ""
b.) ""
c.) "1"
d.) ""
but it seems not to work? sizeof($winners) is 1 for each of my records. could someone help me ?