Admin
Goldmember
get( 'moduleclass_sfx' );
$use_colors = $params->get( 'use_colors' );
$field = $params->get( 'field' );
$field_valuea = $params->get( 'field_valuea' );
$field_valueb = $params->get( 'field_valueb' );
$colora = $params->get( 'colora' );
$colorb = $params->get( 'colorb' );
$query = "SELECT DISTINCT a.username, a.userid, c.cb_geslacht, c.avatar, a.usertype FROM #__session a, #__comprofiler c WHERE a.guest = 0 AND a.userid = c.user_id AND a.userid!=62 \n ORDER BY usertype, username" ;
$database->setQuery($query);
$rows = $database->loadObjectList();
$content = "";
//Usertype fix
$query = "SELECT usertype FROM #__session WHERE userid= '$row->userid'";
$database->setQuery($query);
$usertypecheck = $database->loadResult();
if(empty($usertypecheck))
{
$query = "UPDATE #__session SET usertype = 'Registered' WHERE userid = '$row->userid'";
$database->setQuery($query);
}
//end of fix
foreach($rows as $row)
{
if($use_colors == 'Yes'){
$query_field = "SELECT $field FROM #__comprofiler WHERE user_id=$row->userid";
$database ->setQuery ($query_field);
$field_result = $database->loadResult();
//$userid_url = "| | | usertype == "Super Administrator") {
if ($row->usertype == "Super Administrator") {
$adm_state=" ";
} else {
$adm_state="";
}
if ($row->usertype == "Author") {
$gold_state=" ";
} else {
$gold_state="";
}
if ($row->cb_geslacht == "man") {
$spender_state = "";
} else {
$spender_state = "";
}
//this is for the thumbnail onmouseover variables
$mouseover = "onmouseover=\"this.T_LEFT=true;this.T_WIDTH=60;return";
$usr_avatar = "escape('avatar."\' alt=\'photo\' border=\'0\'>')\">".$row->username."".$adm_state.$gold_state.$spender_state."|";
$usr_noimg = "escape('')\">".$row->username."".$adm_state.$gold_state.$spender_state."|";
/////////////////////VANAF HIER VERANEREN
if($field_result == $field_valuea){
if ($row->avatar != '') {
$content.= "$userid_colora_url $mouseover $usr_avatar ";}
else {$content.= "$userid_colora_url $mouseover $usr_noimg ";}
}
elseif($field_result == $field_valueb){
if ($row->avatar != '') {
$content.= "$userid_colorb_url $mouseover $usr_avatar ";}
else {$content.= "$userid_colorb_url $mouseover $usr_noimg ";}
}
else{
if ($row->avatar != '') {
$content.= "$userid_url $mouseover $usr_avatar ";}
else {$content.= "$userid_url $mouseover $usr_noimg ";}
}
}
}
foreach($rows as $row)
{
if($use_colors == 'No'){
$content.= "".$row->username."";
$content.= "
";
}
}
///////////This was a module created by Party Village. For more information please email lennox@nightcity.nl
?>Iemand zoeken?