vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   User Ratings (https://vborg.vbsupport.ru/showthread.php?t=31749)

EXCHANGE 10-28-2001 10:00 PM

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

Neo 10-29-2001 09:41 PM

man you are the bomb :D really nice hack thanks for putting it up

cooldude 10-29-2001 10:24 PM

yes thankx m8

maverick1236 10-29-2001 10:38 PM

Any chance you could do those Gifs with a transparent background?

i have black background on my forum :D

great hack!!

Neo 10-29-2001 11:25 PM

ohh yeah images with transparent BGs would be nice

tweak 10-30-2001 06:53 AM

Nice hack thanx

ckevin 10-30-2001 07:20 AM

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 10-30-2001 07:55 AM

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:
Code:

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

Change it to:
Code:

<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:
PHP Code:

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

to:
PHP Code:

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


ckevin 10-30-2001 08:18 AM

yup, it works :) thanks!

Lesane 10-30-2001 01:27 PM

I waited long for this hack :D, thanks for the great hack http://vecommunity.webhostuk.com/ima.../new/thumb.gif

Mobile 11-03-2001 02:08 PM

can't find the 'getinfo' template in admin panel, anyone no were it is.

-Thanks Mobile

Lesane 11-03-2001 02:27 PM

Quote:

Originally posted by Mobile
can't find the 'getinfo' template in admin panel, anyone no were it is.


-Thanks Mobile

User Info Display Templates -> getinfo

Mobile 11-03-2001 02:41 PM

nice one m8 works a treat.

Thanks Mobile

trilOByte 11-04-2001 12:07 AM

tried the hack in vB2.2 - doesn't work. Anyone know what I need tyo change to get it working? Thanks :)

EDIT:

The hack shows up in the profiles, and seems to record the votes properly, but there is no display under the avatar. Basically, I think I have the sql query set up properly plus all the templates. I thinki it's likely a mod to one of the existing templates that is wrong somewhere. Any suggestions?

http://www.synobyte.com/images/rating.gif

TheComputerGuy 11-04-2001 03:36 AM

I Love this HACK...you could replace the bars with stars and bing a nice version of a hack..

EXCHANGE 11-04-2001 04:03 AM

Quote:

Originally posted by trilOByte
tried the hack in vB2.2 - doesn't work. Anyone know what I need tyo change to get it working? Thanks :)

EDIT:

The hack shows up in the profiles, and seems to record the votes properly, but there is no display under the avatar. Basically, I think I have the sql query set up properly plus all the templates. I thinki it's likely a mod to one of the existing templates that is wrong somewhere. Any suggestions?

Well it works with 2.2 without any modification. I guess you're talking about the display in the threads. In this case check your postbit template, showthread.php and admin/functions.php

@TheComputerGuy

You can replace the images with stars or you could make the hack use the stars from the thread ratings by changing $userrating = '0points.gif'; and $userrating = $rating. 'points.gif'; to $userrating = '0stars.gif'; and $userrating = $rating. 'stars.gif'; in member.php and admin/functions.php

TheComputerGuy 11-04-2001 10:11 AM

Thanks exchange...
Love the hack nice work

Lionhead 11-04-2001 10:15 AM

Thanks for the nice hack :)

trilOByte 11-04-2001 03:19 PM

Quote:

Originally posted by EXCHANGE


Well it works with 2.2 without any modification. I guess you're talking about the display in the threads. In this case check your postbit template, showthread.php and admin/functions.php


I stand corrected and thanks for the help. I had made an error in the functions.php - not much, but it doesn't take much :)

This is an awesome hack man, thanks a ton for sharing it - good work :D

I now have just what i was looking for. I tweaked it a bit, cos some of the words were still in German and i changed the color bar for dots. See...

http://www.synobyte.com/images/karma1.gif

...which suit my board better. I also renamed the visible parts "karma" :D :D

Totally cool hack - thanks again :D

trilOByte 11-04-2001 03:54 PM

here's a zip with the transparent gif's that I made (see above post) if anyone wants them....

Lesane 11-04-2001 06:27 PM

Quote:

Originally posted by trilOByte
here's a zip with the transparent gif's that I made (see above post) if anyone wants them....
Thanks

