If you're totally unfamiliar with phpbb modding, then do not touch this .
What I needed: our clan supports multiple games and we wanted members to be able to select the games they play in their profile and have a nice game logo show up in their profile and at viewtopic, memberslist, ...
1: I first made custom profile fields in the acp. Attention: you'll need to go to the "load settings" in the acp and configure the custom profile field to show on viewtopic and memberslist!
I personally choose for custom field "boolean", example: Renegade: yes/no
If you do this, something like
"Renegade: yes" will appear in your profile, viewtopic, ...
Now the modding part: go to includes/functions_profile_fields.
Around line 430, find:
Code: Select all
'PROFILE_FIELD_VALUE' => $value,
Code: Select all
'PROFILE_FIELD_VALUE' => $prof_field_value,
Code: Select all
'PROFILE_FIELD_NAME' => $ident_ary['data']['lang_name'],
Code: Select all
'PROFILE_FIELD_NAME' => $prof_field_name,
Code: Select all
$tpl_fields['blockrow'][] = array(
Code: Select all
//Goz mod: custom profile field to show an image
$prof_path = "images/custom_profile_fields/".$ident_ary['data']['lang_name'].".jpg";
if (file_exists($prof_path)) {
$prof_field_name = "<img src='images/custom_profile_fields/".$ident_ary['data']['lang_name'].".jpg' border='0'>";
$prof_field_value = "".$ident_ary['data']['lang_name']." player";
} else {
$prof_field_name = $ident_ary['data']['lang_name'];
$prof_field_value = $value;
}
You may need to purge the cache.
There you go, it's as "simple" as this. I hope this can help some people.
Edit 08/01/09: updated this as there was a small mistake in it.