ssi_topPoster();
flush();
?>
</div>
			</div>

<!-- MEMBERS -->
			<div class="ssi_preview" id="ssi_latestMember">
				<h2>Latest Member Function</h2>
				<p>Shows the latest member's name and profile link.</p>

				<h3>Code</h3>
				<div class="codeheader">Code: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">[Select]</a></div><code class="bbc_code">&lt;?php ssi_latestMember(); ?&gt;</code>
				<h3>Result</h3>
				<div class="ssi_result"><?php 
ssi_latestMember();
flush();
?>
</div>
			</div>

			<div class="ssi_preview" id="ssi_randomMember">
				<h2>Member of the Day</h2>
				<p>Shows one random member of the day. This changes once a day.</p>

				<h3>Code</h3>
				<div class="codeheader">Code: <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">[Select]</a></div><code class="bbc_code">&lt;?php ssi_randomMember('day'); ?&gt;</code>
				<h3>Result</h3>
				<div class="ssi_result"><?php 
ssi_randomMember('day');
flush();
} else {
    $totals = ssi_boardStats('array');
}
//Last Member from SSI.php
$latestMember = array();
//Ultimate Portal use SMF Cache data... UP it's the best, only "UP", can create this feature
if (!empty($ultimateportalSettings['up_reduce_site_overload'])) {
    if (cache_get_data('bk_site_stats_lastmember', 1800) === NULL) {
        $latestMember = ssi_latestMember('array');
        //return $context['common_stats']['latest_member']
        cache_put_data('bk_site_stats_lastmember', $latestMember, 1800);
    } else {
        $latestMember = cache_get_data('bk_site_stats_lastmember', 1800);
    }
} else {
    $latestMember = ssi_latestMember('array');
    //return $context['common_stats']['latest_member']
}
echo '
	<table border="0" width="100%" style="margin-top:3px;">
		<tr>
			<td align="left" width="100%">	
				<img style="float:left" width="16" height="16" alt="' . $txt['total_members'] . '" border="0" src="' . $settings['default_images_url'] . '/ultimate-portal/icons/user.png" />&nbsp;&nbsp;' . $txt['total_members'] . ': <strong><a href="' . $scripturl . '?action=mlist">' . comma_format($totals['members']) . '</a></strong>
			</td>
		</tr>
		<tr>
			<td align="left" width="100%">		
				<img style="float:left" width="16" height="16" alt="' . $txt['total_topics'] . '" border="0" src="' . $settings['default_images_url'] . '/ultimate-portal/icons/total-topics.png" />&nbsp;&nbsp;' . $txt['total_topics'] . ': <strong>' . comma_format($totals['topics']) . '</strong>
			</td>
		</tr>	
		<tr>
 /**
  * Short description
  *
  * Long description
  *
  * @param
  * @return
  */
 protected function show_latestMember()
 {
     try {
         $this->loadSSI();
     } catch (Exception $e) {
         throw new \Exception($e->getMessage());
     }
     if ('echo' == $this->output_method) {
         ob_start();
         ssi_latestMember($this->output_method);
         $this->data = ob_get_contents();
         ob_end_clean();
     } else {
         $this->data = ssi_latestMember($this->output_method);
     }
 }