profile views today
Collapse
X
-
go look for wap.net.ph script working ...u need to do it to sceate sql or alter table for it
-
Pablo.
wait do u want the code like
total profile view :: 450
today profile view :: 10
like this?????????? so wait i will give u
Leave a comment:
-
u have also need a new data base table for lastview
and put this code to user profile
$sql = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM skl10lastview WHERE whonick='".$whonick."'"));
if ($sql[0]>10)
{
$sql = mysql_fetch_array(mysql_query("SELECT MAX(id) FROM skl10lastview WHERE whonick='".$whonick."'"));
$sql = $sql[0]-9;
mysql_query("DELETE FROM skl10lastview WHERE whonick='".$whonick."' AND id <'".$sql."'");
}
$lv=getnick_sid($sid);
$a = getuid_nick($whonick);
if($a!=$uid)
{
mysql_query("INSERT INTO lastview SET skl10lastview='".$lv."', whonick='".$whonick."', ltime='".time()."'");
}
$sql= mysql_fetch_array(mysql_query("SELECT skl10lastview,ltime FROM skl10lastview WHERE whonick='".$whonick."'ORDER BY ltime DESC LIMIT 1"));
$a = getuid_nick($sql[0]);
$link = "<a href=\"index.php?action=viewuser&sid=$sid& who=$a\">$sql[0]</a>";
echo "last viewed by $link -";
echo "<a href=\"index.php?action=skl10&who=$who&sid =$sid\">View</a><br/>";
Leave a comment:
-
/////////////////////////////////////// 10 viewers
else if($action=="skl10")
{
addonline(getuid_sid($sid),"Viewing Last 10 profileviewers","");
if($who==""||$who==0)
{
$mnick = $_POST["mnick"];
$who = getuid_nick($mnick);
}
$whonick = getnick_uid($who);
echo "<card id=\"main\" title=\"Viewing Last 10 profileviewers\">";
echo "<p align=\"left\">";
$sql= mysql_query("SELECT skl10lastview,ltime FROM skl10lastview WHERE whonick='".$whonick."'ORDER BY ltime DESC LIMIT 10");
while($row = mysql_fetch_array($sql))
{
$a = getuid_nick($row[0]);
echo "<a href=\"index.php?action=viewuser&sid=$sid& who=$a\">$row[0]</a>";
$newtime =$row[1]+(0 *60 *60);
echo " <b>".date("D d M y - h:i:s a",$newtime)."</b>
";
echo "<br/>";
}
$a = getuid_nick($whonick);
echo "back to <a href=\"index.php?action=viewuser&sid=$sid& who=$a\">$whonick</a>'s profile
";
echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</card>";
}Last edited by sklbd; 21.12.09, 16:14.
Leave a comment:
-
Brot in the scritp for views today using in the sql consult ("SELECT wathever FROM proviews WHERE id='".$who."' AND time='".$time24."'")
and
("INSERT INTO wathever='".$wathever."', time='".time()."' SET proviews WHERE id='".$who."'")
make the variable $tm24 = time() - (24*60*60);
add in sql prowiews or watheve the line time varchan 100 not nuleLast edited by joseg; 16.11.09, 19:26.
Leave a comment:
-
here is a example on what am talking
Profile views: 44
Profile Views Today: 9
Leave a comment:
-
bro i download every script here and thats not wat am looking for @joseg
Leave a comment:
-
why dnt u guys just download some of my edits and browse thru it ull find some codes in there that u allways request here and also look in mobilezonez script it also have many
Leave a comment:
Leave a comment: