PDA

View Full Version : User Rating hack


Sc0rp
07-16-2003, 10:00 PM
VERSION 2.0 RELEASED, CLICK HERE (https://vborg.vbsupport.ru/showpost.php?p=440199&postcount=37)

Oke this is my very first 'released' hack and allthough its pretty simple I presonally quite like it :)

what this basicly does is count rating towards users when they reply or start a new thread, of course you can specify in what forums it will do this and how much rating points they will get when replying or starting a new thread, you can also TAKE rating away when a user replies or starts a thread.

In my eyes this is perfect to keep your users monitored automaticly, for example.. say you got a babes board, like rip-productions and users can request babe pix, say you withdraw 5 points each time this user requests pix of a babe so eventually he will reach 0 or even less (-10 whatever..) you can spot this way more easily and do something about it..

of course this is not entirely automated yet I am going to make this hack more advanced, so you can get certain stats (list users with rating betwean x and x.. as an example) but for now this is gonna have to do as I do not have a lot of time to work on this..

Im sure a lot of you will think this is a useless hack but hey.. I thought it would come in handy for my board so maybe others could use it aswell :)

anyways, to install the hack just follow the instructions in the attached file, screenshots are beneath this post.. please click the install button when you use this hack!

and BACKUP your files! allthough I have tested this hack it may still have bugs!

IF YOU USE THIS HACK PLEASE PRESS INSTALL (https://vborg.vbsupport.ru/misc.php?s=&action=install&threadid=55357)

Sc0rp
07-17-2003, 09:43 AM
Admin options, edit forum/add forum

Sc0rp
07-17-2003, 09:43 AM
User Postbit

Almax
07-17-2003, 12:53 PM
never worked m8 nice hack tho

had trouble finding
step 2:
Edit: admin/forum.php

Find:

mustreadtext='$mustreadtext', mustreadtext='$mustreadtext',

AFTER that (not under) ADD:

countrating='$aallowrating', replyrating='$replyrating', newthreadrating='$newthreadrating'
==================
might be coz my boards hacked can u give me another incline where to put the code ;)

Sc0rp
07-17-2003, 01:16 PM
my mistake, was a hack I installed,

have changed the txt..

use it like this:

step 2:
Edit: admin/forum.php

find:

moderateattach='$moderateattach',

AFTER that (not under) ADD:

countrating='$aallowrating', replyrating='$replyrating', newthreadrating='$newthreadrating'

have fun and dont forget to press install:)

Almax
07-17-2003, 01:18 PM
yup found that b4 u posted ;)

Sc0rp
07-17-2003, 01:20 PM
well thanks for letting me know, at least now other ppl wont have that same problem and hopefully no problem at all ;)

Almax
07-17-2003, 01:38 PM
work great clicks install ;)

Link14716
07-17-2003, 04:31 PM
use [high] instead of [color=yellow]. ;)

Sc0rp
07-17-2003, 06:05 PM
whuts the difference :p

--edit

nvr mind that :banana:

assassingod
07-17-2003, 06:08 PM
It alternates for each style. on the default, high is yellow, on purple (which is mine and a number of others) its red.

Sc0rp
07-17-2003, 06:09 PM
++++ was to late editing

just noticed the different styles :)

assassingod
07-17-2003, 06:12 PM
:p Now it looks cool.

Nice hack.

Sc0rp
07-17-2003, 06:14 PM
thanks, im glad some ppl take the time to reply (note vieuws and replies) even though its for a silly little thing as the color of the highlighted text! :p

Xyphen
07-17-2003, 07:03 PM
nice hack.. thanks for sharing this nice idea!

Almax
07-17-2003, 09:42 PM
Any chance of putting this hack in a table on a seperate page to see who the leader is ??

Almax
07-17-2003, 11:50 PM
btw some users are going back to 0 for no reason ??
seems it happened when the guy was moved up to super moderator ??

Confirmed BUG

if you move user up/down usergroup it resets Rating to 0

Sc0rp
07-18-2003, 07:10 AM
Almax, I have already got that on my site yes but will post an update for the hack soon, I'll post a bugfix tonight I cant right now as I am at my work

