Square userlist view

13 years 3 months ago #150416 by mitch2k
Square userlist view was created by mitch2k
Hello,

Standard the CB userlist shows al users in a list, like:

user1
user2
user3

I want to show them in a 4 by 25 table, like:

user1 user2 user3 user4
user5 user6 user7 user8

Under the photo should be the username.

I search forums, and I found this hack:
www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/id,9410/catid,12/

Ofcourse this is for an older version, ant this won't work on my 1.31 version.

I tried changing the code of comprofiler.html.php, but I can't make it look like a 4*25 table.

Can anyone help me on the way?

Thanks!

Please Log in to join the conversation.

13 years 3 months ago - 13 years 3 months ago #150474 by krileon
Replied by krileon on topic Re: Square userlist view
Easiest approach is to just use CSS. Example as follows.
.cbUserListT_6 thead {
    display: none;
}

.cbUserListT_6 tbody tr {
    float: left;
    display: block;
    width: 100px;
}

With the above CSS you should have only ONE (1) column configured or it will not display right. You also will need to change the number SIX (6) to the ID of your userlist. Alternatively you can completely edit the Template of userlist found within your CB templates PHP file.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

13 years 3 months ago #150578 by mitch2k
Replied by mitch2k on topic Re: Square userlist view
Thanks! This works great in Firefox! But in IE it still shows all the pictures in a list. I tried applying in the IE6 and IE7 CSS files.

Can I use the CSS file to show the thumbnails bigger?

Thanks for the help!

Please Log in to join the conversation.

13 years 3 months ago #150618 by krileon
Replied by krileon on topic Re: Square userlist view

Thanks! This works great in Firefox! But in IE it still shows all the pictures in a list. I tried applying in the IE6 and IE7 CSS files.

It was just an example. You'll need to do cross-browser checks and probably make changes where necessary (I can't design your site for you). If necessary I suggest hiring a template developer.

Can I use the CSS file to show the thumbnails bigger?

Yes, something like the following would do the trick.
.cbUserListT_6 tbody tr img {
 width: 200px
{

I don't recommend up-scaling images though with CSS as you'll end up distorting them.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.206 seconds

Facebook Twitter LinkedIn