برای ایجاد شمارشگر افراد آنلاین چت روم شبیه به عکس زیر طبق آموزش زیر عمل کنید :
دو عکس پیوست شده رو در مسیر زیر آپلود کنید :
styles --> etchat_white
کد زیر رو در هرجای قالب که مایل هستید قرار بدید :
مسیر قالب بیرونی : style --> etchat_white --> index.tpl.html
کد:
<center><table width="100" style="background-image: url(styles/etchat_white/chatsupport_on_bg.png); background-repeat: repeat; font-family: tahoma; font-size: 8pt; text-align: center; overflow: hidden;"> <tr> <td><span style="font-weight:bold;color:#7A7A7A">نفر آنلاین</span></td> <td ><span style="font-weight:bold;color:#ED1C88"> <?php /*************************** * Powerd By ChatSupport.IR * ***************************/ $GLOBALS["path"] = "./"; function __autoload($class_name) { require_once ($GLOBALS["path"].'class/'.$class_name.'.class.php');} class ExternUserView extends DbConectionMaker{ public function __construct (){ parent::__construct(); unset($GLOBALS["path"]); $erg=$this->dbObj->sqlGet("SELECT count(etchat_onlineid) FROM {$this->_prefix}etchat_useronline WHERE etchat_onlinetimestamp > ".(date('U')-30)." and (etchat_user_online_user_status_img is null or etchat_user_online_user_status_img <> 'status_invisible')"); echo $erg[0][0]; $this->dbObj->close();}} new ExternUserView;?> </span></td> <td> <img src="styles/etchat_white/chatsupport_on.png" width="16" height="16" /></td> </tr> </table></center>