MyBB Community Forums
How display starter/author rather than lastposter with "ChangUonDyU Stat" - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Support (https://community.mybb.com/forum-72.html)
+---- Thread: How display starter/author rather than lastposter with "ChangUonDyU Stat" (/thread-160347.html)



How display starter/author rather than lastposter with "ChangUonDyU Stat" - cakissimo - 2014-09-28

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'];



RE: How display starter/author rather than lastposter with "ChangUonDyU Stat" - TommyP - 2014-09-30

(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!!


RE: How display starter/author rather than lastposter with "ChangUonDyU Stat" - cakissimo - 2014-09-30

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 


RE: How display starter/author rather than lastposter with "ChangUonDyU Stat" - TommyP - 2014-09-30

(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. !!


RE: How display starter/author rather than lastposter with "ChangUonDyU Stat" - cakissimo - 2014-09-30

Sure, but where find the last version please ? thank for your help.