Profile Viewed

Started on the old forum in March 2009 · view the original in the archive · old links redirect here

10 replies · 709 views · started 17 years ago · 1 min read

5 participants
djsammy Junior · 43 posts #1

can some one help me with this please Profile viewed: times this coding i got

CODE$nopl = mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id=".$who."")); $sign = parsepm($nopl[0], $sid); echo "Info: $sign "; $noi = mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id=".$who."")); $var1 = date("His",$noi[0]); $var2 = time(); $var21 = date("His",$var2); $var3 = $var21 - $var1; $var4 = date("s",$var3); echo "Idle For: "; $remain = time() - $noi[0]; $idle = gettimemsg($remain); echo "$idle "; $nout = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_uploads WHERE uid=".$who."")); echo "Files Uploaded: $nout[0] "; echo "Profile viewed: $sql2[0] times";

or has some one got some thing like this please

Guest #2
echo "[b]Profile viewed:[/b] $sql2[0] times";

Where is the SQL query for $sql??

djsammy Junior · 43 posts #4

QUOTE (REY619 @ Mar 7 2009, 02:37 AM) <{POST_SNAPBACK}>

echo "Profile viewed: $sql2[0] times";

Where is the SQL query for $sql??

i dont have one any one got sql for it please

thunderwap Developer · 169 posts #5

QUOTE (djsammy @ Mar 8 2009, 12:42 AM) <{POST_SNAPBACK}>

i dont have one any one got sql for it please

sql query is

`profileview` int(100) NOT NULL default '0',

add this new row in ibwf_users

WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

jsyguy23 Developer · 134 posts #6

CODE $vws=mysql_fetch_array(mysql_query("SELECT proviews FROM ibwf_users WHERE id='".$who."'")); $views=$vws[0]+1; echo "Profile Views: $views "; if(mypro(getuid_sid($sid), $who)){ echo "";}else{ mysql_query("UPDATE ibwf_users SET proviews='".$views."' WHERE id='".$who."'");}

and in core

////////////////////////////////////////profile views function mypro($uid, $tid){ if($uid==$tid){return true;} }

just if you not got rest

djsammy Junior · 43 posts #7

QUOTE (jsyguy23 @ Mar 8 2009, 03:10 PM) <{POST_SNAPBACK}>

CODE

$vws=mysql_fetch_array(mysql_query("SELECT proviews FROM ibwf_users WHERE id='".$who."'")); $views=$vws[0]+1; echo "Profile Views: $views "; if(mypro(getuid_sid($sid), $who)){ echo "";}else{ mysql_query("UPDATE ibwf_users SET proviews='".$views."' WHERE id='".$who."'");}

and in core

////////////////////////////////////////profile views function mypro($uid, $tid){ if($uid==$tid){return true;} }

just if you not got rest CODE$vws=mysql_fetch_array(mysql_query("SELECT proviews FROM ibwf_users WHERE id='".$who."'")); $views=$vws[0]+1; echo "Profile Views: $views "; if(mypro(getuid_sid($sid), $who)){ echo "";}else{ mysql_query("UPDATE ibwf_users SET proviews='".$views."' WHERE id='".$who."'");} where in core does it go

jsyguy23 Developer · 134 posts #9

CODE ////////////////////////////////////////profile views function mypro($uid, $tid){ if($uid==$tid){return true;} }

only this bit goes in core pmsl

djsammy Junior · 43 posts #10

QUOTE (jsyguy23 @ Mar 10 2009, 11:18 PM) <{POST_SNAPBACK}>

CODE

////////////////////////////////////////profile views function mypro($uid, $tid){ if($uid==$tid){return true;} }

only this bit goes in core pmsl ok thanks mate

djsammy Junior · 43 posts #11

QUOTE (djsammy @ Mar 11 2009, 04:31 AM) <{POST_SNAPBACK}>

ok thanks mate

i got this error when i done it

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/hardray/public_html/web/index.php on line 2963

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close