PDA

View Full Version : [Release vb 2.03] User Ratings



EXCHANGE
Mon 29th Oct '01, 7:02pm
This is a simple User Rating System, I hope you guys like it.

Features:

Rate another User 1 to 5 points.
Users can see how they rated a user before
Votes are updated to avoid cheating
Users can see who rated them but not how (works like the whoposted stuff)



Anyway
BACKUP YOUR DATABASE and ENJOY :D

German version available in my forums.

Screenshot (http://www.vbulletin.com/forum/attachment.php?postid=180299)

neogeniseva
Mon 29th Oct '01, 7:41pm
man you are the bomb :D really nice hack thanks for putting it up

cooldude
Mon 29th Oct '01, 8:24pm
yes thankx m8

Maverick1236
Mon 29th Oct '01, 8:38pm
Any chance you could do those Gifs with a transparent background?

i have black background on my forum :D

great hack!!

neogeniseva
Mon 29th Oct '01, 9:25pm
ohh yeah images with transparent BGs would be nice

Tweak
Tue 30th Oct '01, 4:53am
Nice hack thanx

ckevin
Tue 30th Oct '01, 5:20am
EXCHANGE, it works great, but I wonder if it can told us the average score (total score/no. of votes). Also can user vote over a member again? at least the user can modify the rating of a voted members?

Thanks a lot! :)

EXCHANGE
Tue 30th Oct '01, 5:55am
Users can only vote once. In case a user has already voted, the old value is replaced by the new rating.

Well, the average score is represented by the images and the number of votes is already included.

Anyway you could do it like this in postbit_userrating:

At the Moment we have:

<br>Rating:<br><img src="images/$userrating" alt="$post[ratenum] Votes">
<br><smallfont>$wholink</smallfont><br>

Change it to:
<br>Rating:<br><img src="images/$userrating" alt="$post[ratenum] Votes / $rating points average">
<br><smallfont>$wholink</smallfont><br>

do the same for getuserinfo_rating



You could also change the // User ratings....... Code in member.php and functions.php

change:
$wholink="<a href=\"javascript:who($userid)\">($rateuser[ratenum] Votes)</a>";
}
else {
$wholink="($rateuser[ratenum] Votes)";

to:
$wholink="<a href=\"javascript:who($userid)\">($rateuser[ratenum] Votes / $rating points average)</a>";
}
else {
$wholink="($rateuser[ratenum] Votes / $rating points average)";

ckevin
Tue 30th Oct '01, 6:18am
yup, it works :) thanks!

Lesane
Tue 30th Oct '01, 11:27am
I waited long for this hack :D, thanks for the great hack