Sc0rp
07-18-2003, 09:58 AM
hmm works fine here..

make sure youve done this step correctly:


================================================== ==================
step 3:
Edit: admin/user.php
================================================== ==================

Find:

makeinputcode("Parent Email Address", "parentemail", $user[parentemail], 0);

UNDER that ADD:

makeinputcode("User Rating", "urating", $user[userrating]);


Find:

lastactivity=$lastactivity,lastpost=$lastpost,

AFTER that (not under) ADD:

userrating='$urating',


Save admin/user.php

Almax
07-18-2003, 10:20 AM
yup done this

Sc0rp
07-18-2003, 11:47 AM
maybe its because of another hack you installed..

see if you have multiple querries editing data in 'Edit User' (user.php)

Almax
07-18-2003, 02:05 PM
nope sorry m8 u was rite my fault sweet hack btw
can you make a seperate page to display ratings as well as in the postbit ??

Sephiroth 9999
07-18-2003, 02:29 PM
Good hack, and nice idea! :)

*kicks install*

Sc0rp
07-18-2003, 04:43 PM
Today at 04:05 PM Almax said this in Post #22 (https://vborg.vbsupport.ru/showthread.php?postid=418714#post418714)
nope sorry m8 u was rite my fault sweet hack btw
can you make a seperate page to display ratings as well as in the postbit ??

like where? in the member stats, profile vieuw.. not a prob.. was planning on doing that :) will work on the hack this weekend

Almax
07-18-2003, 05:22 PM
thanx man seperate table would be good for mods and admin to keep an eye on non posters

Sc0rp
07-19-2003, 06:22 AM
am going to make an admin section where you can view all ratings between x and x points.. so that wont be a prob :)

MGM
07-19-2003, 02:33 PM
u should make a seperate column in the memberlist displaying the ratings for each user, and maybe a Top 10 list?

MGM out

MrNase
07-21-2003, 02:27 PM
Nice hack but my users ask me what they can do with the points :rolleyes:

Some questions:
Can i add that variable to another templates too?
What needs to be changed to make i working?

Do you have any updates?
(thought you'll do a memberlist integration last weekend?)

Christoff
07-21-2003, 05:56 PM
That hack is gr8!

But i've got few questions... like.. will there be an option that deleting/merging threads will increase/decrese points?

Almax
07-28-2003, 01:11 PM
any update 4 this ??

Sc0rp
07-29-2003, 06:28 AM
07-21-03 at 04:27 PM MrNase said this in Post #28 (https://vborg.vbsupport.ru/showthread.php?postid=419463#post419463)
Nice hack but my users ask me what they can do with the points :rolleyes:

Some questions:
Can i add that variable to another templates too?
What needs to be changed to make i working?

Do you have any updates?
(thought you'll do a memberlist integration last weekend?)

you can use it everywhere where the 'user' table is used.
just install it to make it work? :p

and yes there are going to be updates but I had very little time lately.. I will make an update soon, promise :)

and about members asking what they can do with them.. well at this point it just reflects how much he really does on your board and if its good or not ;) however in the next update I will include the option in which the user can pay a certain amount of his rating points to another member.. I will also make an addon for this for lesane's store hack

Almax
08-14-2003, 09:40 PM
still no update ?

Tom_R
08-20-2003, 03:33 PM
idd sc0rp a great hack, nicely done and it something a lot of ppl have been waiting for i am sure..

but as said before is it possible to make a top 10 or top 100 or whatever for the highest rated ppl so they can actually race against eachother, that would motivate them to do better..

MoneyTec.Com
08-27-2003, 02:59 PM
Is this the same members Rating hack on this forum http://www.trade2win.co.uk/boards/showthread.php?s=&postid=42929#post42929

if not where can I find that one?

mariannet
10-07-2003, 06:55 PM
Great hack, but the problem is that the rating only works on new Forums, why can it not be set in already running forums?

Sc0rp
10-11-2003, 09:04 PM
sorry everyone, Ive been sooo extremely busy lately I didnt have the time to work on any hacks, I will release a new version asap!

