Profile Viewed Times For Lavalair plz guys help me....
Profile Viewed Times For Lavalair
Started on the old forum in January 2008 · view the original in the archive · old links redirect here
TL;DR · summary of 10 replies
- Metulj provided a fix to prevent users from updating their own profile views.
- Rukiya added a new row in the ibwf_users SQL table and provided updated index.php code under "viewuser" action.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
yeah i would love to get the codes for it. can anyone help me please?
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)
yeah i would love to get the codes for it. can anyone help me please?
new row has to be added in ibwf_users sql table
`profileview` int(100) NOT NULL default '0',
then add this code index.php under "viewuser" action
$sql= mysql_fetch_array(mysql_query("SELECT profileview FROM ibwf_users WHERE id='".$who."'"));
$sql1 =$sql[0]+1;
mysql_query("UPDATE ibwf_users SET profileview='".$sql1."' WHERE id='".$who."'");
$sql2=mysql_fetch_array( mysql_query("SELECT profileview FROM ibwf_users WHERE id='".$who."'"));
echo "Profile viewed $sql2[0] times";
thank you very much!!!!!!!
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)
How about profile views for today? Does anybody has the coding for it?
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)
Can be very simple, you just use a sql timer, and set it to 24 hours and then make it reset.
please tell me how do i do it
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)
new row has to be added in ibwf_users sql table
`profileview` int(100) NOT NULL default '0',then add this code index.php under "viewuser" action
$sql= mysql_fetch_array(mysql_query("SELECT profileview FROM ibwf_users WHERE id='".$who."'")); $sql1 =$sql[0]+1; mysql_query("UPDATE ibwf_users SET profileview='".$sql1."' WHERE id='".$who."'"); $sql2=mysql_fetch_array( mysql_query("SELECT profileview FROM ibwf_users WHERE id='".$who."'")); echo "Profile viewed $sql2[0] times";
well this code does update profile view.. but theres a small problem i cannot prevent to update views when i look into my own profile? so its kind a like cheat.. every user can update number of profile views by him self so how to fix that? External image (may be gone)
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!
well this code does update profile view.. but theres a small problem i cannot prevent to update views when i look into my own profile? so its kind a like cheat.. every user can update number of profile views by him self so how to fix that? External image (may be gone)
here is the fixed code new row has to be added in ibwf_users sql table
`profileview` int(100) NOT NULL default '0',
then add this code index.php under "viewuser" action
$sql= mysql_fetch_array(mysql_query("SELECT profileview FROM ibwf_users WHERE id='".$who."'"));
if ($who==$uid)
{
$sql1 = $sql[0];
}
else {
$sql1 = $sql[0]+1;
}
mysql_query("UPDATE ibwf_users SET profileview='".$sql1."' WHERE id='".$who."'");
$sql2=mysql_fetch_array( mysql_query("SELECT profileview FROM ibwf_users WHERE id='".$who."'"));
echo "Profile viewed $sql2[0] times";
hey bro what about the sql for total profile view for today? could you please share it wif us....
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)
here is the fixed code new row has to be added in ibwf_users sql table
`profileview` int(100) NOT NULL default '0',then add this code index.php under "viewuser" action
$sql= mysql_fetch_array(mysql_query("SELECT profileview FROM ibwf_users WHERE id='".$who."'")); if ($who==$uid) { $sql1 = $sql[0]; } else { $sql1 = $sql[0]+1; } mysql_query("UPDATE ibwf_users SET profileview='".$sql1."' WHERE id='".$who."'"); $sql2=mysql_fetch_array( mysql_query("SELECT profileview FROM ibwf_users WHERE id='".$who."'")); echo "Profile viewed $sql2[0] times";
thank you for fixed code works perfect External image (may be gone)
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!