vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - [AJAX] Helpful Answers - Post Rating System (plus many sub-features) (https://vborg.vbsupport.ru/showthread.php?t=204117)

Ted S 02-12-2009 10:45 PM

Quote:

Originally Posted by vbuser99 (Post 1742274)
1. Is "Ban User from Getting Thanks" a working feature? I could't make it work, userid still can get Thanks!

Strange. I'll have to add it to the to test list. It did work when I tried it initially.

Quote:

Originally Posted by vbuser99 (Post 1742274)
2. In the file headers I see old version labels, is zip file updated correctly? These are from 1.4.2 zip file:

// Hepful Answers AJAX Code -- Version 1.3.0
|| # Helpful Answers Rating Script version 1.4.0
|| # Helpful Answers Admin Script version 1.4.0

That's fine. I really shouldn't even have versions in their as I don't change them for minor updates (sometimes the code changed is quicker than finding all the version numbers).

Ted S 02-12-2009 10:46 PM

Quote:

Originally Posted by GriZzm0 (Post 1742317)
@ The one who said the "Add Product" page never stopped loading.
I had the same problem. Our MySQL user didn't have the alter privilege which caused this to happen.

@ Modification author.
Great product, thanks. ;)

Found a small error tho. On the showpost.php page you see the "Did you find this post helpful? Yes | No" text even tho you've already clicked on one of those before. This does not happen on the showthread.php page.

@GriZzm0 Thanks. (wanted to RT one of the lines but couldn't pick one...)

I'll be sure to look at that bug before 1.4.3

Ted S 02-12-2009 10:53 PM

Quote:

Originally Posted by biocyberman (Post 1742294)
Thanks for your time and your discussion, Ted_S.
Yes you are right. I am looking for a different rating system, which I think hasn't been made yet.

I have been searching and trying several Mods to satisfy following feature but haven't got one:
  1. Let reader answer the question: "How helpful do you think of this post?" by giving more informative and qualitative answer rather than "yes" or "no".
  2. Add quick search in thread tool to sort posts in a thread according to their sum of score. Add link in member search or forum-wide search to sort members according to their sum of score got in whole forums or a specific forum.
  3. Rating moderation by staff members
That's is my dream. The mod actually does above features will do some thing. There will be no need for "post thank you hack", "post groan hack", "post rating system hack", and your
"Helpful answer" hack (sorry). And I am sure a lot of vb forums are using one of these hacks. So a more complete handling would be to have conversion tools for forums using those hack into this "unified" post rating system :) Upon score from this system, member prestige is more rational.
Nonetheless your mod is the closest one to have potential to fulfill mentioned features.

Not a bad dream if I do say so myself. :D

A few comments to you because you should understand what you want, it helps in getting it.


Let reader answer the question. Not difficult to do, heck you could extend this mod to do it fairly easily... Right now I have a column for goodvotes, totalvotes with each post. All you'd need to do is change the rating from 1 point for each to 10 possible. Change the script to record the number value and change the votes table to hold the individual score. Divide the goodscore by the totalvotes and you get an average.

It's not as insane is it sounds.

Add quick search in thread tool to sort posts. Unfortunately there's no hooks in the queries so that means code edits. Users hate code edits so coders hate making hacks with them.

sort members according to their sum of score. Not simple code but not that difficult either. The main issue here is the overhead as you try to break things out (i.e. top user with threads in a category).

Rating moderation by staff members. I'm a huge fan of this myself but haven't figured out a good way to do it in forums. With review scripts (i.e. product reviews) you can do "staff review" but for a post you'd either have to have comments on the post (which doesn't make a ton of sense when the user can just post back) or denote that a staff member ranked it on a star scale.

I wanted to make the post order hack but the code edits stopped that. But I am up for diving into the first and the last feature requests if there's more interest.

Ted S 02-12-2009 10:55 PM

Quote:

Originally Posted by TimberFloorAu (Post 1742280)
Cross purposes again.

I said WITHIN that php file.

Not to that php file.

So each itemised thread that has received pos/neg feedback listed chronologically. Should open in a new window, because it opens to self at the moment.

As its your mod, i dont wish to open up the code and re do it, without permission.

I am presuming its something very simple within the prodcut xml

Your code is right but there's no need to change the product file. What you are editing is in a template and you can customize that template however you like... Customizations aren't just allowed, they're encouraged (seriously).

TimberFloorAu 02-12-2009 10:56 PM

Cheers Ted.

Ste :up:

Ok have looked in templates: not getting very far, as the page is propogated by:

<td class="tcat">$vbphrase[helpfulanswer_post]</td>
<td class="tcat">$vbphrase[helpfulanswer_good]</td>
<td class="tcat">$vbphrase[helpfulanswer_total]</td>

Not sure on where in the postlink we can add target="_blank"

Ted S 02-13-2009 12:36 AM

Quote:

Originally Posted by TimberFloorAu (Post 1742365)
Cheers Ted.

Ste :up:

Ok have looked in templates: not getting very far, as the page is propogated by:

<td class="tcat">$vbphrase[helpfulanswer_post]</td>
<td class="tcat">$vbphrase[helpfulanswer_good]</td>
<td class="tcat">$vbphrase[helpfulanswer_total]</td>

Not sure on where in the postlink we can add target="_blank"

Wrong template. You need the bit one, that's the header row that shows the column titles.

Ted S 02-13-2009 05:33 AM

Based on comments from a few members (and mainly biocyberman) I've added a second rating option to the script. This option allows for posts to be voted on from 1 to 10 rather than just being marked as "helpful or not helpful".

The ten point scale is an optional feature which is enabled globally (either you use one or the other). There are a few features that won't work with the ten point scale including the profile stats, the no negative option and others. However there are also some new features with the ten point scale.

I encourage you to try this out on a test site (or your live site if you're looking to switch over) and give me your feedback.

To remove all previous votes (required if changing methods) run the queries:
Code:

UPDATE post SET goodrank = '', totalrank = '';
DELETE FROM helpfulanswer;

If you use table prefixes be sure to include that as well.

Note: This is in beta and while it works fine on my system I'm leaving 1.4.2 as the official version until I get some feedback on how this works.

Second Note: To get this done I used numbers (1 2 3 4 5....) for rankings rather than stars. I will be looking into adding a simple star image in the future and encourage suggestions on that image.

Ted S 02-13-2009 05:36 AM

Changes in 1.5.0
- (Feature) Addition of ten-point rating scale (optional)
- (Feature) Addition of profile stats for ten-point rating scale
- (Feature) Modified display of top ratings page for ten-point ratings
- (Bug) Rating's still show up in showpost template after user has voted
- (Bug) Individual user can't be banned

Hateman 02-13-2009 08:18 AM

Hi,

how can i activate it for all forusm via sql?

GriZzm0 02-13-2009 02:19 PM

Quote:

Originally Posted by Hateman (Post 1742667)
Hi,

how can i activate it for all forusm via sql?

Use the bulk tool in the admin cp instead.


All times are GMT. The time now is 07:42 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.02276 seconds
  • Memory Usage 1,757KB
  • 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
  • (1)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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