JJR512 11-04-2001 08:28 PM

Quote:

Originally posted by EXCHANGE
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)

How does the last one work? I can't see anywhere who has rated me.

trilOByte 11-05-2001 12:08 AM

The number of votes under your rating is an active link to a popup with usernames of those who have voted for you.

EXCHANGE 11-05-2001 05:44 PM

Quote:

Originally posted by JJR512

How does the last one work? I can't see anywhere who has rated me.

Actually this function is only avalaible for user who have been rated 3 times to avoid bad blood ;)

@ trilOByte

Nice work

trilOByte 11-05-2001 06:08 PM

Quote:

Originally posted by EXCHANGE


@ trilOByte

Nice work

Thank you for posting the hack - awsome stuff :)

BTW, in the user profile, if a user has not yet been rated, it says (next to the drop down box) "last rating: keine" or something like that. I'm guessing this is german or something - what do I edit to change it to "last rating: none" or whatever?

Thanks :)

EXCHANGE 11-06-2001 05:34 PM

none would be correct. Sorry for this.

Justice 11-06-2001 06:25 PM

can this be set to user group restrictions?
This seems like a great hack, but I'd only want members in certain user groups and moderators to be able to rate members, not just anyone.

bokhalifa 11-06-2001 08:28 PM

good hack :)

JJR512 11-06-2001 09:52 PM

I'm sorry to say that I've had to click the Uninstall button on this thread.

Don't get me wrong, this is a great hack. Very well written; I didn't have any problems with it, aside from a few German/English language confusions, as mentioned by others here earlier.

The reason why I've removed this hack from my board after having some time to look at it and how people were using it, it seemed that it would ultimately do more harm to my board's community than good. One thing I noticed right away was that some people who got low ratings right away just turned this feature off for themselves. But my main concern, however, was that people who got low ratings might feel as if they weren't wanted, and would stop visiting my board.

Some might say this is a good thing. Maybe it's even the point of the hack. If someone acts a certain way on a message board that the majority of the membership doesn't like, then maybe giving that member a low rating will give that person the hint that they should move on. But getting rid of the small amount of members that most people don't like will leave a message board with a community of people who are all pretty much the same. Then things get boring. I think a little bit of tension or conflict isn't necessarily a bad thing.

So I'm not knocking this hack; maybe for some communities that want to be a bit more agressive with filtering out the non-desriable people, this is a good thing. I just wanted to point out to people to really consider if they want to start something on their board that may lead to ill feelings.

Justice 11-07-2001 01:21 AM

wow, I wish my board worked like that. when people there realize that they're not wanted, that's when they become harder to get rid of.

trilOByte 11-07-2001 03:49 AM

Quote:

Originally posted by Justice
wow, I wish my board worked like that. when people there realize that they're not wanted, that's when they become harder to get rid of.
LMAO ;) ya got that right.

I think it's a question of how you present it to em too. I'm still working it through on my test forum, but I'm thinking of combining it with a stats hack...

http://www.synobyte.com/images/karma2.gif

So they kinda get a package deal :)

Nam 11-07-2001 09:42 PM

Quote:

Originally posted by JJR512

The reason why I've removed this hack from my board after having some time to look at it and how people were using it, it seemed that it would ultimately do more harm to my board's community than good. One thing I noticed right away was that some people who got low ratings right away just turned this feature off for themselves. But my main concern, however, was that people who got low ratings might feel as if they weren't wanted, and would stop visiting my board.

Totally agree, but I had another idea to overcome the situation, instead of using Rating, I've changed to Power. Change the scale to no power as 1 to super power at 5.

The Power word is just another word, but in my opinion, it's change the whole rating idea alot, the sound creates more fun and less seriousness, intense among members. It will encourage member to turn it on (to have power bar) but also let people know the bad guy (who has no power) and he needs to do something to get his power back. Check my site and you'll see.

Btw, I'd love to see that Admin can have more control over others, like a ability to see who but also how they rated him, as well as moderators.

Just a thought,

Littlebit 11-09-2001 03:05 PM

Is it after three votes or three votes on that it is clickable to see who voted? If its 3 votes and higher, then something isn't working right with the javascript on my install. I am unable to view who voted with three votes. Could someone help me out? :confused:

