Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted November 8, 20159 yr 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.
December 11, 20159 yr Like I have done for my military members? http://www.wheelhorseforum.com/topic/56948-military-members/
December 11, 20159 yr Author 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.
December 11, 20159 yr 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>
December 11, 20159 yr Author 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.
Archived
This topic is now archived and is closed to further replies.