vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   I made an eBay style user feedback hack - Your Thoughts Plz (https://vborg.vbsupport.ru/showthread.php?t=51888)

eoc_Jason 04-20-2003 05:45 PM

I made an eBay style user feedback hack - Your Thoughts Plz
 
1 Attachment(s)
I run a hardware website & forums, and I have a lot of people buying / selling stuff. Originally we had just a master list of good / bad traders, but it quickly got out of hand. I always wanted to add a trader feedback thing, kind of like eBay and I finally got off my lazy butt and did it. This hack is kind of based off of the user ratings system that someone else wrote, I mostly just got my ideas from his code and used some of his error templates for simplicity, but basically the system works like this:

In the person's profile page you can leave a Positive (+1) / Neutral (0) / Negative (-1) choice, along with a short comment. The scores get totalled up just like eBay.

You can see their rating on the threadview & profile page, if you click on the number it popups up a window showing everyone that has rated them, how they rated them, and the comments they left.

You can't change your vote on someone after submitting it. Also you can only vote for a person once, I'm considering changing this since it isn't uncommon for people to deal multiple times.

You can't vote for yourself.

Hmm, I can't think of anything else, it's a fairly simple hack, just one PHP file, and editing a couple files and creating / editing about 6 or so templates.

Things I would like to get from you guys is if you think this is something useful or not. If it is I will work on a writeup to post in the releases section, if not, then I won't bother. ;)

Also I'm kind of stumped on how I can allow people to rank someone else multiple times, but have something show their previous rankings, or some message or something so that they won't accidently rank someone twice for the same thing without thinking about it... What do you think? Also I'm thinking of adding a field so you can put the URL of the thread that was the person's FS/WTB deal.

If you want to see it in action, you can visit my forums.

Anyhow, here's some screenshots, the first one is how it looks on the threadview...

eoc_Jason 04-20-2003 05:46 PM

1 Attachment(s)
This is what the popup window looks like...

Positive shows up in green
Neutral shows up in the default font color
Negative shows up as red

eoc_Jason 04-20-2003 05:47 PM

1 Attachment(s)
This is if you haven't rated them (Note, it's the Buy / Sell Rating, not the one above it).

eoc_Jason 04-20-2003 05:47 PM

1 Attachment(s)
This is after you have rated someone..

filburt1 04-20-2003 06:10 PM

Isn't this like ratings in vB3?

Kars10 04-20-2003 06:11 PM

Man this is very cool!!
Please release it!! :)

Thanks in advance
Kars

N9ne 04-20-2003 06:14 PM

Very nice, I like what I see.

Dean C 04-20-2003 08:03 PM

I'm loving it - please release ! :D

A list of all comments would be cool too (with pagination of course ;))

- miSt

Ian Cunningham 04-20-2003 10:24 PM

Exactly what I am looking for :D

Erwin 04-21-2003 12:09 AM

Good job modifying the User Rating system. :) Useful for trading sites.

Smoothie 04-21-2003 02:20 AM

well done.

cinq 04-21-2003 03:19 AM

I think its great , do release it :D

bgray 04-21-2003 10:21 AM

I really, really want this! Please release!

EOC Jason,

What do you do as an admin if someone leaves a bogus rating? What I mean, is how can you edit or delete the feedback?

BGray

eoc_Jason 04-21-2003 01:44 PM

I'm actuallying adding in some code right now so that admins have a "delete" button on the popup window next to each rating, that way they can delete someones rating and it will adjust their points accordingly. You could easily modify the code to allow for Super Mods / Mods to have this ability too.

Thanks everyone for your feedback, I'll get to work on writing up the hack implementation and try to get it posted in the next day or two.


Quote:

Today at 05:21 AM bgray said this in Post #13
I really, really want this! Please release!

EOC Jason,

What do you do as an admin if someone leaves a bogus rating? What I mean, is how can you edit or delete the feedback?

BGray


Dean C 04-21-2003 02:36 PM

That's good to hear Jason and i look forward to your first hack here ;)

- miSt

N9ne 04-21-2003 02:43 PM

Quote:

