i.e. surround the code with a table like below;
[code:1]<table class="usertable" cellspacing="0" cellpadding="10">
<?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";
$oneintwo = $i % 5;
if ($oneintwo == 0) {
print "\t</tr><tr>\n";
$endofrow= 1;
}
$i++;
}...[/code:1]
And, in your CSS,
[code:1].usertable
{
border: solid 1px #000000;
padding: 5px;
}[/code:1]
That's the basic idea. Play around with your attributes in CSS to get the look you are after.
this to 6 and my userlist is only 6 person its create also a new row in the table.....$oneintwo = $i % 5;
Please Log in to join the conversation.
I would like to ask why it create td instead of TR first in the output...
ANd also when i set $oneintwo = $i % 5;
this to 6 and my userlist is only 6 person its create also a new row in the table.....
i delete the red txt bec its create new row....
Do you think it will not affect the cb?
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.