more ideas for additions and fixes are more then welcome :)

MoneyTec.Com, dont know cant watch that thread, have to register, but if it is they are using my hack cuz this one is fully made by me

mariannet, atm you can only set the rating by editing a forum, so simply add a forum and then edit it to set the rating for it..
Of course this will be fixed in the new version

Sc0rp
10-13-2003, 04:06 PM
Ok after a lot of time I finally started working on a new version :p sorry guys, just been to busy :)

This new version includes the following additions:

- Update user ratings
- Move/Prune Searches by User rating
- top xx in memberlist
- pay system (users can pay each other user rating)
- simple member info template addon

and of course the old functions :)

note when installing this hack that it is required to have installed the previous user rating hack v1.0 which can be found here (https://vborg.vbsupport.ru/showthread.php?t=55357)

screenshots:
Admin > edit forum (https://vborg.vbsupport.ru/attachment.php?attachmentid=14060)
admin > update counters (http://www.xxxforum.com/sc0rp/screenshots/update-counters.jpg)
admin > move prune (http://www.xxxforum.com/sc0rp/screenshots/move-prune.jpg)
Postbit (https://vborg.vbsupport.ru/attachment.php?attachmentid=14061)
Profile View (http://www.xxxforum.com/sc0rp/screenshots/profile-view.jpg)
memberlist (http://www.xxxforum.com/sc0rp/screenshots/memberlist.jpg)
Payment System (http://www.xxxforum.com/sc0rp/screenshots/user-payment.jpg)

Note on the payment 'system' that once a payment has been made a pm will send to the person who received the rating, also note that when counters are being updated all previous payments will be lost.

If you install this hack please press INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=57849)

enjoy!

Almax1
10-13-2003, 05:07 PM
great stuff m8 ;) but an error her find what ??

-(stop copying)-

find:

UNDER that ADD:

-(start copying)-

<option value='urating DESC'>Rating DESC</option>

-(stop copying)-

Sc0rp
10-13-2003, 05:40 PM
lol, sorry.. :D

find:

<option value='posts DESC'>Post Count</option>

UNDER that ADD:

.......

hope thats the only thing I forgot :D

Almax1
10-13-2003, 06:03 PM
thanks ;) "quick request" :D
top ratings table can u do :P asked b4 :D

Almax1
10-13-2003, 06:06 PM
and can u zip the screenies i cant seem to get them :(

Sc0rp
10-13-2003, 08:02 PM
dude try reading my post :p

- top xx in memberlist

and screenshots zip attached, though dont know what the problem is, they work fine here :)

Almax1
10-13-2003, 09:35 PM
i asked because the memberlist bit does not show any reference to the hack
it is as it was b4

step 3:
edit memberlist.php
================================================== ==================

find:

if ($what=="topposters") {
$orderby="posts";
$direction="DESC";
}

UNDER that ADD:

-(start copying)-

if ($what=="toprated") {
$orderby="userrating";
$direction="DESC";
}

-(stop copying)-

save memberlist.php

is this all the code ??

everything else is sweet ;)

Almax1
10-13-2003, 09:39 PM
edit memberlist template maybe ??

no reference in your file :P

MrNase
10-14-2003, 10:50 AM
Do all ratings start by zero or is there a possibility to give my users the correct rating right from the start?

Sc0rp
10-14-2003, 11:23 AM
almax, fixed it.. sorry for all the trouble.. I gotta make a list of what Im doing next time im writing a hack for the public :p Ive uploaded a fixed .txt so goodluck :)

MrNase, as I said there is a function to update the members rating, so yes you can give your users the correct rating from the start.. though it will run a LOT of queries.. I know there are better ways of doing this but I aint no MySQL hero.. was hoping that one of the pro's could help me out on that one :)

MrNase
10-14-2003, 03:25 PM
i'd really like to use it but i already used v1 and my users didn't like it.
I could tell them this version runs better (it's the thruth) and all the bugs are fixed but the may feel like beeing on a playground and leave my board because they don't want to be rated.

I'll talk to my staff to find a solution but anyways: thanks for this hack, a lot of people waited a long time for this :)

Sc0rp
10-14-2003, 04:05 PM
hmm sounds a bit weird to me, if u customize it right so that a member gets 1 rating for a reply and 3 for a thread there shouldnt be any problems imo.. its the same as having a post counter.. some ppl might not like it beacuse they dont have a lot of posts.. it represents the loyalty of your members and if they aint loyal/active then thats their problem right? :)

anyways its the peoples personal opinion on being rated (which represents their own activeness and loyalty 100%) I dont think there's much I can do about this

Almax1
10-14-2003, 11:31 PM
thanks 4 the update m8 but u still missing a bit
no reference in your update to [top 10 rated] link
which resides in the memberlist template i think

think you may have forgotten
sorry mate 4 any hassle :P

Sc0rp
10-16-2003, 12:03 PM
baah this is the most chaotic install file I made so far :p

find:

<td bgcolor="{secondaltcolor}"><smallfont><a href="memberlist.php?s=$session[sessionhash]&what=topposters&perpage=$memberlisttopposters"><b>Top $memberlisttopposters Posters</b></a></smallfont></td>

UNDER it ADD:

-(start copying)-

<td bgcolor="{secondaltcolor}"><smallfont><a href="memberlist.php?s=$session[sessionhash]&what=toprated&perpage=$memberlisttopposters"><b>Top $memberlisttopposters Rated</b></a></smallfont></td>

-(stop copying)-

there ya go :)

Almax1
10-16-2003, 06:27 PM
thanx m8 ;)
top man

Almax1
10-16-2003, 06:32 PM
ermm the top rated are in random order ???

oh well nm the rest of the hack is neat m8 ;)

