1. Maak eerst een nieuw profielveld:
Veldtype: Dropdown box (boolean zou ook moeten werken denk ik).
Veld identificatie: gender
Profielveld publiek weergeven: ja
Weergeven in het gebruikerspaneel: ja
Weergeven op de registratiepagina: ja
Bekijk in `bekijk onderwerp´ scherm: ja
Vereist veld: wat je wilt
Verberg profielveld: nee
2. Zorg dat onder "Instellingen serverprestatie"
Geef eigen profielvelden in de gebruikersprofielen weer en
Geef eigen profielvelden op de berichtenpagina weer allebei op ja staan.
3. Upload je afbeeldingen naar een map naar keuze. Zorg dat ze precies zo heten als de keuzemogelijkheden, in dit geval dus waarschijnlijk "man.gif" en "vrouw.gif".
4. In viewtopic_body.html zoek
Code: Selecteer alles
<!-- BEGIN custom_fields -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
<!-- END custom_fields -->
vervang door
Code: Selecteer alles
<!-- BEGIN custom_fields -->
<!-- IF postrow.custom_fields.PROFILE_FIELD_ID eq "gender" --><dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> <img src="pad_naar_je_plaatje/{postrow.custom_fields.PROFILE_FIELD_VALUE}.gif" alt="{postrow.custom_fields.PROFILE_FIELD_VALUE}" /></dd><!-- ELSE -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd><!-- ENDIF -->
<!-- END custom_fields -->
5. In memberlist_view.html zoek
Code: Selecteer alles
<!-- BEGIN custom_fields --><dt>{custom_fields.PROFILE_FIELD_NAME}:</dt> <dd>{custom_fields.PROFILE_FIELD_VALUE}</dd><!-- END custom_fields -->
en vervang door:
Code: Selecteer alles
<!-- IF custom_fields.PROFILE_FIELD_ID eq "gender" --><dt>{custom_fields.PROFILE_FIELD_NAME}:</dt> <dd>{custom_fields.PROFILE_FIELD_VALUE} <img src="pad_naar_je_plaatje/{custom_fields.PROFILE_FIELD_VALUE}.gif"></dd><!-- ELSE -->
<!-- BEGIN custom_fields --><dt>{custom_fields.PROFILE_FIELD_NAME}:</dt> <dd>{custom_fields.PROFILE_FIELD_VALUE}</dd><!-- END custom_fields --><!-- ENDIF -->
6. Pad naar je plaatje invullen en cache legen.