We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Any way to view custom profile fields in forum member list?

Development and Programming

Phoebe's avatar
Phoebe
58 posts
17 years ago
Phoebe's avatar Phoebe

I would like to have this in Member List Rows

{exp:member:custom_profile_data}
<td class='{member_css}'>
{telephones}
</td>
{/exp:member:custom_profile_data}

But it’s not allowed.

       
Paul Burdick's avatar
Paul Burdick
480 posts
17 years ago
Paul Burdick's avatar Paul Burdick

Any outputted data and parsing has to be pretty specifically put into the code and right now it is not for custom profile fields and the Member List. You can make a feature request, if you would like.

       
Phoebe's avatar
Phoebe
58 posts
17 years ago
Phoebe's avatar Phoebe

Used the query module in the end. Happy to share with anyone who wants it.

       
Deon's avatar
Deon
87 posts
17 years ago
Deon's avatar Deon

I would be very interested in seeing how you did this.

Thank you.

       
Phoebe's avatar
Phoebe
58 posts
17 years ago
Phoebe's avatar Phoebe

Styling:

<style>
.tableBorder, .tableBorderLeft { background: url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_category.jpg" alt=""  />) no-repeat; width: 763px; margin: 0; padding: 0; }
.tableBorderTopLeft { padding:            0; margin-top:        1px; margin-bottom:     3px; border-color: #fbedc3; border-style: none solid solid; border-width: 1px; }
.tableBorderPad {
 
}
.threadBorder { color: #b37548; padding:            0; margin:            0 0 8px; }
.tableBG {
 background-color: #F0F0F0;
}
.tablePad {
 padding:  0 2px 4px 2px;
}
td.tablePad2 { padding: 0 13px 0 18px; }
td.tablePad3 { padding: 0 9px 0 20px; }
.tableHeadingBG { background: #fffbe5 url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_category.jpg" alt=""  />) no-repeat left top; margin: 0; padding:           15px 18px 11px; border-bottom: 1px solid #fbeece; }
.BGright { background-position: right top; margin: 0; padding: 15px 18px 11px; border-bottom: 1px solid #fbeece; }
.tableHeading {
 font-size:         15px;
 letter-spacing:    0.1em;
 font-weight:        normal;
 padding:           0;
 margin:            0;
 background-color:  transparent; 
 white-space:         nowrap;
}
.tableHeadingSmall { font-size:         11px; font-weight:        normal; line-height: 13px; padding:           0; margin:            0; background-color:  transparent; }
.tableRowHeading, .tableRowHeadingBold { color: #b37548; font-size:         11px; padding:           8px 10px 8px 6px; }
.tableRowHeadingBold { color: #b37548; font-size: 13px; font-weight: normal; background-color: white; }
.tableRowSpacer {
 background:         #FBFBFD;
 padding:           0;
}
.tableCellOne { background: white url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_forum.gif" alt=""  />) repeat-x left top; padding:           12px 0 12px 0; }
.tableCellTwo { background: white url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_forum.gif" alt=""  />) repeat-x left top; padding:           12px 0 12px 0; }
.tableCellThree { background: url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_threadbuttons.gif" alt=""  />) no-repeat left bottom; margin: 0; padding: 10px 0 10px 13px; }
* html .tableCellThree { padding: 9px 0 6px 13px; }
.tableCellFour { background: url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_threadbuttons.gif" alt=""  />) no-repeat right bottom; padding: 10px 13px 10px 0; }
* html .tableCellFour { padding: 9px 13px 6px 0; }
.leftcol { background: #fffbe7 url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_category.jpg" alt=""  />) no-repeat; padding: 18px 10px 18px 18px; }
.tablePostInfo { font-family:       Verdana, Geneva, Tahoma, "Trebuchet MS", Arial, Sans-serif; font-size:         10px; color:             #668c5e; background-color:  transparent; padding: 0 10px 0 20px; }
td.T1 { width: 20px; }
td.T2 { width: 350px; }
td.T3 { width: auto; }
td.T4 { width: auto; }
td.T5 { width: 200px; }
.postcount { color: #b37548; font-size: 15px; width: 50px; display: block; }
td.secondcell { width: 330px; }
.profileHeadingBG {
 background:         #fffae2 url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_category.jpg" alt=""  />) no-repeat right top;
 color:             #115b02;
 padding:           10px 6px 6px 18px;
}
.profileAlertHeadingBG {
 background:         #fffae2 url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_category.jpg" alt=""  />) no-repeat right top;
 color:             #c00;
 padding:           10px 6px 6px 18px;
}
.profileTopBox {
 background:    #fffae2 url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_category.jpg" alt=""  />) no-repeat left top;
 margin:        0;
 padding:        6px 5px 5px 18px;
}
.profileTitle {
 font-size:            14px;
 font-weight:        bold;
 color:                #703219;
 padding:             10px 5px 3px 0;
 margin:            0;
 background-color: transparent;  
}
.profileItem { background:        transparent; font-size:         11px; color:           #38394b; margin:             2px 0;  
}
.profilePhoto { background: #fffae2 url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_category.jpg" alt=""  />) no-repeat right top; padding:            1px; margin-top:        1px; margin-bottom:     3px; }
.avatar {
 background:    transparent;
 margin:        3px 14px 3px 0;
}
.photo {
 background:    transparent;
 margin:        6px 14px 0 3px;
}
.profileHead {
 font-size:            10px;
 font-weight:        bold;
 text-transform:    uppercase;
 color:                #b37548;
 padding:            3px 4px 3px 10px;
 background-color:    white;  
 border-top:        1px solid #fbedc3;
 border-bottom:        1px solid #fbedc3;
 margin:            0;
}
.memberlistRowOne { background: url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_forum.gif" alt=""  />) repeat-x left top; font-size:11px; padding:5px 6px; border-color: #fff #fff #b2b3ce #fbedc3; border-style: none solid; border-width: 1px; }
.memberlistRowTwo { background: url(<img src="http://mgmt.cef.ie/themes/forum_themes/shares/images/bg_forum.gif" alt=""  />) repeat-x left top; font-size:         11px; padding: 5px 6px; border-color: #fff #fff #b2b3ce #fbedc3; border-style: none solid; border-width: 1px; }
.memberlistHead { color: #703219; font-size:         11px; font-weight:         bold; background-color: transparent; border-bottom:     1px none white; padding:             8px 0 8px 8px; }

</style>

And the query bit

<pre><code>

       
Phoebe's avatar
Phoebe
58 posts
17 years ago
Phoebe's avatar Phoebe

And the query bit:



Hope that helps

       
Deon's avatar
Deon
87 posts
17 years ago
Deon's avatar Deon

Did you put the query part in the member list?

Would this type of query work on any ee page?

       
Phoebe's avatar
Phoebe
58 posts
17 years ago
Phoebe's avatar Phoebe

I did a template called contacts to use instead of the member list. May have to delve around in the themes if you want to replace the link to the member list.

       
Deon's avatar
Deon
87 posts
17 years ago
Deon's avatar Deon

I tried putting this into a template and it gives me an error. I replaced your custom field with my own.

       
Phoebe's avatar
Phoebe
58 posts
17 years ago
Phoebe's avatar Phoebe

What’s the error?

       
Deon's avatar
Deon
87 posts
17 years ago
Deon's avatar Deon

Parse error: syntax error, unexpected ‘}’ in /home/xxxxx/public_html/xxxx/core/core.functions.php(635) : eval()’d code on line 88

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.