Sc0rp
10-16-2003, 06:58 PM
take my last code again (Post #50 (https://vborg.vbsupport.ru/showpost.php?p=440895&postcount=50)) somehow the html got screwed

Almax1
10-16-2003, 09:45 PM
na m8 same prob random order

Almax1
10-16-2003, 10:08 PM
it lists users in reverse order sorry

Sc0rp
10-17-2003, 06:37 PM
double check this step:

================================================== ==================
step 3:
edit memberlist.php
================================================== ==================

find:

if ($what=="topposters") {
$orderby="posts";
$direction="DESC";
}

UNDER that ADD:

-(start copying)-

if ($what=="toprated") {
$orderby="userrating";
$direction="DESC";
}

-(stop copying)-

save memberlist.php

if its still not working I can take a look at it if u want, anywhere I can contact you?

Almax1
10-18-2003, 03:14 PM
already checked hmmmm dunno weird

its just listing members in reverse order ???

Sc0rp
10-18-2003, 07:01 PM
weird as it says DESC..

hmm well I guess its worth a shot to replace DESC with ASC.. even though THAT would cause it to reverse in logic sence :p

so do this,

Replace:
if ($what=="toprated") {
$orderby="userrating";
$direction="DESC";
}

With:
if ($what=="toprated") {
$orderby="userrating";
$direction="ASC";
}

Almax1
10-23-2003, 02:47 PM
mmm think u missed summit

in memberlist.php
few lines after your inserted code it has
==========================================
if ($orderby=="" or ($orderby!="username" and $orderby!="posts" and $orderby!="joindate" and $orderby!="lastpost")) {
$what = 'username';
$orderby="username";
}

if ($direction!="DESC") {
$direction = "ASC";
}

============================

therefore it wont work right will it ???

Sc0rp
10-25-2003, 05:22 PM
++++ yes,

replace:

if ($orderby=="" or ($orderby!="username" and $orderby!="posts" and $orderby!="joindate" and $orderby!="lastpost"))

with:

if ($orderby=="" or ($orderby!="username" and $orderby!="posts" and $orderby!="joindate" and $orderby!="lastpost" or $orderby!="userrating"))

sorry :)

Almax1
10-25-2003, 05:37 PM
aghhhh still dont work :(

* Almax1 cries :P

Almax1
10-25-2003, 05:38 PM
infact top posters & date joined dont work now