Really?!
That is very interesting. Would you mind posting your URL so we can check it out? Also, if you would be so kind to give any insight into the changes you made that would be wonderful. Here is my userlist, as you can tell, it desperatly needs a 2 column approach...
www.rockstardallas.com/index.php?option=com_comprofiler&task=usersList
Concerning hermanandp's solution, it appears the code block is different in the current version of CB from when he posted his sample. For example, from hermanandp:
1. locate file- comprofiler.html
2. locate the area-
/******************************
List Functions
******************************/
3. within this find the code-
[code:1]<?php
$i = 1;
foreach($users as $user) {
$evenodd = $i % 2;
if ($evenodd == 0) {
$class = "sectiontableentry1";
} else {
$class = "sectiontableentry2";
}
//print $user->name;
if($ueConfig==1) {
$onclick = "onclick=\"javascript:window.location='".sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=".$user->id)."'\"";
$style="style=\"cursor:hand;cursor:«»pointer;\"";
}
print "\t<tr class=\"$class\" ".$style." ".$onclick.">\n";
//print $lfields;
$str = null;
eval("\$str = \"$lfields\";"«»);
echo $str. "\n";
print "\t</tr>\n";
$i++;
}
?>
[/code:1]
and replace it with-
[code:1]
<tr>
<?php
$i = 1;
foreach($users as $user) {
$endofrow= 0;
//print $user->name;
if($ueConfig==1) {
$onclick = "onclick=\"javascript:window.location='".sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=".$user->id)."'\"";
$style="style=\"cursor:hand;cursor:«»pointer;\"";
}
//print $lfields;
$str = null;
eval("\$str = \"$lfields\";"«»);
echo $str. "\n";
$oneinthree = $i % 3;
if ($oneinthree == 0) {
print "\t</tr><tr>\n";
$endofrow= 1;
}
$i++;
}
if ($endofrow == 0) {
print "\t</tr>\n";
}
?>[/code:1]
Now in the current version of CB it appears we must:
1. locate file- comprofiler.html.php
2. locate the area-
/******************************
List Functions
******************************/
3. within this find the code-
[code:1]
</tr>
<?php
$i = 0;
if (is_array($users) && count($users)>0) {
foreach($users as $user) {
$evenodd = $i % 2;
if ($evenodd == 0) {
$class = "sectiontableentry1";
} else {
$class = "sectiontableentry2";
}
//print $user->name;
if($ueConfig==1) {
$style = "style=\"cursor:hand;cursor:«»pointer;\"";
$style .= " id=\"cbU".$i."\"" ;
// $style .= " onclick=\"javascript:window.location='".sefRelToAbs("index.php?option=com_comprofiler&task=userProfile&user=".$user->id.$option_itemid)."'\"";
} else {
$style = "";
}
if ($user->banned) {
$colsNbr = 1+($row->col2enabled ? 1:0)+($row->col3enabled ? 1:0)+($row->col4enabled ? 1:0);
echo "\t<tr class=\"$class\"><td colspan=\"".$colsNbr."\"><span class=\"error\" style=\"color:red;\">"._UE_BANNEDUSER." ("._UE_VISIBLE_ONLY_MODERATOR."«») :</span></td></tr>";
}
print "\t<tr class=\"$class\" ".$style.">\n";
//print $lfields;
$str = null;
eval("\$str = \"$lfields\";"«»);
echo $str. "\n";
print "\t</tr>\n";
$i++;
}
} else {
$colsNbr = 1+($row->col2enabled ? 1:0)+($row->col3enabled ? 1:0)+($row->col4enabled ? 1:0);
echo "\t<tr class=\"sectiontableentry1\"><td colspan=\"".$colsNbr."\">"._UE_NO_USERS_IN_LIST."</td></tr>";
}
?>[/code:1]
And this is where I get lost...
It seems the principal of the change might be the same, but I am a mere coding mortal. (design background) Any insight into this would be greatly appreciated.
-zep