userlist with columns

17 years 2 months ago #30538 by Dionysus
Replied by Dionysus on topic Re:userlist with columns
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:

Please Log in to join the conversation.

17 years 2 months ago #30540 by zen
Replied by zen on topic Re:userlist with columns
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.

Please Log in to join the conversation.

17 years 2 months ago #30541 by Dionysus
Replied by Dionysus on topic Re:userlist with columns
Can I ask you for a example??

I'm not well verse in coding.

Please Log in to join the conversation.

17 years 2 months ago #30544 by zen
Replied by zen on topic Re:userlist with columns
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&amp;task=userProfile&amp;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.

Please Log in to join the conversation.

17 years 2 months ago #30548 by Dionysus
Replied by Dionysus on topic Re:userlist with columns
Thank you very much!!!

Please Log in to join the conversation.

17 years 2 months ago #30549 by mossimo
Replied by mossimo on topic Re:userlist with columns
Thanks also!!!!;) ;) ;)

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.265 seconds

Facebook Twitter LinkedIn