Page 1 of 1
styling the FEU listing
Posted: Tue Jul 21, 2009 4:19 pm
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
Re: styling the FEU listing
Posted: Tue Jul 21, 2009 6:53 pm
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..
Re: styling the FEU listing
Posted: Tue Jul 21, 2009 8:22 pm
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...
Re: styling the FEU listing
Posted: Tue Jul 21, 2009 10:26 pm
by davidjon
Great! Thanks alot!
I didnt know CG user directory worked for the FEU module aswell. thanks....f*** nice!
Re: styling the FEU listing
Posted: Tue Jul 21, 2009 11:34 pm
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
Re: styling the FEU listing
Posted: Wed Jul 22, 2009 6:22 pm
by Dr.CSS
This guy is not real good with tables so no help to you on that issue...