<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"><?php ssi_randomMember('day'); ?></code> <h3>Result</h3> <div class="ssi_result"><?php ssi_randomMember('day'); flush(); ?> </div> </div> <div class="ssi_preview" id="ssi_whosOnline"> <h2>Who's Online Function</h2> <p>This function shows who are online inside the forum.</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"><?php ssi_whosOnline(); ?></code> <h3>Result</h3> <div class="ssi_result"><?php ssi_whosOnline(); flush();
/** * Short description * * Long description * * @param * @return */ protected function show_randomMember() { try { $this->loadSSI(); } catch (Exception $e) { throw new \Exception($e->getMessage()); } if ('echo' == $this->output_method) { ob_start(); ssi_randomMember($this->random_type, $this->output_method); $this->data = ob_get_contents(); ob_end_clean(); } else { $this->data = ssi_randomMember($this->random_type, $this->output_method); } }