Yesterday at 09:03 PM Mist said this in Post #8
I'm loving it - please release ! :D

A list of all comments would be cool too (with pagination of course ;))

- miSt


Your and your pagination :p

larryd 04-21-2003 05:23 PM

Wow, this is really nice.. Ill definitely install this as soon as you release it :)

Fi_InCogNiTo 04-21-2003 07:57 PM

Please release this when you can. This is great ;)

eoc_Jason 04-22-2003 03:42 PM

Well after the system has been up a few days on my forums I've gotten some good / bad comments from my members. Anyhow, here's a list of changes I am going to make to the system in the next day or two.

1. Re-word the text on the profile page, and require they give feedback about the buyer / seller.

The text on the left side of the profile page will probably be something more like:
Buy / Sell Rating: (7)
99% positive / 1% neutral / 0% negative

With the number hyperlinking to the popup window of course. The text on the right side will also be cleaned and give a little text explaining what to do.

2. Put the username on the popup window title bar (so you know who's ratings you are reading).

3. Change the code on the profile page so that you don't even see a rating form for yourself (and probably fix the regular rating thing too).

4. Add code so that Admins / Supermods can delete feedback from the popup window. (and have it recalcuate totals accordingly)

5. Give the ability to rate a person more than once (because I've seen a person deal multiple times with the someone else). But also display on the profile page how many times you have rated the person before and have it popup just your previous comments.

6. Possibly add an optional form box so you can enter the URL to the thread where the deal was done.


Hopefully I will be making these changes tonight, and I'll give them a day to see how they fly. I'll also write up the hack and if no bugs / glitches are found then I will be posting it up officially on Thursday! :)

eoc_Jason 04-22-2003 03:43 PM

What do you mean a list of all comments with "pagination"?

Totally lost me there...

Quote:

04-20-03 at 03:03 PM Mist said this in Post #8
I'm loving it - please release ! :D

A list of all comments would be cool too (with pagination of course ;))

- miSt


Dean C 04-22-2003 06:27 PM

Sorry about that :)

When you view the comments of a user you can set it so you have 10 comments per page or something like that with a pagenav at the bottom to go the next page (like in vbulletin :))

- miSt

eoc_Jason 04-22-2003 07:29 PM

LOL... Okay, simple enough request...

Dean C 04-22-2003 07:48 PM

Simple hehe!

I spent an hour researching pagination to NO avail whatsoever :(

- miSt

eoc_Jason 04-22-2003 08:34 PM

Pagination is easy, just use the LIMIT function in your sql queries, and either have a predefined page length, or set it via another variable.

bgray 04-23-2003 12:32 AM

I cant' wait! :D

Logik 04-23-2003 12:41 AM

This is a good option. Would make members join as well :)

bgray 04-25-2003 12:47 AM

Are we still shooting for Thursday? I think this will quickly become a very popular hack. :D

eoc_Jason 04-26-2003 01:33 AM

I've got one last-minute feature I'm adding, I decided it would be good to add in the date when they submit a rating.

I'm working on the writeup right now, it will probably be up tomorrow.

bgray 04-26-2003 03:55 AM

Thanks Jason! The date feature will be a nice addition. :)

BGray

eoc_Jason 04-26-2003 03:51 PM

Okay, one more last thing... lol (I keep getting more ideas)...

Anyhow, I'm adding a choice so you know if they were the buyer or seller... I guess it's not really an important feature, but it just kinda makes sense to have.

eoc_Jason 04-26-2003 09:03 PM

Okay, I finally posted the code and stuff! Weeeee! My first hack!

https://vborg.vbsupport.ru/showthrea...threadid=52188

Mist - Still haven't done the pagination, I will add it in soon, but I decided it was better to get it up now instead of never... Besides, adding the pagination will only require chaning the usertrade.php file, and maybe one template tweak. :)

Dean C 04-27-2003 09:34 AM

Awesome i'll install this as soon as you put in pagination :)

*goes off to view the thread* ;)

- miSt

groovesalad 06-02-2003 07:03 PM

[del]


All times are GMT. The time now is 01:13 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.01256 seconds
  • Memory Usage 1,796KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete