styling the FEU listing

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
davidjon
Forum Members
Forum Members
Posts: 21
Joined: Thu Jul 09, 2009 7:56 pm

styling the FEU listing

Post by davidjon »

Hi guys,

I installed the module Front End User Listing. It's just visible for the crew, not the members. However I want it properly styled.

Now the table that it exports automatically, is messed up. The Column for the name is too short. The member-id is at the end, i'd prefer it in the first cell of the table row. And the last cell has the full URL to the detail page of that particular member. Eventhough all the content in a row is clickable. So it's actually not neccesary at all?!

I was wondering if one of you has experience with it. And could tell me how I could fix it. I'm no PHP pro, so please dont use a to technical language. ;)

Well thanks y'all!

David Jon
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: styling the FEU listing

Post by jmcgin51 »

I have never used FEU Listing (I use CGUserDirectory instead, which I believe is more current and better supported), but this should just be an issue of changing the FEU Listing template, which you can find in the Admin panel under the FEU Listing module.

For example (this is from CGUserDirectory, with additional comments, but it will get you started)

{* CGUserDirectory summary template *}

{foreach from=$users item='oneuser'} // {*for each record in the results, do the following*}
{*create a new div*}

    {*and another new div*}
    {$mod->Lang('username')}: {*and another new div, and then print the username string from the lang file ("Username" by default, but can be changed in the lang file or overridden here with whatever text you want*}
    {*and another div and then a link, where the target is the detail_url and the title is the username*}
          {$oneuser.username} ({$oneuser.id}) [*then the link text is the username, then print the userid*}
 

 
    {$mod->Lang('created')}:
    {$oneuser.createdate|cms_date_format}
 

 
    {$mod->Lang('expires')}:
    {$oneuser.expires|cms_date_format}
 

etc
------
If you want to change the order of these items, just rearrange the divs, or if you don't want to display something (for example, the date the user was created, just delete that div completely..
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: styling the FEU listing

Post by Dr.CSS »

Most all the modules have templates that you can edit but it requires you to go to the modules admin and look around and have some idea of how HTML/CSS work...
davidjon
Forum Members
Forum Members
Posts: 21
Joined: Thu Jul 09, 2009 7:56 pm

Re: styling the FEU listing

Post by davidjon »

Great! Thanks alot!

I didnt know CG user directory worked for the FEU module aswell. thanks....f*** nice!
davidjon
Forum Members
Forum Members
Posts: 21
Joined: Thu Jul 09, 2009 7:56 pm

Re: styling the FEU listing

Post by davidjon »

Okay,

so I do have a couple of questions about the CG User Directory!

I'm making a table. With all the properties next to eachother.
I litteraly copied parts of the summary template. And added some extra stuff.

This is what the code looks like :

Code: Select all

<table width="100%">
<tr>
<td>ID</td>
<td>Username</td>
<td>Profession</td>
<td>Birthdate</td>
<td>Country</td>
<td>City</td>
<td>Email</td>
<td>Name</td>
</tr>

{foreach from=$users item='oneuser'}
<tr>
<td>{$oneuser.id}</td>
<td>{$oneuser.username}</td>
{* properties *}
  {foreach from=$oneuser.properties item='onepropvalue'}
  <td>{$onepropvalue}</td>
  {/foreach}
</tr>
{/foreach}
</table>
These are all the properties I actually need to know.

If I understand the code correctly {$onepropvalue} is the piece of code that puts the properties in the TD. I cant miss that.
The weird thing is, it puts the properties in randomly. So the top TR doesnt match each user. I made 3 test users. And a couple of properties are moved in to another cell.

Anything sound familiar? How can I fix this?!

I tried to foreach the prompt in the top TR aswell, but that doesnt work either.

help me, please:D
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: styling the FEU listing

Post by Dr.CSS »

This guy is not real good with tables so no help to you on that issue...
Post Reply

Return to “Layout and Design (CSS & HTML)”