Reputation Script

Started on the old forum in November 2007 · view the original in the archive · old links redirect here

14 replies · 1,730 views · started 19 years ago · 1 min read

7 participants
ori Lead · 512 posts #2

u mean rating?

function rating($uid)
{
$info=mysql_fetch_array(mysql_query("SELECT * FROM profiles WHERE uid='".$uid."'"));
$forumm=$info["chatmsgs"];
$chatm=$info["forumposts"];
$shouts=$info["shouts"];
$quiz=$info["total_score"];
$points=$info["points"];
$tot=$forumm+$chatm+$shouts+$quiz+$points;
if($tot<10){return "<img src=\"../images/half-star.gif\" alt=\"\"/>";}
if($tot<25){return "<img src=\"../images/1-star.gif\" alt=\"\"/>";}
if($tot<50){return "<img src=\"../images/1half-star.gif\" alt=\"\"/>";}
if($tot<75){return "<img src=\"../images/2-star.gif\" alt=\"\"/>";}
if($tot<250){return "<img src=\"../images/2half-star.gif\" alt=\"\"/>";}
if($tot<500){return "<img src=\"../images/3-star.gif\" alt=\"\"/>";}
if($tot<750){return "<img src=\"../images/3half-star.gif\" alt=\"\"/>";}
if($tot<1000){return "<img src=\"../images/4-star.gif\" alt=\"\"/>";}
if($tot<1500){return "<img src=\"../images/4half-star.gif\" alt=\"\"/>";}
if($tot>=1500){return "<img src=\"../images/5-star.gif\" alt=\"\"/>";}
}
ori Lead · 512 posts #4

Nope ori,its like a signature that displays randomly on the index with a reputation icon similar to a shoutbox but randomly with a pic mate!

where can i see it as i hav no idea what ur talking bout lol

amylee Principal · 1,092 posts #5

the thing top of the page above theadmin msg on the old script is the one hes chatting about

WhiteWarrior Principal · 1,419 posts #13

i have coded it for mine

Why not share it with the people that want it then?..

amylee Principal · 1,092 posts #15

when i find/get a stable server to host lavalair on ill share mine

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