Re: Profilfeld
Verfasst: 06.05.2009 17:09
Das habe ich eigentlich nie gemacht. Ich bin immer normal auf Aktualisieren geganen. (Cache leeren und Styles aktualisieren. )
Code: Alles auswählen
<!-- BEGIN custom_fields -->
<!-- IF postrow.custom_fields.PROFILE_FIELD_NAME == 'geschlecht' -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong><!-- IF postrow.custom_fields.PROFILE_FIELD_VALUE == 'Weiblich' --><img src="styles/talkblue/imageset/icon_female.gif" border="0"><!-- ELSE --><img src="styles/talkblue/imageset/icon_male.gif" border="0"><!-- ENDIF --></dd>
<!-- ELSE -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
<!-- ENDIF -->
<!-- END custom_fields -->
Code: Alles auswählen
<!-- BEGIN custom_fields -->
<!-- IF postrow.custom_fields.PROFILE_FIELD_NAME == 'Geschlecht' -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong><!-- IF postrow.custom_fields.PROFILE_FIELD_VALUE == 'Weiblich' --><img src="styles/talkblue/imageset/icon_female.gif" border="0"><!-- ELSE --><img src="styles/talkblue/imageset/icon_male.gif" border="0"><!-- ENDIF --></dd>
<!-- ELSE -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
<!-- ENDIF -->
<!-- END custom_fields -->
Code: Alles auswählen
<!-- IF postrow.custom_fields.PROFILE_FIELD_NAME == 'Geschlecht' -->
Code: Alles auswählen
<!-- BEGIN custom_fields -->
<!-- IF postrow.custom_fields.PROFILE_FIELD_NAME == 'Geschlecht' -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong><!-- IF postrow.custom_fields.PROFILE_FIELD_VALUE == 'Weiblich' -->Weiblich<img src="styles/talkblue/imageset/icon_female.gif" border="0"><!-- ELSE -->Männlich<img src="styles/talkblue/imageset/icon_male.gif" border="0"><!-- ENDIF --></dd>
<!-- ELSE -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
<!-- ENDIF -->
<!-- END custom_fields -->
Habe das eben auch probiert. Klappt super- nur mir wurden alle Grafiken gezeigt, statt nur 'die ausgewählte'. Funktioniert die oben zitierte Version nur mit der Boolescher Wert Ja/nein? Ich wollte nämlich zb. (da es so toll klappt mit den grafikenmad-manne hat geschrieben:Wie gesagt .. es kommt auf Gross-und kleinschreibung auch beim Namen des Feldes an!
Deshalb muss es so aussehenGruss,Code: Alles auswählen
<!-- BEGIN custom_fields --> <!-- IF postrow.custom_fields.PROFILE_FIELD_NAME == 'Geschlecht' --> <dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong><!-- IF postrow.custom_fields.PROFILE_FIELD_VALUE == 'Weiblich' --><img src="styles/talkblue/imageset/icon_female.gif" border="0"><!-- ELSE --><img src="styles/talkblue/imageset/icon_male.gif" border="0"><!-- ENDIF --></dd> <!-- ELSE --> <dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd> <!-- ENDIF --> <!-- END custom_fields -->
Manne.
Hallo Susi ... nein, das funktioniert auch mit Auswahlfeldern. Lies dir den Thread nochmal ab hier durch, wo ich das Ganze für Latza beschrieben hatte!susi24 hat geschrieben:Ist also doch nur für Boolescher Wert- ja?
Na dann lässt du uns evtl. teilhaben und postest deinen CODE hier? Wir sind immer für bessere Lösungen offenaurora876 hat geschrieben:bei mir ist der codeblock kurz und knapp, funktioniert wie eine 1.
Ich bin nach wie vor an deiner Lösung interessiertaurora876 hat geschrieben:bei mir ist der codeblock kurz und knapp, funktioniert wie eine 1.