EXCHANGE 11-09-2001 07:39 PM

You got // in front of function who(userid) { in your showthread template.
Just remove it

Littlebit 11-11-2001 05:13 PM

I removed the // in the showthread template. It works within a post, just not on members profiles...I bet I have more little //'s to get rid of eh?

Littlebit 11-11-2001 06:40 PM

All better now! <!-- --> was surrounding the getAIM plus the rate stuff in the getinfo template.
::sigh::: I'm a dork.
:rolleyes:

Dado 11-20-2001 05:35 PM

great hack.

One question though.
What should I change so moderators can't be rated?

BlaXioN 11-21-2001 06:41 PM

thx 4 nice hack

Nam 11-23-2001 05:50 AM

I have a question, how can I make a hyperlink from the rating word to pop-up window that let user to rate other like UBB board.

The only way to rate is click profile, which not too many people know, so by making the hyperlink from rating , it would be very nice. The pop up window should contains rating option only, not other information like profile and such.

Please help Exchange or anybody that knows, I've been playing around with with getinfouser_rating but couldn't figure it out.

Here is my original file:
PHP Code:

<tr>
 <
td

bgcolor
="#13486D"><normalfont><b>Rating:</b></normalfont><br><img src="images/$userratingalt="$rateuser[ratenum] Votes"><br><smallfont>$wholink</smallfont></td>
 <
td bgcolor="#13486D"> <table cellspacing="0" border="0" nowrap>
  <
form action="userrate.php" method="get">
    <
tr>
      <
td>
        <
select name="userrate"
        
onchange="window.location=('userrate.php?s=$session[sessionhash]&rateuser=$userid&userrate='+this.options[this.selectedIndex].value)">
          <
option value="-1" selected>Rate this user:</option>
          <
option value="5">Super Power</option>
          <
option value="4">Strong Power</option>
          <
option value="3">Normal Power</option>
          <
option value="2">Weak Power</option>
          <
option value="1">No Power</option>
        </
select>
        <
input type="image" src="images/go.gif" border="0" align="absbottom"><smallfont>&nbsp;(Last Power Rating: <b>$oldrating[old]</b>)</smallfont>
        </
td>
    </
tr>
  </
form>
</
table> </td>
</
tr

I have tried to change to:

PHP Code:

<tr>
<
td
bgcolor
="#13486D"><normalfont><b><a href="userrate.php?s=$session[sessionhash]&action=show&rateuser">Rating</a>:</b></normalfont><br><img src="images/$userratingalt="$rateuser[ratenum] Votes"><br><smallfont>$wholink</smallfont></td>
 <
td bgcolor="#13486D"> <table cellspacing="0" border="0" nowrap>
  <
form action="userrate.php" method="get">
    <
tr>
      <
td>
        <
select name="userrate"
        
onchange="window.location=('userrate.php?s=$session[sessionhash]&rateuser=$userid&userrate='+this.options[this.selectedIndex].value)">
          <
option value="-1" selected>Rate this user:</option>
          <
option value="5">Super Power</option>
          <
option value="4">Strong Power</option>
          <
option value="3">Normal Power</option>
          <
option value="2">Weak Power</option>
          <
option value="1">No Power</option>
        </
select>
        <
input type="image" src="images/go.gif" border="0" align="absbottom"><smallfont>&nbsp;(Last Power Rating: <b>$oldrating[old]</b>)</smallfont>
        </
td>
    </
tr>
  </
form>
</
table> </td>
</
tr

Basically I've added the line <a href="userrate.php?s=$session[sessionhash]&action=show&rateuser">Rating</a> to make the word rating become hyperlink, but that doesn't work, anybody can help?

EXCHANGE 11-23-2001 03:39 PM

For example you could add sth. like this to userrate.php:

PHP Code:

elseif ($action==rate){
   eval(
"dooutput(\"".gettemplate('rateoption')."\");");


This would call the template rateoption where you could place your HTML code.

Sorry I don't have time at the moment to do kind of an addon, this is just an idea how it could work.


All times are GMT. The time now is 02:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01490 seconds
  • Memory Usage 1,872KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete