![]() |
Strange but glad it works.
You can use a conditional to highlight good posts. I'll put sample code up in a bit. |
Hi Ted,
I'd like to add my voice to a couple of previous suggestions as well. 1. I think this mod would be perfect if it hooked into the rep. points system - but in a simple manner. I'd like to see it be able to award a point(s) for a good suggestion, but I couldn't use it to subtract points - IMHO that would be too harsh to penalize someone for providing an answer that didn't quite work out. 2. I also agree with a previous poster that the mod's options page needs to have a cell which allows us to add a comma separated listing of applicable forums (or the reverse - a list of excluded forums). In my particular setup, I have 78 forums and sub-forums - all but 6 of them needed the mod to be activated. It took me a long time last night to set them all up - granted that was mostly down to browser refresh speeds, but being able to deal with all forums in one go would be sweet. 3. I'm also hoping that your sample (or future) code will include the ability to add a line in the postbit somewhere under the avatar which lists how many helpful posts a member has made? A little like the current "thank you" mod does - i.e. "Thanked 396 times in 329 posts" 4. In helpfulanswers.php, when the link is clicked, I'd like to see it go to the post in question, but in full thread view (for context) instead of just the single post view. Hope these suggestions are useful because for forums like mine, this is going to be a very popular mod - I've already nominated it for MOTM. Thanks, Mike :) |
Thanks mike. All good ideas that will all be making it into the addon (the first 3 sooner). That said the detail on how you want it to work is awesome. Thanks.
|
thnx for the update,will it be the same process or just the xml with overwrite?
|
For upgrades you should reupload the php file and install the new plugin. If an update is plugin only I'll generally announce it as such. Thanks for asking!
|
Quote:
Quote:
Quote:
|
I'm pleased to announce the release of version 1.4.0 which contains several major feature updates and a few bug fixes. See the complete change log below:
- (Feature) Added optional integration with the reputation system - (Feature) Added optional variable to identify the top rated thread in template conditionals - (Feature) Added optional statistics to a user's profile - (Admin) Added Bulk tool to enable system in forums - (Admin) Option to disable automatic template plugin - (System) Add overall rank variable for template conditionals - (System) Auto add to templates for easier installs (no more templates to edit) - (System) Added hook locations throughout addon - (Bug) Fixes issue where non-ajax users weren't getting votes counted - (Bug) Don't show HR line if no votes and user cant vote This wraps up most of the requested features on my list. If there's something you would like to see added that was not put into 1.4.0 please let me know. And of course as a new release please report any bugs or errors you find. |
Great stuff Ted!
A couple of questions if I may: 1. Will the upgrade revert my current helful-answers templates and/or overwrite the current phrases? I have some formatting in there I want to keep so if they do revert I'll take a copy first. 2. You mentioned earlier about some conditional examples - i.e. I wanted to add some code to the postbit in addition to the usercp feature which you've now built in - did you get a chance to look at this yet? My users love this hack - thank you again! Mike :) |
Thanks Mike!
Quote:
Quote:
|
Sounds good - I'd like to add a line to the postbit which is along the lines of what the "thank you" mod provides. similar to:
"Thanked 396 times in 329 posts" I guess we could adjust the phrase ourselves in the conditional, but perhaps something like: "Has provided xx helpful answers in the last yy days" Maybe the "yy days" is a stretch and could add too many extra queries, but just a thought . . . |
Quote:
Code:
Warning: Division by zero in /home/SITE/public_html/includes/class_profileblock.php(250) : eval()'d code on line 50 |
Edit, I appologize but I spoke too quickly on this...
What you're looking to do isn't difficult but it's also not native to addon... But that doesn't need to stop you. What is a concern is the number of queries added (one per post). Votes are stored in a table and along side the post but not with the user so to fetch them you need separately from the big query that fetches threads. If you're interested in this (realize it's one query per post) let me know and I can write up the code. |
Quote:
Quote:
|
Version 1.4.2 posted which fixes a mess-up in the admin option phrases causing some confusion over a stats tool. Just a mislabeled field, upgrading is not necessary.
|
how do i make the text to be in the right side?
I added div align into postbit_legacy: <div align="right"> $helpful_answers </div> it worked at first.. but when updated to last version its not effecting. |
installed. so is this supposed to only show up in the first post of the thread or all posts? (in a given forum)
|
Quote:
|
Quote:
|
Quote:
|
ok thanks Ted
|
Hi,
Thanks for this excellent plugin. It was just what I've been looking for, although I have a few questions which may require a few mods: 1. How can I make the "Rating History and Editing" stats appear in the moderator's control panel? I can see this in the admin control panel, but I'd like moderators or at least super moderators to be able to see this info too. 2. Is there a way to adapt this to show the reputation of a user based on the ratings that their posts have received as opposed to the ratings that they have assigned to other posts. In other words, I'd like the admin and moderator to be able to see which users have received a large amount of positive and negative replies to their posts. 3. For the result display options, can you add a "negative ratings" column next to the "positive ratings" column. Currently, I have to look at the "total" and "positive" and see where there is a difference in numbers to know that there are some negatives. It would be much quicker to be able to spot the negative ones instantly and also to be able to sort by negative ratings. The reason why I am asking for all of this is that I would like to use this to ensure that posts are always answered of the highest quality so I need to see who is answering incorrectly in order to improve the standard of replies. Thanks again. I look forward to receiving your reply. |
For a future revision, I'd like to request that if possible, all the mod's controls are consolidated into single page as currently they appears as 2 entries under VB options and again as a sidebar menu item in the adminCP.
Mike :) |
Quote:
Quote:
Something like "SELECT userid,sum(goodrank) as goodranks FROM postid ORDER BY goodranks DESC LIMIT 50" would show you the top 50 ranked members. Quote:
|
Quote:
As for the links in the sidebar, those are different features and would not make sense to combine (one does not bulk edit forums while reviewing ratings). Of course you could always change things yourself if you want it more consolidated. |
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 = ''; 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. |
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 - (Admin) Addition of negative ratings column for moderation - (Bug) Rating's still show up in showpost template after user has voted - (Bug) Individual user can't be banned |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Version 1.5.1 has been released.
This is a minor fix that adds a redundancy check to insure votes on the ten point scale option are not over 10 points. This update also removes an extra > character in the options area. Upgrading is optional. |
Hi Ted :)
We've been discussing this your mod at my forum today, and one member asked if the cell under the post with the most votes could change color to help distinguish it from other posts in the thread. I know this was mentioned last week and was wondering what would be involved in enabling a feature like that? Mike |
Version 1.5.2 has been released to fix a small bug with the profile stats tool. This bug only impacted users with the ten-scale ratings feature enabled and an upgrade is not required if you did not use this feature.
To upgrade install the new plugin file. No changes were made to any of the other files. |
Quote:
You can do this in two steps. First go to your Helpful Answers System Settings and enable the top answer feature. This will give you acces to the top post via the variable $threadinfo[toppost]. But note, this will also add a query when a post is loaded. Next you'll need to edit the template postbit or postbit_legacy to make use of this variable. Depending on how you want the cell to look you'll want to modify the code appropriately. Code:
<if condition="$threadinfo[toppost] = $post[postid]"> ... </if> |
HI, if i try to use $helpful_answers (enabling Manual Template Placement) it simply doesn't work!
can you help me? thanks! |
Quote:
|
after <!-- / controls -->
(inside the postbit_legacy!) i have to do the manual placement because i have also the post thank you hack, and in the image you can see what happens if they work together with the automatic placement: https://vborg.vbsupport.ru/external/2009/02/56.jpg (grazie = thanks) alternatively, is there a way to move the automatic placement AFTER the thank you button? |
ok, i guess i'm just too dumb
all installed fine, followed instructions, its all there in admin. just not there client side..... |
Quote:
|
Quote:
Are you sure you've enabled it in the forum you're viewing? |
All times are GMT. The time now is 06:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|