2010-06-12, 02:15 AM
2010-06-12, 02:37 AM
I've just tried doing this myself, proving to be more difficult than I thought.
({$usertitle}) on showteam_usergroup_user isn't working.
I'll keep trying and post back here when I get it.
({$usertitle}) on showteam_usergroup_user isn't working.
I'll keep trying and post back here when I get it.
2010-06-12, 02:39 AM
Try:
Haven't tried it so not sure if it will work or is correct.
{$mybb->settings['bburl']}/{$mybb->user['usertitle']}
Haven't tried it so not sure if it will work or is correct.
2010-06-12, 09:54 AM
None of the above will work because the usertitle isn't included in the query that draws the user data. To be honest it's a bit of a pain but here is a relatively easy way:
Open showteam.php and find (around line 73):
and change it to (adding usertitle to the query):
Then open your showteam_usergroup_user and showteam_moderators_mod templates and replace:
If they don't have a custom usertitle it will show blank.
Open showteam.php and find (around line 73):
$query = $db->simple_select("users", "uid, username, displaygroup, usergroup, ignorelist, hideemail, receivepms", "displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username'));
and change it to (adding usertitle to the query):
$query = $db->simple_select("users", "uid, username, usertitle, displaygroup, usergroup, ignorelist, hideemail, receivepms", "displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username'));
Then open your showteam_usergroup_user and showteam_moderators_mod templates and replace:
<a href="{$user['profilelink']}"><strong>{$user['username']}</strong></a>
with:<a href="{$user['profilelink']}"><strong>{$user['username']}</strong></a><br />{$user['usertitle']}
If they don't have a custom usertitle it will show blank.
2010-06-13, 01:48 AM
Thanks again Tim!