MyBB Community Forums

Full Version: How display starter/author rather than lastposter with "ChangUonDyU Stat"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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'];
(2014-09-28, 09:20 AM)cakissimo Wrote: [ -> ]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'];

check out in ACP-setting  of ChangUonDyU Stat" 

[Image: rtdnv4.jpg] U can delete any you want, good luck!!
Hey,

....but what is your ChangUonDyU version please? because i don't have this (prefix too is not here) on ChangUonDyU - Advanced Statistics (1.3)

I'm don't find the officiel website download or latest version source for this module...maybe my version is old 
(2014-09-30, 03:43 PM)cakissimo Wrote: [ -> ]Hey,

....but what is your ChangUonDyU version please? because i don't have this (prefix too is not here) on ChangUonDyU - Advanced Statistics (1.3)

I'm don't find the officiel website download  or latest version source for this module...maybe my version is old 

take off old verison.. new version is good. !!
Sure, but where find the last version please ? thank for your help.