Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-15-2000 Last Update: Never Installs: 0
 
No support by the author.

Is it possible to add a Rating system to each post or thread? So that users can rate the usability of each post on the forum. A total rating to the thread (accumulated by related post in the same thread) will be shown in the forumdisplay page.

Also, current counter of each post/thread did the way a page view do. I think it would be better to show how many unique user have had read the post but not only page views.

How do you guys think about that?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-15-2000, 06:54 PM
Guest
 
Posts: n/a
Default

Fine idea...my guess is we'll see this in an upcoming release...don't know when though.
Reply With Quote
  #3  
Old 09-15-2000, 07:47 PM
Guest
 
Posts: n/a
Default

i never liked the idea of rating posts.... too judgemental for me
Reply With Quote
  #4  
Old 09-16-2000, 12:25 AM
Guest
 
Posts: n/a
Default

It's easy to do.

Add a column called "rating" to the post table, and then to the forum table.

Modify your postbit template to include something like

Code:
<a href="postings.php?action=rate&postid=$postid&value=1>Up</a>
<a href="postings.php?action=rate&postid=$postid&value=-1>Down</a>
Then modify postings.php to take that into account. Some SQL like "UPDATE post SET rating = rating + $value WHERE postid = $postid" will do the trick. (Also one for the thread table as well) Obviously check the $value var for illegal use (like someone modifying the URL to read "&value=9999" to stuff the ballot.

Also do some checking to make sure that the current $bbuserid is not the same as the post's in question (so as to not allow someone to rate their own).

Create another table called "Post_rating" or somesuch, with two elements:
"userid, postid"

That way you check to see if the user has already rated the post, if not insert the primary key set (userid, postid) from the given information to keep a record of it.

Other things you can do:
check to see if the post is available (not closed or whatnot)
check to see if the user has rights to it (so you can't rate something in a moderators-only forum)
etc.

Even though this is fairly easy -- it's a good primer for SQL and PHP so you should give it a shot -- if you have any problems let us (me? ) know and we can help you through it!

Note, that was not intended to be a slam against you -- but learning PHP now will give you great flexibility in the future with modification of VB -- and it means you don't have to rely on other people taking forever to come up with solutions!
Reply With Quote
  #5  
Old 09-16-2000, 12:27 AM
Guest
 
Posts: n/a
Default

I may have already worked on this for something too secret do divulge... shh! Once it is released I can show you all.
Reply With Quote
  #6  
Old 09-16-2000, 12:35 AM
Guest
 
Posts: n/a
Default

wow...working overtime are we
Reply With Quote
  #7  
Old 09-16-2000, 12:38 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by mrogish
I may have already worked on this for something too secret do divulge... shh! Once it is released I can show you all.
Thanks, mrogish.

Plus I have seen many types of rating.
1. drop down menu
2. combo boxes (rate 1-5 or 1-10 or what you want it to be)

and each user could decide to leave their comments of their rating. Also, other users could vote if the comments is useful to them. It was just like the Amazon.com do on their web site, ya know.

Hope this helps. :-)
Reply With Quote
  #8  
Old 09-16-2000, 01:22 AM
Guest
 
Posts: n/a
Default

Things to consider:

1) Only registered members can vote and they can only vote on each post once (need to add userid with each post and then check for duplicates)
2) Members profiles includes their average rating
3) A page that lists the top ranked members

I think perhaps some link to the "auto ignore" mod people have been talking about. Ignore people you dislike thing where their posts just collapse into a single line and you do not get emails when they post.

I would personally make the ratings all positive. If you don't vote then you don't think the post is that good. So like

1) = useful, 2) extremley useful 3) Perfect

something like that. Maybe enlarge to 5. I guess this would be left to each person to decide.

Just some ramblings. What do people think?
Reply With Quote
  #9  
Old 09-16-2000, 01:35 AM
Guest
 
Posts: n/a
Default

[QUOTE]Originally posted by acidburn
Quote:
and each user could decide to leave their comments of their rating. Also, other users could vote if the comments is useful to them. It was just like the Amazon.com do on their web site, ya know.

Hope this helps. :-)
You don't need a comments section in a Discussion Board. They could just reply. Also you could integrate the ratings into the reply form. Could be a very neat feature.

I also like Chris' idea of making the ratings all positive, wouldn't hurt feelings.
Reply With Quote
  #10  
Old 09-16-2000, 01:49 AM
Guest
 
Posts: n/a
Default

Good point - you're bound to have a few "rating wars" of some sort or another with a hack like this...as for the "Top Rated Members"...I thought the idea was to rate topics? I suppose both would work; just caught me off guard a bit.

I think there would definetly have to be some way (cookie or otherwise) to ensure that multiple ratings do not occur...otherwise the entire hack is hardly worth it.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:57 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.07509 seconds
  • Memory Usage 2,270KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete