inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 5, 2013 7:03:04 GMT -8
hello. Ive tried switching the columns in the members lists with success.
For example, switching line 20 in the members tab of layout templates from... <th class="username $[sortable_class.username]">Username</th> into... <th class="location $[sortable_class.location]">Location</th>
and then also, switching line 5 in the members lists tab of layout templates from... <td class="username">$[user.username]</td> into... <td class="location">$[user.location]</td>
This works well. But I was wondering if its possible to switch it to a custom profile field. Ive tried the above with a custom profile field I have already created. It of course changes the column header, but left the username info for each member in the column.
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Mar 5, 2013 15:41:29 GMT -8
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 8, 2013 0:50:24 GMT -8
thanks. but where would I be posting this? And would I still need to make the changes I did alongside this?
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Mar 8, 2013 8:27:32 GMT -8
It would be in the member list tab of the layout templates. Replace this: $[user.location] with the code I posted.
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 11, 2013 7:19:44 GMT -8
I replaced as you said, but Im missing something somewhere. The custom profile Ive created is called 'GM'. Here's what I have...
{foreach $[user]} <tr id="$[user.content_id]" class="$[user.content_class] clickable" {if $[user.ip]}data-ip="$[user.ip]"{/if}> <td class="checkbox clickable">$[user.checkbox]</td> <td class="name target">$[user]</td> <td class="location">{foreach $[user.custom_field]} {if $[user.custom_field.name] == 'GM'}<img src="$[user.custom_field.value]" />{/if} {/foreach}</td> <td class="rank">{if $[user.group]}$[user.group.name]{else}$[user.rank.name]{/if}</td> <td class="posts">$[user.posts]</td> <td class="date-registered">$[user.registered_on]</td> <td class="last-online last">{if $[user.is_online]}GM is Online{else}$[user.last_online]{/if}</td> </tr> {/foreach} {if !$[user]} <tr><td colspan="7" class="last center">No GMs were found.</td></tr> {/if}
|
|
inherit
190352
0
Feb 7, 2018 3:14:57 GMT -8
strewth78
118
February 2013
strewth78
|
Post by strewth78 on Mar 11, 2013 7:44:05 GMT -8
think Ive got it. used the following...
<td> {foreach $[user.custom_field]} $[user.custom_field.value] <br /> {/foreach} </td>
|
|