Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
-FP Posted November 8, 2015 Posted November 8, 2015 How can I get to the users custom profile fields from this: $comment->author()-> I want to check the value of a specific field ID to display something. I tried doing it in the customFieldsDisplay template, but the value there comes with some html... not just the text of the field.
nylyon Posted December 11, 2015 Posted December 11, 2015 Like I have done for my military members? http://www.wheelhorseforum.com/topic/56948-military-members/
-FP Posted December 11, 2015 Author Posted December 11, 2015 Maybe, what I want to do is the following: I have a select box custom field with many options. I want to check which option has been chosen by the user, and depending on that, display something, for instance an image like you did for your military members.
nylyon Posted December 11, 2015 Posted December 11, 2015 Here's what I did for the insignias, in the display format box for the profile: <span class='row_title'>{title}:</span><span class='row_data'> {content}<br><img src='http://www.wheelhorseforum.com/public/{content}.png'></span>
-FP Posted December 11, 2015 Author Posted December 11, 2015 2 minutes ago, nylyon said: Here's what I did for the insignias, in the display format box for the profile: <span class='row_title'>{title}:</span><span class='row_data'> {content}<br><img src='http://www.wheelhorseforum.com/public/{content}.png'></span> I feel so stupid now, didn't even think about the fact that we can use {content} in an url... Spoiler Thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.