Hello,
I don't know how remplace lastposter by thread author, someone can help me please ?
Probably in these lines but don't understand how do this modification...
More difficult than it seems, too hard with my little knowledge.
I don't know how remplace lastposter by thread author, someone can help me please ?
Probably in these lines but don't understand how do this modification...
More difficult than it seems, too hard with my little knowledge.
// lastposter markup and trim
$latestpost[fulllastposter] = $latestpost[lastposter];
if ($userclimit > 0 && my_strlen($latestpost[lastposter]) > $userclimit)
{
$latestpost[lastposter] = my_substr($latestpost[lastposter], 0, $userclimit).'...';
}
$query = $db->query("SELECT usergroup,displaygroup FROM ". TABLE_PREFIX ."users WHERE uid = '$latestpost[lastposteruid]' LIMIT 1");
$qinfo = $db->fetch_array($query);
$latestpost[lastposter] = format_name($latestpost[lastposter], $qinfo['usergroup'], $qinfo['displaygroup']);
$vuserid = $mybb->user['uid'];
$query = $db->query("SELECT lastvisit FROM ". TABLE_PREFIX ."users WHERE uid = '$vuserid' LIMIT 1");
$qinfo = $db->fetch_array($query);
$vlastvisit = $qinfo['lastvisit'];