Problem with User List

14 years 11 months ago #99362 by jimena
Problem with User List was created by jimena
Hi.
I´m having some issue witg the CB user list.
In adminstration panel works perfect, but when I create a link in a menu, this is what it shows to me:


List
has 6 registered users

Warning: Invalid argument supplied for foreach() in /components/com_comprofiler/plugin/templates/default/default.php on line 436

Warning: Invalid argument supplied for foreach() in components/com_comprofiler/plugin/templates/default/default.php on line 436

Warning: Invalid argument supplied for foreach() in /components/com_comprofiler/plugin/templates/default/default.php on line 436

Warning: Invalid argument supplied for foreach() in /components/com_comprofiler/plugin/templates/default/default.php on line 436

Warning: Invalid argument supplied for foreach() in /components/com_comprofiler/plugin/templates/default/default.php on line 436

Warning: Invalid argument supplied for foreach() in /components/com_comprofiler/plugin/templates/default/default.php on line 436
List


I´d appreciate a lot if someone could orientate me in the solution of this problem.

Thanks in advance...!!

Please Log in to join the conversation.

14 years 11 months ago #99389 by jimena
Replied by jimena on topic Re:Problem with User List
Anybody...?

The code of default.php is this:

[code:1] $i = 0;
if ( is_array( $this->users ) && count( $this->users ) > 0 ) {
foreach ( $this->users as $userIdx => $user) {
$class = "sectiontableentry" . ( 1 + ( $i % 2 ) ); // evenodd class

if ( $this->allow_profilelink ) {
$style = "style=\"cursor:hand;cursor:«»pointer;\"";
$style .= " id=\"cbU".$i."\"" ;
} else {
$style = "";
}
if ( $user->banned ) {
echo "\t\t<tr class=\"$class\"><td colspan=\"".$colsNbr."\"><span class=\"error\" style=\"color:red;\">"._UE_BANNEDUSER." ("._UE_VISIBLE_ONLY_MODERATOR."«») :</span></td></tr>\n";
}
echo "\t\t<tr class=\"$class\" ".$style.">\n";

foreach ( array_keys( $this->columns ) as $colIdx ) {
echo "\t\t\t<td valign=\"top\" class=\"cbUserListCol" . $colIdx . "\">" . $this->_getUserListCell( $this->tableContent[$userIdx][$colIdx] ) . "\t\t\t</td>\n";
}
echo "\t\t</tr>\n";
$i++;
}
} else {
echo "\t\t<tr class=\"sectiontableentry1\"><td colspan=\"".$colsNbr."\">"._UE_NO_USERS_IN_LIST."</td></tr>\n";
}
[/code:1]

Please Log in to join the conversation.

14 years 11 months ago #99397 by nant
Replied by nant on topic Re:Problem with User List
works ok on all my test sites.

but i won't share my environment since you are not sharing yours ;)

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.178 seconds

Facebook Twitter LinkedIn