Not Solved How display starter/author rather than lastposter with "ChangUonDyU Stat"
#1
Not Solved
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...  Sleepy
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'];
Reply


Messages In This Thread
How display starter/author rather than lastposter with "ChangUonDyU Stat" - by cakissimo - 2014-09-28, 09:20 AM

Forum Jump:


Users browsing this thread: 7 Guest(s)