Code: Select all
<a href="{postrow.PROFILE_CPNAME_VALUE}"><img src="(URL to Twitter image)" alt="{postrow.POST_AUTHOR}'s Twitter account" /></a>
And then that url actually works? Because in my experience custom profile fields only work when using internal links. I'm guessing you'd need some kind of mod that parses bbcodes in cpf's first.ashras99 wrote:then url will also show
Code: Select all
<!-- BEGIN custom_fields -->
<!-- IF postrow.custom_fields.PROFILE_FIELD_ID eq "twitter" --><br /><b>{postrow.custom_fields.PROFILE_FIELD_NAME}:</b> <a href="{postrow.custom_fields.PROFILE_FIELD_VALUE}"><img src="images/yourfolder/{postrow.custom_fields.PROFILE_FIELD_VALUE}.gif" alt="{postrow.custom_fields.PROFILE_FIELD_VALUE}" title="{postrow.custom_fields.PROFILE_FIELD_VALUE}" /></a><!-- ENDIF -->
<!-- END custom_fields -->
Code: Select all
<!-- BEGIN custom_fields -->
<!-- IF postrow.custom_fields.PROFILE_FIELD_ID eq "twitter" --><dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> <a href="{postrow.custom_fields.PROFILE_FIELD_VALUE}"><img src="images/yourfolder/{postrow.custom_fields.PROFILE_FIELD_VALUE}.gif" alt="{postrow.custom_fields.PROFILE_FIELD_VALUE}" title="{postrow.custom_fields.PROFILE_FIELD_VALUE}" /></a></dd><!-- ENDIF -->
<!-- END custom_fields -->