zaher already answered my post about how to implement the away message into the forumteam pages.. now my question is: how do I generally add a column into the forum team page with information from custom fields in the userprofile?
thanks a lot!!!
Hello
Open
showteam.php
Find
$bgcolor = alt_trow();
Above it add
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."userfields WHERE ufid='".$user['uid']."'");
$profile_fields = $db->fetch_array($query);
Now in any Show forum team template you can use
{$profile_fields['fidX']}
Where
X is the id of the custom profile field we are intending to show. You can get those ids from the profile fields manager in admin cp.
Now in
Admin CP > Templates > Modify / Delete > Expand > Show forum team templates > showteam_usergroup_user
Find
<td width="10%" class="{$bgcolor}">{$pmcode}</td>
Below it add
<td width="10%" class="{$bgcolor}">{$profile_fields['fidX']}</td>
Change X as i have explained above
Same for
showteam_moderators_mod tempate
find
width="80%"
replace by
width="70%"
Go to
showteam_usergroup template
find
colspan="3"
replace by
colspan="4"
find
<td class="tcat"><span class="smalltext"><strong>{$lang->pm}</strong></span></td>
below it add
<td class="tcat"><span class="smalltext"><strong>Custom profile field X</strong></span></td>
Work
showteam_moderators template the same.