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
#2
Not Solved
(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!!
Vietnamese Help each other!
Reply
#3
Not Solved
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 
Reply
#4
Not Solved
(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. !!
Vietnamese Help each other!
Reply
#5
Not Solved
Sure, but where find the last version please ? thank for your help.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)