userlist with columns

12 years 7 months ago #30538 by Dionysus
I looked at the first part, but it seems the project stopped:

I got the 2nd solution working, but it doesn't explain making borders.

Or How can I create the same output as the plug_connections
Attachments:
12 years 7 months ago #30540 by zen
In my case, I surrounded the suggested (2nd) code with a table and stylized the table with CSS and so on.

I believe you can stylize the inner <tr> accordingly to meet your needs as well.
12 years 7 months ago #30541 by Dionysus
Can I ask you for a example??

I'm not well verse in coding.
12 years 7 months ago #30544 by zen
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.
12 years 7 months ago #30548 by Dionysus
Thank you very much!!!
12 years 7 months ago #30549 by mossimo
Thanks also!!!!;) ;) ;)
Moderators: beatnantkrileon
Time to create page: 0.390 seconds
Facebook Twitter Google LinkedIn