inherit
163839
0
May 25, 2017 20:48:34 GMT -8
Maiden
1,020
February 2011
dreamaiden
|
Post by Maiden on Feb 12, 2013 8:20:18 GMT -8
Custom profile fields can currently be in the profile or miniprofile. It's be nice if the option was there for them to be in the member list as well so you could sort members by them. Specifically we have an OoC Account field I'd like to be able to sort by. solariaweyr.proboards.com/Thanks for any help with 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 Feb 12, 2013 9:59:04 GMT -8
It's possible to put custom profile fields into the member list, but it won't be possible to sort them in the same way as the other columns are sorted.
|
|
inherit
163839
0
May 25, 2017 20:48:34 GMT -8
Maiden
1,020
February 2011
dreamaiden
|
Post by Maiden on Feb 19, 2013 10:27:01 GMT -8
Thanks Tim Camara! Armed with that knowledge I spotted where someone else was asking for similar help and copied those instructions to the desired effect. And I'm guessing making any custom columns sortable isn't an easy (if it's even possible?) thing to do?
|
|
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 Feb 19, 2013 12:05:46 GMT -8
Pretty much.
|
|
inherit
139476
0
Jan 19, 2020 4:24:42 GMT -8
Auburn
I will steal your smile and treasure it
263
April 2009
auburneye
|
Post by Auburn on Mar 13, 2013 18:22:19 GMT -8
It's possible to put custom profile fields into the member list, (...) How could I/we do even this much?
|
|
inherit
139476
0
Jan 19, 2020 4:24:42 GMT -8
Auburn
I will steal your smile and treasure it
263
April 2009
auburneye
|
Post by Auburn on Mar 29, 2013 17:13:17 GMT -8
bumpy ^^;
|
|
inherit
178402
0
Apr 21, 2016 20:27:45 GMT -8
aBiSh
207
April 2012
emilayskie
|
Post by aBiSh on May 14, 2013 20:26:38 GMT -8
Can anyone please guide us on how to do this? Would appreciate your help.
|
|
inherit
178402
0
Apr 21, 2016 20:27:45 GMT -8
aBiSh
207
April 2012
emilayskie
|
Post by aBiSh on May 14, 2013 20:34:23 GMT -8
By the way I tried adding this to Layout Templates -> Members List -> Members tab {if $[current_user.username] == "admin"} {foreach $[user.custom_field]} <th>$[user.custom_field.name]</th> {/foreach} } and this to Members List tab {if $[current_user.username] == "admin"} {foreach $[user.custom_field]} <th>$[user.custom_field.value]</th> {/foreach} } I also tried guessing the name of the custom field/syntax by doing this {if $[current_user.username] == "admin"} <th>$[user.custom_field.name.currentcity]</th> } and this {if $[current_user.username] == "admin"} <th>$[user.custom_field.value.currentcity]</th> } No success. I wonder if this is restricted by the width and layout settings. Any idea would be greatly appreciated.
|
|
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 May 15, 2013 7:53:20 GMT -8
|
|
inherit
178402
0
Apr 21, 2016 20:27:45 GMT -8
aBiSh
207
April 2012
emilayskie
|
Post by aBiSh on May 15, 2013 16:16:20 GMT -8
Hi Tim! Thank you for the links. I did try their codes so I came up with this: For the header {if $[current_user.username] == "admin"} <th class="username">Email Address</th> <th class="name">Current City</th> <th class="name">Hometown</th> {/if} And this for the list {if $[current_user.username] == "admin"} <td class="username">$[user.email]</td> <td> {foreach $[user.custom_field]} {if $[user.custom_field.name] == "Current City"} $[user.custom_field.value] {/if} {/foreach} </td> <td> {foreach $[user.custom_field]} {if $[user.custom_field.name] == "Hometown"} $[user.custom_field.value] {/if} {/foreach} </td> {/if} I just wanted to show two custom profile fields called Current City and Hometown. Since I restricted this to just username admin only, on the list, it only works for the admin but not other members who have those custom fields populated. Is there something else I'm missing?
|
|
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 May 16, 2013 7:43:52 GMT -8
So wait, is that code working or not working? Also, what forum is this on?
|
|
inherit
178402
0
Apr 21, 2016 20:27:45 GMT -8
aBiSh
207
April 2012
emilayskie
|
Post by aBiSh on May 16, 2013 14:58:19 GMT -8
Hi Tim Camara! It didn't work generally because it only listed admin's custom profile details and not others.
|
|
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 May 17, 2013 7:48:47 GMT -8
Try removing the {if $[current_user.username] == "admin"} and {/if} around your two blocks of code.
|
|
inherit
178402
0
Apr 21, 2016 20:27:45 GMT -8
aBiSh
207
April 2012
emilayskie
|
Post by aBiSh on May 19, 2013 14:40:07 GMT -8
Hi Tim Camara! I did just that and it's still the same so I put it back.
|
|
inherit
178402
0
Apr 21, 2016 20:27:45 GMT -8
aBiSh
207
April 2012
emilayskie
|
Post by aBiSh on May 19, 2013 20:25:54 GMT -8
Anyone else who have successfully added a custom profile field to their members list? Would appreciate it if you can post a bit of your code. Thanks!
|
|