tag_stastik.php (YM Admin Ke Dua Tidak Kelihatan)

Cuma skedar sharing..
bila kita menanmbah user admin lebih dari 1 user maka kalau kita dekatkan kursor kita pada user admin yg ke-2 maka user admin yg ke-2 tidak kelihatan account emailnya (YM!), setelah dicek rupanya terdapat kesalahan penulisan script pada file
tag_statistik.php yg terdapat pada folder modul, tepatnya pada baris 33
(script tsb akan bertambah klu kita menambahkan lebih dari 1 user admin)
script tag_statistik.php :
================================================
<?php
include “../lib/config.php”;
include “../functions/fungsi_counter.php”;

if (file_exists(“../images/9.gif”)){
$stat_1 = “<img src=../images/9.gif>&nbsp;”;
} else {
$stat_1 = “Total “;
}

if (file_exists(“../images/8.gif”)){
$stat_2 = “<img src=../images/8.gif>&nbsp;”;
} else {
$stat_2 = “Total “;
}

if (file_exists(“../images/10.gif”)){
$stat_3 = “<img src=../images/10.gif>&nbsp;”;
} else {
$stat_3 = “Total “;
}

$tag .= “<center><table width=100% cellspacing=’2′>
<tr><td width=’40%’>
$stat_1 Visitors </td><td>: “.coun();
$tag .=” </B> visitors</td></tr><tr><td>
$stat_1 Hits </td><td>: <B>”.Hitung_counter ().”</B>
hits</td></tr><tr><td>
$stat_3 Today </td><td>: <B>”.User_Online(1440, ‘today.txt’).”</B>
users</td></tr><tr><td>
$stat_3 Online </td><td>: <B>”.User_Online(15, ‘online.db.txt’).”</B>
users</td></tr></table>”;

$tag .=”<center><b>:: Kontak Admin ::</b><br><br>”;
$tag .='<a href=”ymsgr:sendIM?’.$email1.'”><img
src=”http://opi.yahoo.com/online?u=‘.$email1.’&m=g&t=1″ border=”0″
width=”64″ height=”16″ alt=”‘.$email1.'” /></a> &nbsp;&nbsp;&nbsp;’;
$tag .='<a href=”ymsgr:sendIM?’.$eemai2.'”><img
src=”http://opi.yahoo.com/online?u=‘.$email2.’&m=g&t=1″ border=”0″
width=”64″ height=”16″ alt=”‘.$email2.'” /></a></center>’;

?>
=================================================
pada bagian ini terdapat kesalahan penulisan scriptnya :
=================================================
$tag .='<a href=”ymsgr:sendIM?’.$eemai2.'”><img
src=”http://opi.yahoo.com/online?u=‘.$email2.’&m=g&t=1″ border=”0″
width=”64″ height=”16″ alt=”‘.$email2.'” /></a></center>’;
=================================================
seharusnya :
$tag .='<a href=”ymsgr:sendIM?’.$eemai2 <—— menjadi $email2
==================================================
setelah diedit barulah nampak account ID YM! admin yg ke-2 td….

untuk yg lain klu main berkreasi penulisan script user bs diganti menjadi pengunjung ato yg lain sesuai keinginan seperti pd web saya..
terima kasih.

Diposting oleh Pak Jusmardi dari SMKN 1 Painan

This entry was posted in Tips. Bookmark the permalink.

One Response to tag_stastik.php (YM Admin Ke Dua Tidak Kelihatan)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s