View Full Version : Add-On Releases - [AJAX] Helpful Answers - Post Rating System (plus many sub-features)
Pages :
1
[
2]
3
4
5
6
7
8
biocyberman
02-22-2009, 07:18 PM
Hello Ted_S,
Sorry for my late reply. I check the addon found several points I would like to discuss:
1. Harmonization of Yes/No rating and ten-point rating is still buggy. "Yes" in Yes/No should always be equal to maximum of other numerical rating method, ie 10 in ten-point scale method. Similarly "No" equivalent to 1 in ten-point scale or the lowest score.
This is because currently Yes equals to 1 and when switching to 10 point scale it became the lowest score!
2. It will be nice if there is user-selected sorting link for each column of the table in helpfulanwsers.php page. So users can sort to see ascendingly and descendingly
3. A function for on-site auditing of rating like in postthank mod would be nice: https://vborg.vbsupport.ru/showthread.php?t=165673
where specified groups can remove ratings.
4. At user profile page, additional report about sum score earned from posts will be more informative beside average earned score .
5. And finally and most importantly: Last time I discussed about putting some filtering system at the thread level. Now I think we can achieve this without code modifying and little or no template modifying. We can do that by submiting different filtering parameters at helpfulanswers.php like following:
hepfulanswers.php?forumid=3&threadid=12&userid=15&minimumpoints=6&showtopx=15&sortby=<column>
And provide link at different hook positions such as thread tool, "Search in this forum" like this search forum specific unanswered threads does:
https://vborg.vbsupport.ru/showthread.php?t=201048
My understanding about vbulletin API is still limited so I will not be helpful in coding at this moment. Sorry for that :">
Thanks for your work!
Regards,
Cyberman.
Ted S
02-23-2009, 05:56 PM
1. Harmonization of Yes/No rating and ten-point rating is still buggy. "Yes" in Yes/No should always be equal to maximum of other numerical rating method, ie 10 in ten-point scale method. Similarly "No" equivalent to 1 in ten-point scale or the lowest score.
This is because currently Yes equals to 1 and when switching to 10 point scale it became the lowest score!
I didn't feel it was fair to say a Yes 1 was a 10 or a No was a 0 (versus a 5 or a 4). To adjust things there is a query in the install file that will reset all old vots if you switch systems.
2. It will be nice if there is user-selected sorting link for each column of the table in helpfulanwsers.php page. So users can sort to see ascendingly and descendingly
[/code]
This will be in a future release.
[quote=biocyberman;1751690]
3. A function for on-site auditing of rating like in postthank mod would be nice: https://vborg.vbsupport.ru/showthread.php?t=165673
where specified groups can remove ratings.
At this point all of the editing is through the admin control panel. If there's interest in moving it to mod control panel we can do that in the future.
4. At user profile page, additional report about sum score earned from posts will be more informative beside average earned score .
Such as?
5. And finally and most importantly: Last time I discussed about putting some filtering system at the thread level. Now I think we can achieve this without code modifying and little or no template modifying. We can do that by submiting different filtering parameters at helpfulanswers.php like following:
Not sure what you mean here... What do you hope to achive?
Ted S
02-23-2009, 06:25 PM
Hello Helpful Answers users!
Version 1.5.3 has been released which adds two new features:
First you will now have the option to disable ratings in the first post of a thread as they are often questions and rating does not make sense.
Secondly thanks to contributions by two Maidos and Simon Lloyd I've added thumbs up & down AND positive or negative rating images. By default the thumbs icons will now be used but you can change back to text through your options settings.
To upgrade:
Simply upload the files in the folder upload/images/button to your site and install the new plugin file. No changes have been made to the php files.
biocyberman
02-23-2009, 06:34 PM
At this point all of the editing is through the admin control panel. If there's interest in moving it to mod control panel we can do that in the future.
What I meant is to put a remove rating button/links right at each post similar to thank button does.
Such as?
For example a member A: his post number X was rated total 50, post Y was rated 80, post Z was rated 30. So in total he got 160 points. Even more, if his post Y is highest rated he may get a bonus score of 100, and in total he gets 260 points. This point can be showed in a chosen places to introduce about him.
An average score of, for example 8.5, doesn't tell much in a big forum of thousands of members because there may be many members with that similar score.
Not sure what you mean here... What do you hope to achive?
Currently helpfulanswers.php table shows statistics of ALL forums. What I hope is to have function to find out helpfulanswers sub-table of a specific forum, thread or a user by putting more parameters to the query, like this one:
hepfulanswers.php?forumid=3&threadid=12&userid=15&minimumpoints=6&showtopx=15&so rtby=<column>
Link to hepfulanswers.php with different query parameter set can be but at thread and forum or search page to provide a user-friendly way to retrieve information.
:) Hope I spoke out what I want :)
Ted S
02-23-2009, 06:38 PM
What I meant is to put a remove rating button/links right at each post similar to thank button does.
For what end... To let a user remove their own ranking? To remove all rankings? To remove one ranking?
For example a member A: his post number X was rated total 50, post Y was rated 80, post Z was rated 30. So in total he got 160 points. Even more, if his post Y is highest rated he may get a bonus score of 100, and in total he gets 260 points. This point can be showed in a chosen places to introduce about him.
An average score of, for example 8.5, doesn't tell much in a big forum of thousands of members because there may be many members with that similar score.
Let me chew on this one...
Currently helpfulanswers.php table shows statistics of ALL forums. What I hope is to have function to find out helpfulanswers sub-table of a specific forum, thread or a user by putting more parameters to the query, like this one:
hepfulanswers.php?forumid=3&threadid=12&userid=15&minimumpoints=6&showtopx=15&so rtby=<column>
Link to hepfulanswers.php with different query parameter set can be but at thread and forum or search page to provide a user-friendly way to retrieve information.
Got it! That's straight forward and something I'll add to the next major release.
petertdavis
02-23-2009, 07:15 PM
Thanks Ted, works beautifully now. How do I make the "Did you find this post helpful?" not be bolded?
biocyberman
02-23-2009, 07:28 PM
For what end... To let a user remove their own ranking? To remove all rankings? To remove one ranking?
User remove their own rating, specified moderator groups can remove all ratings for a post when view that post.
Let me chew on this one...
Got it! That's straight forward and something I'll add to the next major release.
Really happy and look forward to it :)
Ted S
02-23-2009, 07:53 PM
Thanks Ted, works beautifully now. How do I make the "Did you find this post helpful?" not be bolded?
Just edit the template helpful_answers and remove the strong tag.
petertdavis
02-23-2009, 08:18 PM
Just edit the template helpful_answers and remove the strong tag.
Nope, didn't do it. "Did you find this post helpful? Yes I did!" is still bolded.
DobieGillis?
02-23-2009, 08:29 PM
Nice Update!
Ted S
02-23-2009, 09:12 PM
Nope, didn't do it. "Did you find this post helpful? Yes I did!" is still bolded.
If you have more than one template style you may need to change each instance.
Capper5016
02-23-2009, 11:22 PM
Really nicely done. I am sure I'm not alone in thanking you for your time and effort on this.
Okay........here is my idea, and I need some input. I'd like to replace "1 out of 1 users has found this post helpful" with something like:
(Thumbs Up img): positive votes (Thumbs Down img): negative votes
petertdavis
02-24-2009, 01:22 AM
Got it working at Coin Talk (http://www.cointalk.com/forum/). Kind of a different spin on it, but it works beautifully for what we wanted to do. Thanks very much for doing this Ted.
Ted S
02-24-2009, 01:37 AM
Really nicely done. I am sure I'm not alone in thanking you for your time and effort on this.
Okay........here is my idea, and I need some input. I'd like to replace "1 out of 1 users has found this post helpful" with something like:
(Thumbs Up img): positive votes (Thumbs Down img): negative votes
No need to wait for an update... Just changing the template will let you to exactly this.
Ted S
02-24-2009, 01:57 AM
Got it working at Coin Talk (http://www.cointalk.com/forum/). Kind of a different spin on it, but it works beautifully for what we wanted to do. Thanks very much for doing this Ted.
Glad it worked so well for you.
maidos
02-24-2009, 02:05 AM
thanks for the update ted, much appreciated.
But it appears that you have the imagepath little bit wrong. My picture are in png and not gif.
A suggestion, is it possible to have the pictures remain there when you vote and allow the user to withdraw their vote?
Also wondering a feature i find it more appealing is like digg and other social sites is that they just show the number of votes instead of having a long sentence like this mods
1 out of 1 members found this post helpful. Thank you for rating this post!
maidos
02-24-2009, 02:11 AM
took screenshot from digg for what i think will look nicer if this mods got the same vote display aswell
Ted S
02-24-2009, 03:44 AM
took screenshot from digg for what i think will look nicer if this mods got the same vote display aswell
Just edit the template and you can clone this easily.
Ted S
02-24-2009, 03:46 AM
thanks for the update ted, much appreciated.
But it appears that you have the imagepath little bit wrong. My picture are in png and not gif.
A suggestion, is it possible to have the pictures remain there when you vote and allow the user to withdraw their vote?
Also wondering a feature i find it more appealing is like digg and other social sites is that they just show the number of votes instead of having a long sentence like this mods
1 out of 1 members found this post helpful. Thank you for rating this post!
I'll check the paths, thanks.
Right now there is no "unvoting".
Text can be shortened through phrases or the template.
maidos
02-24-2009, 03:49 AM
thanks but i dont think only template edits will suffice
after the voting it usually displays
1 out of 1 members found this post helpful. Thank you for rating this post!
So im not entirely sure how i can do the template edits since i think the voting system isnt same as digg voting feature.
on digg if theres an exmaple +6 votes and one votes negative it goes down to +5 thats the kind of feature i would look forward with but not sure how i can do that with template edits
on language phrase theres this {1} out of {2} which shows the votes but i wish to have it appear on user before they vote so they can see the vote first before theyself vote. but how can that be done
and how do i add the image path next to members found this post helpful. right when you vote because im unabled to add the image path btw this code <phrase 1="$post[goodrank]" 2="$post[totalrank]">$vbphrase[helpfulanswer_x_out_of_y]</phrase>
Capper5016
02-24-2009, 04:20 AM
Something like this
(Thumb Up)...$post[goodrank] (Thumb Down)...$post[badrank]
But here is my issue........how do I put this together? What template do I edit? I have messed with the above code and put it under the post count in legacy postbit....but then i realized that the above code only pertained to that specific post and not an overall count.
So, what template do I edit, and maybe a little help with putting it all together so that the above idea replaces the default text at the bottom of each post.
Ted S
02-24-2009, 12:04 PM
Template edits will let you do exactly what you want; you just need to use the right variable (good rank). All you need to is change the phrase to +{1} and it will show +6 votes if that's the total good votes.
The votes will appear before a user votes themselves... If there are any votes (we don't show 0 of 0).
The image paths are hard coded if you use phrases... If you remove the phrase you can make them however you like.
Ted S
02-24-2009, 12:07 PM
Something like this
(Thumb Up)...$post[goodrank] (Thumb Down)...$post[badrank]
But here is my issue........how do I put this together? What template do I edit? I have messed with the above code and put it under the post count in legacy postbit....but then i realized that the above code only pertained to that specific post and not an overall count.
So, what template do I edit, and maybe a little help with putting it all together so that the above idea replaces the default text at the bottom of each post.
You edit helpful_answers
Look for the yes no phrase, remove it but use the links and the variables.
I'll post samples later today
Capper5016
02-24-2009, 02:19 PM
Ted, A good example...including a detailed explanation of where to put stuff, would be awesome.....and I think several people would really like this style.
Nominated for MOTM, you've really done a spectacular job with this mod, and been incredibly patient with all the requests..
Ted S
02-24-2009, 02:33 PM
I have released version 1.5.5 which fixes a very small bug with the extensions for plus & minus icons. To upgrade simply upload the new plugin file. No other changes have been made.
Users not using plus and minus images do not need to upgrade.
DobieGillis?
02-24-2009, 02:38 PM
Ted, don't see the new file
Ted S
02-24-2009, 02:42 PM
Ted, A good example...including a detailed explanation of where to put stuff, would be awesome.....and I think several people would really like this style.
Nominated for MOTM, you've really done a spectacular job with this mod, and been incredibly patient with all the requests..
Checkout https://vborg.vbsupport.ru/showpost.php?p=1733465&postcount=2 for examples
Ted S
02-24-2009, 02:42 PM
Ted, don't see the new file
It seems to be there for me?
Capper5016
02-24-2009, 02:56 PM
Working perfectly! (Update doesnt show up for me either)
An idea......Maybe a way to make the highest rated post stand out
Ted S
02-24-2009, 03:28 PM
Working perfectly! (Update doesnt show up for me either)
An idea......Maybe a way to make the highest rated post stand out
That's already a feature. There's a variable that identifies this to be used as you see fit...
Capper5016
02-24-2009, 03:34 PM
maybe put that, and some examples on the examples page?
Ted S
02-24-2009, 03:40 PM
Unfortunately I don't have the time to document every possible example iteration. This addon is intended to look good out of the box but also provides a great number of variables for people who want to dig in and change things around. Templates are basically basic HTML and those who are familiar with it should have no problems making changes; if you're not it's difficult for me to walk you through all the possibilities even with a dozen examples.
All of the main variables are of listed in the second post with the examples.
Like most variables you can use this one in a conditional to add any code you like be it a bold line saying "Best Rated", a background color, etc...
Capper5016
02-24-2009, 04:15 PM
I'd really like to have the post with the highest rating highlighted with a different color.
If anyone can help me set that up, I'd really appreciate it.
On the members profile page, I'd also like to have the "Thumbs Up" and "Thumbs Down" with the members overall stats. Right now it says (member name) Posts have been rated good (_) out of (_) times.
Ted S
02-24-2009, 06:41 PM
I'd really like to have the post with the highest rating highlighted with a different color.
The variable for the top post is $threadinfo[toppost] and is only active when enabled. You can use that in a conditional to change the box color.
If you need help learning html I'd suggest the main programming forum here at vBulletin.org as you won't find many people checking hack threads to help others.
On the members profile page, I'd also like to have the "Thumbs Up" and "Thumbs Down" with the members overall stats. Right now it says (member name) Posts have been rated good (_) out of (_) times.
Just edit the template helpful_statsbit and add the thumb images where you want them. Remove the phrases or any other text if you don't want it.
Capper5016
02-24-2009, 07:34 PM
Theres no reason to be snippy. I'm sure I'm not alone in needing guidance with these variables, and how to use them. I'm sure I'm not the only one who asks where you'd put $threadinfo[toppost].
I've been working with VBulletin for a couple of years, but my job is not web design or coding. Thats why we have these threads, and why people ask questions......and I see a lot worse than the couple I've tossed out there.
As to the overall stats, I dont see variables for that. I have toyed with the different variables, and they all appear to pertain to single posts, not all the users posts.
Ted S
02-24-2009, 08:16 PM
I'm sorry if you felt my response was snippy, I was simply trying to direct you to a place where you're more likely to get support for your HTML question. Unfortunately people only tend to check hack threads when they have a question so there's limited opportunity to get support from others in a hack thread versus the larger vBulletin community forums.
As for your question, I think I misunderstood your last post. It sounds like you're looking to add stats about the user's overall rating history to each post... If that's the case there is no such feature in this addon as adding these variables would require an additional query for every post which is not good for server resources.
There are however global rating stats in a user's profile found with the variables $helpfulposts[goodranks] $helpfulposts[badranks] $helpfulposts[totalranks]
Capper5016
02-24-2009, 08:28 PM
no no, you had it right.....ideally it would show the members overall stats (total good posts and total bad posts) on their member page, instead of "5 posts out of 5 rated good".
I understand your perspective(and I understand answering silly questions over and over is frustrating), and my feeling is that I can do anything with decent instruction.....but what I see more often than not is a real lack of patience from the people who have the answers. Most of the time the answer is Google it, read the instructions, or use the search feature (all of which I do)........but there are times when that doesnt explain something well....or something that might take 5-10 minutes for you or someone else to explain here, would take 3 hours of research on my part. Then you have the people who want to charge you for the answer.....and to be honest, this is a hobby, not a paying site, and money is tight.
Capper5016
02-24-2009, 08:32 PM
The variable for the top post is $threadinfo[toppost] and is only active when enabled. You can use that in a conditional to change the box color.
I know a bit of HTML, but this is a bit beyond introductory HTML.
Ted S
02-24-2009, 09:36 PM
Generally I'm more willing to help people who take steps themselves (like when you posted some variables and issues) than those who just ask without looking first. But regardless you won't see me say Google it... I can't always provide the help people need but I certainly don't like to drop them off and force them to learn an entire language either.
In any case, the profile has the two variables I mentioned previously controlled from the template I also mentioned before. Right now there's a lot of phrases controlling the layout of that box -- rip all of that out and just use some basic html. The variables carry the votes, the images you can call up directly.
As for the top post it's not basic HTML but still nothing crazy.
For example:
<if condition="$threadinfo[toppost] == $post[postid]">This is the top rated post!</code>
Using the same logic you could for example add to the table cell holding the post contents to change its color.
If you chose to tinker around and get stuck let me know and we'll find a solution.
Capper5016
02-24-2009, 09:48 PM
I completely understand, and agree.... on helping yourself. I've read each and every post in this thread and can understand your reluctance in even answering most questions.
My feeling on the questions I'm asking are that they are ones that might extend the flexibility of this mod for most users. Instead of just installing and running the basics, they see that there are several different, and very useful methods of implementing it. It takes it from a simple "Helpful answers" mod to something much more.
Code:
<if condition="$threadinfo[toppost] == $post[postid]">This is the top rated post!</code>
Using the same logic you could for example add to the table cell holding the post contents to change its color.
Changing the color is exactly what I was looking at....but wasnt sure what specific template to edit. I think a lot of the issue I'm running into is what should be edited as a template, and what I should be editing in phrases.
I think it would really help people out to add stuff like the code above to the second post as well.
Capper5016
02-24-2009, 10:13 PM
Heres what I did.....had a little trouble trying to think how I worded it:
<fieldset class="statistics_group">
<legend>$vbphrase[helpfulanswer_title]</legend>
<ul class="list_no_decoration">
<img src="images/buttons/ha_thumbsup.gif" width="11" height="20" border="0" alt="Good" /><strong> $helpfulposts[goodranks]</strong> <span>Posts Receiving Positive Votes</span><br />
<img src="images/buttons/ha_thumbsdn.gif" width="11" height="20" border="0" alt="Bad" /><strong> $helpfulposts[badranks]</strong> <span>Posts Receiving Negative Votes</span>
</ul>
</fieldset>Then I used the Phrase manager to edit $vbphrase[helpfulanswer_title] and changed "Helpful Postings" to "Member Posting Reputation"
Results:
Now this has me wanting to tie it in with Cyb's Advanced Forum Stats, adding the ability to list the users with the most positive and negative votes.
Ted S
02-24-2009, 10:37 PM
Have to be logged in for that page but I'm glad you got it working. If you want to change things even further you can edit the template to remove the phrases and just write things in the format you want.
As for the top thread, the template to change is postbit or postbit legacy depending on your forum's setup.
Capper5016
02-24-2009, 10:48 PM
Posted a screenshot so people could see the result.....
I tried using <img src="images/buttons/ha_thumbsup.gif" width="11" height="20" border="0" alt="Good" /><strong> $helpfulposts[goodranks]</strong> <span>Posts</span><br />
<img src="images/buttons/ha_thumbsdn.gif" width="11" height="20" border="0" alt="Bad" /><strong> $helpfulposts[badranks]</strong> <span>Posts</span>I tried to get the Members Posting Reputation to appear under their avatar in the postbit, but it doesnt work. The icons display but the numbers won't.
I need to figure out where in the postbit to place the top thread phrase, and the conditional that changes the box color.
Ted S
02-24-2009, 10:56 PM
The member's reputation is not available in postbit as I mentioned before. So while you get an A for using the right code there's nothing to pull data for those variables.
As for the color, I'm not entirely sure which table cell (<td>) you'd want to change... try poking around with a few until you find the one that gives you the look you want.
Capper5016
02-24-2009, 11:07 PM
I wasnt using the Reputation plugin I made my own "Member Post Reputation", that was just an attempt to see if I could use those conditionals within the postbit, or anywhere else. I think being able to add this to site stats or something like that would be awesome.
I need to figure out how to use color in this instance, Its been a long time since I've tinkered this deeply in VBulletin code.
<if condition="$threadinfo[toppost] == $post[postid]">
How would you wrap this in a color tag? Anyone, not just Ted.
Ted S
02-24-2009, 11:33 PM
As I mentioned before, the variables for a member's overall reputation aren't available because adding them would require an additional server query for every post -- which is not acceptable.
Capper5016
02-24-2009, 11:52 PM
<if condition="$threadinfo[toppost] == $post[postid]">
Where the heck would I even post this question to get an answer? I need to find out how to wrap it in color tags, and then find out where to place it, in which template.
Ted, thanks for your input on the customizations......feel free to take the rest of the night off.
Ted S
02-25-2009, 12:37 AM
I can't tell you where to place it as I haven't poked around enough but I already told you the template (postbit or postbig_legacy depending on your settings). :D
As far as how to use it,
<td class="alt1" <if condition="$threadinfo[toppost] == $post[postid]">style="background-color:red;"</if> >
Would make a table cell (<td>) colored red if it's the top post.
I'd suggest opening the right template and just playing. You can create a new style as a child and edit that so your members don't see what you're doing until it's complete.
Capper5016
02-25-2009, 01:19 AM
I give up, mod works great....nuff said.
maidos
02-25-2009, 08:44 AM
Template edits will let you do exactly what you want; you just need to use the right variable (good rank). All you need to is change the phrase to +{1} and it will show +6 votes if that's the total good votes.
The votes will appear before a user votes themselves... If there are any votes (we don't show 0 of 0).
The image paths are hard coded if you use phrases... If you remove the phrase you can make them however you like.
my intention is to allow users to view the votes before voting themself. Thats what im after.
im not entirely sure but i got lost somewhere btw the phrase because when i did remove it doesnt display anything.
this is the phrase helpfulanswer_x_out_of_y where i can add the pictures together with the votes right? how can i do that since im not sure how to code that
star88
02-25-2009, 10:46 AM
Hi Ted, and thank you for your mod. I installed it.
It's ok, seems to work fine but I got an error message when I imported your product.
I attached a screenshot I took.
I use VB 3.8.1 and your latest product version 1.5.4
Ted S
02-25-2009, 03:53 PM
If you remove the phrase you have to add back in your own code to show something... The phrase is the default message, without it there is nothing to show.
For example, if you replaced the phrase with:
$post[goodrank] Good Votes!
The post would show "6 Good Votes!" if there were 6 good votes for it.
If there are no votes nothing would show by default, but again, you can change that by removing the <if ...> condition right above the phrase you are changing.
Ted S
02-25-2009, 03:54 PM
Hi Ted, and thank you for your mod. I installed it.
It's ok, seems to work fine but I got an error message when I imported your product.
I attached a screenshot I took.
I use VB 3.8.1 and your latest product version 1.5.4
Thanks.
It looks like the plugin still installed -- is it working right?
star88
02-25-2009, 04:32 PM
Thanks.
It looks like the plugin still installed -- is it working right?
Yes, it works like a charm.
Note I don't use the 10 point rankings for now. I use helpful answers.
Ted S
02-25-2009, 05:14 PM
Great!
dooch
02-25-2009, 10:49 PM
is there going to be a way of highlighting or copying the best post directly below the first post? I know this has been suggested, id love to see this?
popowich
02-25-2009, 11:36 PM
Hello,
If you have the thank you hack installed the automatic placement causes a little mess.
Here is the spot in postbit_legacy that I think looks OK for those doing this as a manual template edit:
</if>
$template_hook[postbit_controls]
$helpful_answers
<!-- / controls -->
</td>
</tr>
</table>
$template_hook[postbit_end]95509
popowich
02-25-2009, 11:42 PM
Is there a way to allow guests to rate posts?
I'd even be OK with a cookie check that only lets them rate up to 10 posts before registering.
My forum is mostly visitor traffic reading how-to information.
It would be great if this worked like a visit to Microsoft support sites and you get to rate the thread.
The simple thumbs up or down is fine, I just want guests to be able to rate the posts too.
Thank you for this product. :D
-Raymond
Ted S
02-26-2009, 03:12 AM
is there going to be a way of highlighting or copying the best post directly below the first post? I know this has been suggested, id love to see this?
Highlighting absolutely.... Look at the second post in the thread and you'll see a sample condition that will let you identify the post.
Moving the post however would require manually hacking your showthread script.
Ted S
02-26-2009, 03:13 AM
Hello,
If you have the thank you hack installed the automatic placement causes a little mess.
Here is the spot in postbit_legacy that I think looks OK for those doing this as a manual template edit:
</if>
$template_hook[postbit_controls]
$helpful_answers
<!-- / controls -->
</td>
</tr>
</table>
$template_hook[postbit_end]95509
That's a good spot or you can use it lower after the thank you hack. It just depends on where you want things to show.
Ted S
02-26-2009, 03:14 AM
Is there a way to allow guests to rate posts?
I'd even be OK with a cookie check that only lets them rate up to 10 posts before registering.
My forum is mostly visitor traffic reading how-to information.
It would be great if this worked like a visit to Microsoft support sites and you get to rate the thread.
The simple thumbs up or down is fine, I just want guests to be able to rate the posts too.
Thank you for this product. :D
-Raymond
Sorry but guest ranking isn't possible with the feature currently but it wouldn't be that hard to make it work. Just remove the few places that check if someone is a user and you're all set (ok ok so that's not super easy either).
That's a good spot or you can use it lower after the thank you hack. It just depends on where you want things to show.
Awesome mod Ted S!
The same issue appears for people with the blog mod installed (blog this post icon). Perhaps there is a better way to do the automatic template edits/insertions to take this into account?
Cheers,
Regs.
Ted S
02-26-2009, 04:07 AM
Unfortunately automated is automated... there's one variable and a lot of plugins use it. I've done my best to try and make this addon execute after others but I can't make things automated without hooking in at the same place...
Thus the option exists for a manual override.
Thanks Ted, wasn't aware of the one variable thing.
Cheers,
Regs.
dooch
02-27-2009, 08:06 AM
getting a mysql error on product import
Database error in vBulletin 3.8.1:
Invalid SQL:
REPLACE INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, validationcode, blacklist, product)
VALUES
(
'helpans_manual',
'helpfulanswers',
'0',
'0',
'boolean',
'yesno',
10,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_hidefirst',
'helpfulanswers',
'0',
'0',
'boolean',
'yesno',
15,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_neg',
'helpfulanswers',
'1',
'1',
'boolean',
'yesno',
20,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_banned',
'helpfulanswers',
'',
'',
'text',
'',
30,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_top',
'helpfulanswers',
'1',
'1',
'boolean',
'yesno',
40,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_self',
'helpfulanswers',
'0',
'0',
'boolean',
'yesno',
45,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_min',
'helpfulanswers',
'0',
'0',
'boolean',
'yesno',
50,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_minnum',
'helpfulanswers',
'10',
'10',
'text',
'',
55,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_limit',
'helpfulanswers',
'',
'',
'text',
'',
60,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_stats_votes',
'helpfulanswers',
'0',
'0',
'boolean',
'yesno',
70,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_stats_ranks',
'helpfulanswers',
'0',
'0',
'boolean',
'yesno',
80,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_stats_ten',
'helpfulanswers',
'0',
'0',
'boolean',
'yesno',
85,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_gettop',
'helpfulanswers',
'0',
'0',
'boolean',
'yesno',
90,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_rank_ten',
'helpfulanswers',
'0',
'0',
'boolean',
'yesno',
100,
0,
1,
'',
0,
'helpful_answers'
),
(
'helpans_report',
'helpfulanswers',
'1',
'1',
'boolean',
'yesno',
200,
0,
1,
'',
0,
'helpful_answers'
);
MySQL Error : Data truncated for column 'datatype' at row 4
Error Number : 1265
Request Date : Friday, February 27th 2009 @ 10:02:24 AM
Error Date : Friday, February 27th 2009 @ 10:02:25 AM
Script : http://www.****.com/admincp/plugin.php?do=productimport
Referrer : http://www.****.com/admincp/plugin.php?do=productadd
IP Address : ****
Username : ****
Classname : vB_Database
MySQL Version : 5.0.51a-community-nt
EDIT - I think the error is at my end of things... ;(
dooch
02-27-2009, 09:12 AM
Identify the top rated post.
Step 1 - Enable the top rated post feature from your Helpful Answers Settings.
Step 2 - Add the code:
<if condition="$threadinfo[toppost] == $post[postid]">This is the top rated post!</code>
To your postbit or postbig_legacy template
This can be changed around to add colors, an icon or anything else you want.
================================================== ==========================
This is the bit im most interested in. Unfortunatley I cant get this code to work, even if I alter it to this... any ideas?
<if condition="$threadinfo[toppost] == $post[postid]">This is the top rated post!</if>
star88
02-27-2009, 12:21 PM
This is the bit im most interested in. Unfortunatley I cant get this code to work, even if I alter it to this... any ideas?
<if condition="$threadinfo[toppost] == $post[postid]">This is the top rated post!</if>
I enabled the top rated post feature from Helpful Answers settings. I added <if condition="$threadinfo[toppost] == $post[postid]">This is the top rated post!</if> in the postbit template. Unfortunatly, it does not work. :(
Ted S
02-27-2009, 03:45 PM
I'm working on the top post right now and will get back with some answers on how to use it and examples in a minute.
Ted S
02-27-2009, 04:02 PM
The correct variable for this feature is $thread[toppost] not $threadinfo. My appologies for the mistake.
I will be posting a code snippit to allow you to highlight the top post in a few minutes...
Ted S
02-27-2009, 04:26 PM
Instructions for how to highlight the top rated post have been added to my examples post (https://vborg.vbsupport.ru/showpost.php?p=1733465&postcount=2).
I hope to offer this as an automated feature in the future.
star88
02-28-2009, 12:46 PM
Instructions for how to highlight the top rated post have been added to my examples post (https://vborg.vbsupport.ru/showpost.php?p=1733465&postcount=2).
I hope to offer this as an automated feature in the future.
Hi Ted, thank you very much for sharing ! Great work !!
It works perfectly.
I nominate it MOTM
:up:
-=Sniper=-
02-28-2009, 01:20 PM
great hack, its just me being lazy :) but any chance for a converter from "Post Thank You" hack?
star88
02-28-2009, 03:58 PM
Just a problem remains:
If I post a new thread, it will be highlighted if there is no vote or no replies, despite turning the "Hide on first post" feature to "Yes" in the settings.
Is there a way to not highlight the first post ?
Ted S
02-28-2009, 04:44 PM
What exactly do you want to import... Thank you's as positive votes?
Ted S
02-28-2009, 04:48 PM
Just a problem remains:
If I post a new thread, it will be highlighted if there is no vote or no replies, despite turning the "Hide on first post" feature to "Yes" in the settings.
Is there a way to not highlight the first post ?
I assume you're referring to the top post variable. If this is the case I'll be releasing an update to fix this soon (codes done but on a different computer). In the meantime you can add the following to your condition:
AND $post[goodrank]
star88
02-28-2009, 04:57 PM
I assume you're referring to the top post variable.
Yes, exactly. Thank you for your help, Ted.
-=Sniper=-
02-28-2009, 06:36 PM
What exactly do you want to import... Thank you's as positive votes?
correct :)
Ted S
02-28-2009, 07:43 PM
correct :)
Shouldn't be hard, I'll post a script Monday to do this.
maidos
03-02-2009, 07:24 AM
Shouldn't be hard, I'll post a script Monday to do this.
thanks, look forward with that script since this mod can replace the thanks mod
another question is im thinking of replacing the thumbs icons with my own however they are set in a fixed size so do u know where i can change the size
when i have Nominate your thread of the month mods it looks little bit messy sohow can i move helpful mod next to the thread title?
Ted S
03-02-2009, 07:41 PM
If you chose to use thumb images of your own your best bet is to modify the helpful_answers addon and add the images directly. Altering the included is not ideal as their sizes are hardcoded in.
You can move the helpful answers code anywhere within the postbit template by switching to manual mode and adding the variable $helpful_answers where you want it to go.
Ted S
03-02-2009, 08:46 PM
Attached is a simple import script which will import voting history from the Thank You Post system into Helpful Answers updating the voting log and each post.
To use this script simply upload the file to your admincp folder, login to your admincp and manually enter the url (i.e. www.yoursite.com/admincp/ha_import.php (http://www.yoursite.com/admincp/ha_import.php)). Once you've finished the script delete the file and DO NOT rerun it or you'll end up with duplicate votes.
A few important notes about the script:
- This script will add an entry into the log for each thank you vote prohibiting the user who said "thanks" from voting again.
- This script will maintain existing helpful answer votes and will allow duplicates if a user has used both systems in the past.
- This script treats every Thank You as a helpful rating and does not look for negativs.
- Your Thank You Post votes will be left as is in case you wish to run both systems or for back.
- This script is not fully tested so use at your own risk.
Of course if you are not using the Thank You Post addon there is no reason to run this script and doing so will give you an error.
maidos
03-02-2009, 08:52 PM
any advice how i can do that and exactly which phrase to remove and replace with my own image path.
Im not fully understand you by switching to manual mode exactly what do youmean
also i pm u the double icons that appears randomely any help on that? i followed the sample codes u posted earlier on
Ted S
03-02-2009, 08:59 PM
any advice how i can do that and exactly which phrase to remove and replace with my own image path.
No phrases for this, you'll want to edit the template helpful_answersFind $helpfulanswer_yes and $helpfulanswer_no and replace them with your yes and no images (i.e. <img src="../yes.gif" width="20" height="20" border="0" alt="Yes!" />
Im not fully understand you by switching to manual mode exactly what do youmean
In the Helpful Answers Settings there's an option to disable the auto template inclusion. Turn that off and the $helpful_answers variable gets activated for you to place where you want.
maidos
03-02-2009, 09:55 PM
thanks it helped me, my another question is
can i use this <if condition="$post['totalrank']"> to display the votes that appears before voting by only showing the votes and not the images?
imkind of confused why the images doesnt display on some replies and other replies does in the same thread
and some threads it appears double icons
Ted S
03-02-2009, 09:57 PM
<if condition="$post['totalrank']"> is a condition that will check to see if their are votes. If you use that to wrap around your voting buttons they would never show as there could never be a vote.
maidos
03-03-2009, 11:49 AM
so could you advice me how i can show the votes for the members before user votes themself?
Ted S
03-03-2009, 12:04 PM
so could you advice me how i can show the votes for the members before user votes themself?
Just use the goodrank and totalrank variables as you see fit. They will show the votes.
maidos
03-03-2009, 01:18 PM
thanks, now i have one last issue and that is the screenshot i pmed you.
Good 1 Bad 0 Did you find this post helpful? 1 Yes | 0 Yes
the double icons appears when someone other already has voted when members themself personally havent voted yet any idea to fix this?
Ted S
03-03-2009, 05:26 PM
I'm not able to follow your question. Please rephrase it.
-=Sniper=-
03-03-2009, 05:32 PM
Attached is a simple import script which will import voting history from the Thank You Post system into Helpful Answers updating the voting log and each post.
To use this script simply upload the file to your admincp folder, login to your admincp and manually enter the url (i.e. www.yoursite.com/admincp/ha_import.php (http://www.yoursite.com/admincp/ha_import.php)). Once you've finished the script delete the file and DO NOT rerun it or you'll end up with duplicate votes.
A few important notes about the script:
- This script will add an entry into the log for each thank you vote prohibiting the user who said "thanks" from voting again.
- This script will maintain existing helpful answer votes and will allow duplicates if a user has used both systems in the past.
- This script treats every Thank You as a helpful rating and does not look for negativs.
- Your Thank You Post votes will be left as is in case you wish to run both systems or for back.
- This script is not fully tested so use at your own risk.
Of course if you are not using the Thank You Post addon there is no reason to run this script and doing so will give you an error.
Thanks Ted, I can work with that :)
Ted S
03-03-2009, 05:41 PM
Awesome. Let me know how the import goes!
maidos
03-03-2009, 08:06 PM
sorry about, posts that has been voted by other member while i who hasnt voted yet will see 2 idendic icons
http://img240.imageshack.us/img240/6078/966920937.jpg
Ted S
03-03-2009, 09:37 PM
Sounds like your template modifications aren't working right. You need to keep the original structure intact using the conditions to check if someone can rate the thread.
Post your template and I'll take a look.
maidos
03-04-2009, 06:16 AM
hmi tried to keep the original structure while using the sample codes youprovided and adding my ownimage path, dont know where i went wrong
heres template helpful_answers
<if condition="$show['helpfulanswer']">
<div id="helpfulanswers_box_$post[postid]">
<br /><hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<if condition="$vboptions[helpans_neg]">
<if condition="$post['totalrank']">
<img src="images/buttons/ha_thumbsup.gif" width="20" height="20" border="0" alt="Good" /> $post[goodrank]
<img src="images/buttons/ha_thumbsdn.gif" width="20" height="20" border="0" alt="Bad" /> $post[badrank]
</if>
<if condition="$show['rate_helpfulanswer']">
<strong>$vbphrase[helpfulanswer_didyoufind]
$post[goodrank] <a href="./helpfulanswers.php?do=rate&postid=$post[postid]&rank=1" <if condition="$vboptions[disable_ajax] != 2"> onclick="return helpfulanswers_rate($post[postid], 1);" </if> rel="nofollow"> <img src="images/buttons/ha_thumbsup.gif" width="20" height="20" border="0" alt="Yes" /></a> |
$post[badrank] <a href="./helpfulanswers.php?do=rate&postid=$post[postid]&rank=0" <if condition="$vboptions[disable_ajax] != 2"> onclick="return helpfulanswers_rate($post[postid], 0);" </if> rel="nofollow"><img src="images/buttons/ha_thumbsdn.gif" width="20" height="20" border="0" alt="Yes" /></a>
</if>
<else />
<if condition="$post['totalrank']">
<phrase 1="$post[goodrank]">$vbphrase[helpfulanswer_x_found]</phrase>
</if>
<if condition="$show['rate_helpfulanswer']">
<strong>$vbphrase[helpfulanswer_didyoufind] <a href="./helpfulanswers.php?do=rate&postid=$post[postid]&rank=1">$vbphrase[helpfulanswer_yesidid]</a></strong>
</if>
</if>
<if condition="$show['helpfulvoted']"><strong>$vbphrase[helpfulanswer_thanks]</strong></if>
</div>
</if>
Not sure what my forum is using postbit or postbit_legacy anyway heres template
Ted S
03-04-2009, 03:00 PM
<if condition="$show['helpfulanswer']">
<div id="helpfulanswers_box_$post[postid]">
<br /><hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<if condition="$vboptions[helpans_neg]">
<if condition="$post['totalrank']">
<img src="images/buttons/ha_thumbsup.gif" width="20" height="20" border="0" alt="Good" /> $post[goodrank]
<img src="images/buttons/ha_thumbsdn.gif" width="20" height="20" border="0" alt="Bad" /> $post[badrank]
</if>
<if condition="$show['rate_helpfulanswer']">
<strong>$vbphrase[helpfulanswer_didyoufind]
<a href="./helpfulanswers.php?do=rate&postid=$post[postid]&rank=1" <if condition="$vboptions[disable_ajax] != 2"> onclick="return helpfulanswers_rate($post[postid], 1);" </if> rel="nofollow"> <img src="images/buttons/ha_thumbsup.gif" width="20" height="20" border="0" alt="Yes" /></a> |
<a href="./helpfulanswers.php?do=rate&postid=$post[postid]&rank=0" <if condition="$vboptions[disable_ajax] != 2"> onclick="return helpfulanswers_rate($post[postid], 0);" </if> rel="nofollow"><img src="images/buttons/ha_thumbsdn.gif" width="20" height="20" border="0" alt="Yes" /></a>
</if>
<else />
<if condition="$post['totalrank']">
<phrase 1="$post[goodrank]">$vbphrase[helpfulanswer_x_found]</phrase>
</if>
<if condition="$show['rate_helpfulanswer']">
<strong>$vbphrase[helpfulanswer_didyoufind] <a href="./helpfulanswers.php?do=rate&postid=$post[postid]&rank=1">$vbphrase[helpfulanswer_yesidid]</a></strong>
</if>
</if>
<if condition="$show['helpfulvoted']"><strong>$vbphrase[helpfulanswer_thanks]</strong></if>
</div>
</if>
Use this version instead.
Kaelon
03-07-2009, 07:11 PM
Ted,
Thank you for the great add-on. I have a question: I imported the product during installation, but my browser has basically stalled for the past few minutes at the "Importing Product, Please Wait..." dialogue, and my load has now shot up through the roof. How can I tell/test when this is done?
Did anything essential not get installed? How can I error-check? My community has around 1.4 million posts and several hundred forums. Thanks!
Kaelon
03-07-2009, 10:53 PM
Update: After a scary 7 minutes, everything was safely installed. :)
Ted S
03-08-2009, 05:15 AM
With a board that size it just took a few minutes to add the mysql fields. No errors should mean it's all good.
Ted S
03-09-2009, 12:10 AM
Working on version 1.6 for release this week which will enhance the top answers page and a few other things. If you have any feature requests or suggestions for other ideas please chime in...
kersti
03-09-2009, 06:14 AM
Not working - can't seem to get the options to show up in the posts so uninstalling
Simon Lloyd
03-10-2009, 02:53 PM
Ted you may be interested in this post http://www.vbulletin.com/forum/showpost.php?p=1703992&postcount=4 it's part of a discussion around marking helpful answers etc, i thought you might like to know as your mods may not work when VB4 is released. :)
Ted S
03-10-2009, 03:13 PM
Thanks for the link. As I understand Wayne Luke's comments there will no longer be a standalone page for calling up a post but there will still be posts as individual records to be edited (and rated).
I suspect 4.0 will mean a lot of rework for many mods but I don't think you'll see functionality limited or the end of this addon.... just some fun updates from all us coders.
Simon Lloyd
03-10-2009, 04:06 PM
Ok Ted, just didnt want you coding your next update only to see it fall by the wayside shortly after! :)
ragtek
03-10-2009, 04:09 PM
Found some hardcodet text:
line 90: $navbits = array('' => 'Most Helpful Answers');
Ted S
03-10-2009, 04:10 PM
I appreciate that a lot! I'm hoping that vb4 is similar enough to 3.8 to not require a ton of work but I'm not holding my breadth.
Ted S
03-10-2009, 04:10 PM
Found some hardcodet text:
line 90:
Thanks. This will be resolved in 1.6.0
DarkWarriorXII
03-18-2009, 01:23 AM
Hi Ted. I just installed, and it's only showing on the first post of each page. I tried searching and couldn't find a solution. Do you have any idea why this might be happening? Thanks.
Ted S
03-18-2009, 01:39 AM
I'd suspect you have some other changes conflicting. How modified is your site?
Spinball
03-18-2009, 10:12 AM
I have over 3,000 concurrent users online. Has anyone tested the performance of their forum with this mod installed when they have that number of active users?
DarkWarriorXII
03-18-2009, 12:24 PM
Well I have a good amount of mods, but none that I can see that would conflict with this one. Of course, I'm not as knowledgable with this stuff, so I might be wrong. :p
Ted S
03-18-2009, 02:02 PM
I have over 3,000 concurrent users online. Has anyone tested the performance of their forum with this mod installed when they have that number of active users?
there are a few big board sites using this although I don't know their volume levels. Keep in mind that while there are queries when someone votes under the default settings none are added to the showthread page... Instead there is a join on the existing query and some php conditionals.
I suspect the biggest issue will be installing the mod as it adds two fields to the post table which can take sometime if your site has a few million posts.
Spinball
03-18-2009, 05:25 PM
there are a few big board sites using this although I don't know their volume levels. Keep in mind that while there are queries when someone votes under the default settings none are added to the showthread page... Instead there is a join on the existing query and some php conditionals.
I suspect the biggest issue will be installing the mod as it adds two fields to the post table which can take sometime if your site has a few million posts.
8 and a half million. Might it be worth combining the two alterations to the post table into one query?
Ted S
03-18-2009, 05:52 PM
At 8.5 MM posts I'd actually suggest removing the table alter queries from the plugin entirely and running them via mySQL shell to avoid a timeout from your browser or the potential impact of a failed connection part way through.
DarkWarriorXII
03-18-2009, 06:49 PM
Okay I've tested some things and text other than $helpful_answers (for example, random text) will appear on every post when inserted where $helpful_answers should be. When using either automatic or manual insert mode, it still only shows on the first post of each page. This is also true on a default style I installed that has no customizations at all.
Spinball
03-19-2009, 08:21 AM
Is it at all possible to have this mod without altering any tables? Surely best practise would be not to alter the vB tables, but add new tables where needed?
Ted S
03-19-2009, 03:01 PM
There's no best practice I'm aware of to avoid editing tables. Counts are stored with the post table because that's what's already being called.
It's certainly possible to do just about any mod without altering existing tables but I chose to alter the ones that made sense to alter as opposed to increasing queries and load by adding new ones which have to joined in.
Ted S
03-19-2009, 03:02 PM
Okay I've tested some things and text other than $helpful_answers (for example, random text) will appear on every post when inserted where $helpful_answers should be. When using either automatic or manual insert mode, it still only shows on the first post of each page. This is also true on a default style I installed that has no customizations at all.
Please check your settings and let me know if you have enabled the mod to not show in the first post.
Spinball
03-19-2009, 03:23 PM
There's no best practice I'm aware of to avoid editing tables. Counts are stored with the post table because that's what's already being called.
It's certainly possible to do just about any mod without altering existing tables but I chose to alter the ones that made sense to alter as opposed to increasing queries and load by adding new ones which have to joined in.
Thanks for the reply. I'm of the feeling that it's probably not a good idea to alter the core tables of vBulletin even though so many hacks do it - including the immensely popular Post Thanks mod.
If the post table is absolutely huge like ours then it could possibly be argued that adding a couple of fields may have more detrimental effect than adding a new table and join element to the sql.
What drew me to your mod was the system they have on http://www.hotukdeals.com/
Ted S
03-19-2009, 03:55 PM
Definitely good points although I'm clearly not against to editing the tables for logical storage and felt that it was appropriate here as what I was storing was summary post information. My pet peeve is when mods use generic names on their edits causing future updates or other mods to conflict... which is why I tend to use longer and more obscure field names.
For a larger board having the data stored in another table may make more sense although I'm not sure which is better (holding two more fields or joining one more table). Any ideas of the performance difference?
This mod would be fairly simple to extend to use a different table but I'm just not sure it's worth the import routines and work versus expanding the feature-set.
Ted S
03-19-2009, 03:57 PM
I looked at the code to be sure my last statement is right and it is... If you just wanted to do core voting without some of the profile enhancements you'd be looking at 3 or 4 edits. To get every feature down to the logs and what not working it's a bit more but still nothing crazy.
DarkWarriorXII
03-19-2009, 06:44 PM
Please check your settings and let me know if you have enabled the mod to not show in the first post.
Ted, I have the Hide on First Post option enabled (set to Yes).
Ted S
03-19-2009, 06:46 PM
try disabling it and let me know what happens.
DarkWarriorXII
03-19-2009, 06:53 PM
It still only shows on the first post of each page.
Edit: I don't know if this will help you, but I installed this on another forum of mine that has next to no other mods installed and it also has the same problem.
Ted S
03-19-2009, 07:28 PM
Did you change any settings on that install?
Ted S
03-19-2009, 07:31 PM
Thanks for the reply. I'm of the feeling that it's probably not a good idea to alter the core tables of vBulletin even though so many hacks do it - including the immensely popular Post Thanks mod.
If the post table is absolutely huge like ours then it could possibly be argued that adding a couple of fields may have more detrimental effect than adding a new table and join element to the sql.
What drew me to your mod was the system they have on http://www.hotukdeals.com/
If I provided some code would you be interested in testing a version that used a seperate table for the data?
Ted S
03-19-2009, 10:04 PM
I have posted version 1.6.0 beta today which contains a few new features as well as some system updates.
- Added: Summary post ratings are now stored in a seperate table. This makes for a cleaner addon and avoids long install/ remove times for boards with over 1MM posts.
- Added: Sortable columns in top helpful posts page
- Added: Forum searching/ listing in top helpful posts page
- Changed: Hardcoded text in navbar to phrase
Because this update changes data and has only been tested on a few sites I'm marking it as beta and suggest testing the changes. New installs don't have any data to risk and are encouraged to use this version.
Please let me know if you encounter any errors.
DarkWarriorXII
03-19-2009, 10:25 PM
Did you change any settings on that install?
No, none were changed. I also added a clean skin and disabled what other mods were installed and the same thing happened.
mad@Max
03-19-2009, 11:52 PM
Ted S, how about phrased cpnav? Look in attach...
Ted S
03-20-2009, 01:09 AM
No, none were changed. I also added a clean skin and disabled what other mods were installed and the same thing happened.
Very odd. I've done two new installs with no issues at all. Can you take a screen shot of your settings and send it over?
Ted S
03-20-2009, 01:09 AM
Ted S, how about phrased cpnav? Look in attach...
Not planning to setup the whole admin for phrases at this point. If the addon gets to the size where a translation makes sense I'll look into that.
nascartr
03-20-2009, 03:37 AM
I've installed the new beta. I can view all helpful votes in the admin panel but none of them are marked in threads now. All new ratings are marked but old ones are not yet they show up in the admin panel.
Ted S
03-20-2009, 03:48 AM
So basically you're not seeing the old votes in threads now but you can see them in the admin log?
nascartr
03-20-2009, 03:50 AM
Yeah, when I do a search for rating history I can view everything through the admin side but nothing shows up in the posts now. Also the Helpful Posts Search link doesn't show anything anymore either.
nascartr
03-20-2009, 04:33 AM
Also the labels are not in order on the search page and do not really line up with the results.
http://diecastcrazy.com/community/helpfulanswers.php
Forum Title and Average Rating should be flip flopped.
Ted S
03-20-2009, 04:58 AM
Sounds like none of your votes got imported. When you did the upgrade did you see any lines about it updating posts?
I'll post an import script in a sec to get you fixed.
Ted S
03-20-2009, 05:07 AM
The attached script will resync your vote tables using the individual stored votes. Simply upload it to your admincp folder and manually run the script.
This can be run multiple times if you ever have issues with your votes.
nascartr
03-20-2009, 05:26 AM
The attached script will resync your vote tables using the individual stored votes. Simply upload it to your admincp folder and manually run the script.
This can be run multiple times if you ever have issues with your votes.
I got this database error when running the php file
Database error in vBulletin 3.8.1:
Invalid SQL:
SELECT COUNT(postid) as totalrank,SUM(goodrank) as goodrank,postid
FROM helpfulanswer
GROUP BY postid;
MySQL Error : Unknown column 'goodrank' in 'field list'
Error Number : 1054
Request Date : Friday, March 20th 2009 @ 02:24:38 AM
Error Date : Friday, March 20th 2009 @ 02:24:38 AM
Script : http://diecastcrazy.com/community/admincp/ha_revote.php
Referrer :
IP Address : 98.26.219.187
Username : racersimage
Classname : vB_Database
MySQL Version : 5.0.77-community
Ted S
03-20-2009, 05:42 AM
Sorry about that... Having an off night and referanced the wrong field.
Use this instead.
Ted S
03-20-2009, 05:42 AM
I also posted 1.6.1 beta which fixes the column issue you identified.
mad@Max
03-20-2009, 08:44 AM
Not planning to setup the whole admin for phrases at this point. If the addon gets to the size where a translation makes sense I'll look into that.
This will make translate is easy.
nascartr
03-20-2009, 01:50 PM
Sorry about that... Having an off night and referanced the wrong field.
Use this instead.
Now I get this error!
Database error in vBulletin 3.8.1:
Invalid SQL:
INSERT INTO helpfulpost SET postid = 616, totalrank = 1, goodrank = 1,;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
Request Date : Friday, March 20th 2009 @ 10:48:08 AM
Error Date : Friday, March 20th 2009 @ 10:48:08 AM
Script : http://diecastcrazy.com/community/admincp/ha_revote.php
Referrer :
IP Address : 98.26.219.187
Username : racersimage
Classname : vB_Database
MySQL Version : 5.0.77-community
nascartr
03-20-2009, 02:02 PM
Also the layout is still off on the search page.
http://diecastcrazy.com/community/helpfulanswers.php
Ted S
03-20-2009, 03:05 PM
I understand it will be easy but the work effort to make the admin translateable with just a few hundred installs doesn't make sense given that this is an english language forum. If the mod gets bigger I'll explore phrasing the entire backend.
nascartr
03-20-2009, 03:12 PM
Do you think you can figure out the ha_revote.php problem? I really appreciate your efforts! I tried going back to the old version but couldn't so I have to use the beta.
tpearl5
03-20-2009, 05:13 PM
Ted - I mentioned something similar in the 3.7 thread... Can you make it so the helpful answers data is displayed to guests, but are taken to the registration page upon clicking yes | no ?
I think this alone would drive registrations. People LOVE clicking on these type of links.
Also, does 1.6 work for 3.7?
Ted S
03-20-2009, 09:18 PM
Linking the guest to a login/ please register page would be simple. Of course their vote wouldn't be counted but they would end up back at the thread to vote again.
And yes, 1.6 will work with vb 3.7.
Ted S
03-20-2009, 09:21 PM
Now I get this error!
Looks like my off day isn't over! There's an extra comma in the import script. Will post an update just as soon as I'm at my computer (on the iPhone now).
DarkWarriorXII
03-20-2009, 09:29 PM
Very odd. I've done two new installs with no issues at all. Can you take a screen shot of your settings and send it over?
Here you go, Ted:
mad@Max
03-20-2009, 09:45 PM
There is nothing complicated there, in my attached file the code like on palm of your hand:)
Ted S
03-20-2009, 09:59 PM
Do you think you can figure out the ha_revote.php problem? I really appreciate your efforts! I tried going back to the old version but couldn't so I have to use the beta.
Here's the revised import script which will (hopefully) fix your issues.
nascartr
03-21-2009, 03:13 AM
Ok, thanks! That worked.
Next issue.
Other than the titles being in the wrong order on the search page, none of the sorts work.
http://diecastcrazy.com/community/helpfulanswers.php?order=ASC&sort=total
Everything is sorted in ascending by post ID on the serach page. I can't sort by anything else.
Ted S
03-21-2009, 03:56 AM
Hum. Looks like your template isn't updated to the latest version for some reason. I'll take a look at the sort code tomorrow.
In the meantime for the votes I'm seeing mostly 1 rating per thread. Does that seem right to you?
nascartr
03-21-2009, 04:27 AM
Hum. Looks like your template isn't updated to the latest version for some reason. I'll take a look at the sort code tomorrow.
In the meantime for the votes I'm seeing mostly 1 rating per thread. Does that seem right to you?
I tested with one of the rated posts and added my vote. The post went off the search page after I did that due to the sort I suppose sorting by # of ratings ascending. There's no way to sort descending though so I can't verify.
I believe if we could sort descending then you'd see lot of posts with multiple ratings.
Ted S
03-21-2009, 04:34 AM
Cool. I'll have an update for you in the morning (pacific time).
Ted S
03-21-2009, 04:36 AM
Actually try these files to see if it fixes your sort and column issue.
Upload the php file to your main forum folder.
nascartr
03-21-2009, 04:46 AM
Actually try these files to see if it fixes your sort and column issue.
Upload the php file to your main forum folder.
Ok, the column issue is fixed and I can still only sort in ascending order but it seems that everything can be sorted now, just not descending order.
http://diecastcrazy.com/community/helpfulanswers.php
nascartr
03-21-2009, 04:47 AM
Is there anyway to add arrows perhaps to sort ascending/descending. Maybe that's the issue because the category links are set to sort ascending.
Ted S
03-21-2009, 05:17 AM
Sure thing. Let's use this version of the template and script/
And sorry about all these changes, I clearly jumped the gun on this one.
Let me know if you have any other issues... I really appreciate your patience with getting this all sorted.
nascartr
03-21-2009, 12:50 PM
That did the trick! Thank you!
One more thing, in the next release do you think we could have pagination on the search page because the way it is now members can only see 25 helpful posts in ascending or descending order. They definitely can't see them all but with an option to go to other pages they could see every helpful post.
Ted S
03-21-2009, 02:38 PM
Sure.
Ted S
03-21-2009, 08:21 PM
Version 1.6.5 beta has been released. This is a bug update fixing a few issues with the beta.
- Fixes column sorting to the top helpful answers page
- Fixes searching the top helpful answers page
- Adds up/down sorting options the top helpful answers page
- Adds multiple pages to the top helpful answers page
This is still marked as beta although there's been more usage and I'm close to marking a stable release. For those of you not using the beta my appologies that the "updated" flag is being triggered... vBulletin.org does that every time a new zip file is uploaded.
nascartr
03-21-2009, 08:52 PM
Ok, installed the new beta. Where should the page links be on the search results page?
http://diecastcrazy.com/community/helpfulanswers.php
Ted S
03-21-2009, 10:43 PM
Sorry, didn't upload the right file. Please use 1.6.6 and you'll see the tabulation at the end of the page (see www.divematrix.com/helpfulanswers.php (http://www.divematrix.com/helpfulanswers.php) for example).
For anyone running the beta version who has not already resynced their votes there was an error with my upgrade script which may have caused you to lose your vote history. Please run the attached ha_revote.php script from your admincp folder which will recreate vote summaries for each post using raw vote counts. If you notice anything wrong with your vote summaries as shown in posts and the helpful answers page please let me know.
nascartr
03-21-2009, 10:55 PM
Ok, that worked! It deleted my votes again but I just ran the php file you posted yesterday. Thanks again for this great modification!
Glad the search page now shows the most rated at the top instead of least.
Ted S
03-21-2009, 11:01 PM
Ya. I noticed that when i was building in the page sorting and clearly fixed it right away.
The migration to the external post file has definitely been a pain but for the long haul it's a much better solution for sites in keeping alterations to the original vbulletin tables to a minimum and in optimizing load for larger sites.
Looking forward to more suggestions about functions I can add that will drive more votes and visibility. Thanks!
Spinball
03-22-2009, 07:45 AM
If I provided some code would you be interested in testing a version that used a seperate table for the data?
Yes I would. But I see you have already altered your core code. I think that's a much more professional approach.
One question. I would like to implement this mod into our bargain forums to be able to have a 'hot or not' type system (as seen at www.hotukdeals.com), with some kind of prominent indication of the 'hotness'... that would be heat :) of threads and the ability to sort by the heat of bargains. But at the same time I would like to use the thumbs up/thumbs down type of voting for replies so that threads with thousands of replies can also be sorted so that people can quickly see the most helpful ones.
Is it possible to have different voting types (i.e. essentially graphics) in different forums? And is it possible to quickly implement certain voting types into the required forums? E.g. with over 300 forums, I would like to be able to, for example, click a parent forum and specify that I want the hot or not type voting system in it and all its sub forums.
tpearl5
03-22-2009, 04:42 PM
Linking the guest to a login/ please register page would be simple. Of course their vote wouldn't be counted but they would end up back at the thread to vote again.
And yes, 1.6 will work with vb 3.7.
Could this be something that is added to the next beta? I can't quite figure out how to modify things to do it myself, other than manually adding a link in there. Can guests also see the ratings if there are any?
Ted S
03-22-2009, 05:10 PM
Could this be something that is added to the next beta? I can't quite figure out how to modify things to do it myself, other than manually adding a link in there. Can guests also see the ratings if there are any?
Sure thing. I was thinking of rather than taking them straight to the register page we could jump them to a guest vote message letting them know they have to register to continue. What do you think?
And yes, guests can see votes.
Ted S
03-22-2009, 05:18 PM
Yes I would. But I see you have already altered your core code. I think that's a much more professional approach.
What can I say... When I like an idea, I like it. :D
One question. I would like to implement this mod into our bargain forums to be able to have a 'hot or not' type system, with some kind of prominent indication of the 'hotness'...
So if I get you right the sum total of "good" posts would be used to determine hotness.... Or would you use the first post's rank only. First post is easier and would just require a JOIN on the existing FORUMDISPLAY page while the sum total would need some edits to the hack.
This could definitely be done although you'd have to decide how a thread is measured as hot. For example, is a thread with the most goodrankings hot or is it more than 100 good ones, 150? Etc...
A simple template conditional would show whatever graphic image you want once you sort out which data you want to use.
Is it possible to have different voting types (i.e. essentially graphics) in different forums?
Yes although the addon does not support this naively. But you could easily use a template conditional to change the images in select forums or to be more efficient and deal with larger numbers of forums, add a new option to the forums to control this.
And is it possible to quickly implement certain voting types into the required forums? E.g. with over 300 forums, I would like to be able to, for example, click a parent forum and specify that I want the hot or not type voting system in it and all its sub forums.
There's a bulk editor that allows you to enable this in all forums, certain forums, or all forums except certain forums. Nothing is in place to deal with forum hierarchy though so you can't pick 3 out of 4 top level categories or anything like that.
Sounds like an interesting feature you're working towards... Can't wait to see it in action!
Stoebi
03-22-2009, 05:23 PM
Hi
What do you think about an integration for blogs and or for visitor comments??
Ted S
03-22-2009, 05:30 PM
That would need a different mod as this is built to just track posts but similar code could definitely be used.
Ted S
03-22-2009, 05:53 PM
Version 1.6.7 beta has been released which adds one new feature allowing guests to see voting links. Once a guest clicks on the voting icon they are taken to a page prompting them to register. This feature is optional and disabled by default.
This is hopefully the final version of the beta with a stable release coming shortly.
tpearl5
03-23-2009, 03:21 PM
Thanks Ted - that works great!
tpearl5
03-23-2009, 04:16 PM
Highlighting the top rated post:
Step 1 - Set "Get Top Post per Thread" to on in your Helpful Answers settings.
Step 2 - Open your postbit or postbit_legacy template (whichever your forum uses)
Step 3 - Find all instances of class="alt1" and class="alt2"
Step 4 - At each instance add the following code directly after style="
<if condition="$thread[toppost] == $post[postid]">background-color:#CCCCCC;</if>
#CCCCCC is the color to highlight the post with. You may change this to another HTML Color Code
Step 5 - Repeat this for each instance (there may be as many as 5 depending on the template)
For example:
<td class="alt1" align="$stylevar[right]" style="<if condition="$thread[toppost] == $post[postid]">background-color:#CCCCCC;</if>border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
I see that if two posts have the same rating (in this case 1) the first one gets 'toppost'. Here's an example:
http://cellphoneforums.net/lg/t292640-lg-cookie-kp-500-lcd-screen-cracked.html
What do you think about a 'toppost threshold' or an option to 'make toppost' by the thread starter or admin ?
Also, is how many topppost's a user has something good to put in their profile/postbit?
Ted S
03-24-2009, 01:17 AM
I get what you're saying but more options means more load and I just don't see the advantage on that for the entire user base. Changing this youself would be easy.... just alter the sorting criteria in that query.
I'll look at the user stat for down the road although it's an intensive query given the way the data is stored.
tomawebdev
03-24-2009, 11:48 AM
Anyone have a french lang for this or plan to translate ?
Ted S
03-24-2009, 01:24 PM
I have not seen any translation packs for this but given how little text there really is I don't imagine it would be hard to do.
tpearl5
03-24-2009, 06:08 PM
I get what you're saying but more options means more load and I just don't see the advantage on that for the entire user base. Changing this youself would be easy.... just alter the sorting criteria in that query.
I'll look at the user stat for down the road although it's an intensive query given the way the data is stored.
Gotcha.
Do you think something like this this could be used to add a decoration to the thread in forumdisplay?
<if condition="$thread[toppost]"><img src="/toppost.gif"></if>
Ted S
03-25-2009, 02:35 AM
Forum Display doesn't get the top post (since there is no posts pulled in to the thread list). What are you trying to do exactly?
vbplusme
03-25-2009, 11:46 AM
Hello Ted,
I just tried to install 1.5.4 and got this error message (same a reported before, it flashed up on the screen and finished the install)
Parse error: syntax error, unexpected T_STRING in /home/public_html/admincp/plugin.php(1995) : eval()'d code on line 4
I uninstalled it and reinstalled and this time it stayed up on the screen so I could copy it.
I think its a problem and am wary to just let it run without know the cause of the error and fix it or understand its impact to my site.
BTW, as I said, its been reported before but has never been resolved as far as I can see.
TIA for your attention.
Ted S
03-25-2009, 01:58 PM
Give the 1.6 beta a try... It's pretty stable for sites upgrading and just fine for new ones from reports. If you still get the issue let me know.
tpearl5
03-25-2009, 02:54 PM
Forum Display doesn't get the top post (since there is no posts pulled in to the thread list). What are you trying to do exactly?
I want to indicate to the user that a top answer has been chosen in the thread from forumdisplay. (in this case figuring out which 'qustions' are 'answered')
Ted S
03-26-2009, 01:40 AM
Think you'd need a different mod for that... There's no end to voting with this mod thus the "top answer" could change every 15 seconds if you had a lot of votes coming in.
star88
03-27-2009, 08:06 AM
Hello Ted,
I just tried to install 1.5.4 and got this error message (same a reported before, it flashed up on the screen and finished the install)
Give the 1.6 beta a try... It's pretty stable for sites upgrading and just fine for new ones from reports. If you still get the issue let me know.
Hi,
Upgraded to 1.6 beta. Bug during install fixed now.
Ted S
03-27-2009, 11:10 PM
Great. How's it working for you?
kapoor22
03-28-2009, 04:09 PM
Thank you Ted. This a Great mod!
I am on vb version 3.7.4. I have tried importing this plug-in version 1.5.4 for vb 3.7 and plug-in version 1.6.7 for vb 3.8. Either way I get the following error message when I import product-helpful_answers.xml
Parse error: syntax error, unexpected T_STRING in /root/forum/admincp/plugin.php(1986) : eval()'d code on line 4
After this message it says that the import process has completes successfully. And then I goto options to enable the plug-in and do bulk update to enable this in every forum.
After this, the forum post are not showing the Post rating icons and information. I cannot see anything in the post. Just in case if it helps, I have 'Post Thank you' mod installed.
Could you please help to fully enable this mod so that it could the way designed it to work. Your help is very much appreciated.
Thanks,
Kapoor
kapoor22
03-28-2009, 04:38 PM
Thanks Ted, I was able to figure out. Kind of makes me feel dumb to as it took 3 hours to figure this out.
I had enabled the first option 'Manual Template Placement' in 'Helpful Answers Settings' to 'Yes'.
Great Mod! Thanks again.
kapoor22
03-28-2009, 04:59 PM
Is there a way to exclude a 'Usergroup' from this rating system. Say excluding a custom usergroup 'Lawyers' from the post rating system?
Your help is very much appreciated.
Thanks,
Kapoor
kapoor22
03-28-2009, 05:09 PM
Is there a way to exclude a 'Usergroup' from this rating system. Say excluding a custom usergroup 'Lawyers' from the post rating system?
Your help is very much appreciated.
Thanks,
Kapoor
Got it, added following condition at the beginning of the template 'helpful_answers'
<if condition="($post[usergroupid]-xx) == 0">
Thanks!
.
Simon Lloyd
03-28-2009, 07:13 PM
Ted, i uploaded your beta as per instructions, checked the helpful answers page and all helpfule posts have gone?, so i rated a post and that now shows but not the others.....any ideas?
Simon Lloyd
03-28-2009, 07:48 PM
Disregard the above post....i looked back through this thread and ran the ha_revote.php found here at Post 413 (https://vborg.vbsupport.ru/showpost.php?p=1773736&postcount=413)
Ted S
03-29-2009, 06:26 AM
Great! Let me know how 1.6 works for you.
Simon Lloyd
03-29-2009, 11:36 AM
Ted, is it possible to change a couple of things?, when viewing the helpful answers page a rated thread shows like thisPost 258689 in thread: COUNTbut the link (in this case COUNT) takes you directly to a single post which happens to be the post it mentions i.e 258689. Could we possible have the Post xxxxx as a link to the post and the in thread link COUNT to link to the entire thread rather than a single post? maybe rather than have Post xxxxx in...etc how about This Post (as a link) in thread COUNT (as a link) or would that be too many queries?
As an addition, would it be possible to have a date show for when it was last tagged as helpful?
nascartr
03-29-2009, 03:15 PM
Good ideas Simon.
Ted S
03-29-2009, 04:06 PM
Ted, is it possible to change a couple of things?, when viewing the helpful answers page a rated thread shows like thisbut the link (in this case COUNT) takes you directly to a single post which happens to be the post it mentions i.e 258689. Could we possible have the Post xxxxx as a link to the post and the in thread link COUNT to link to the entire thread rather than a single post? maybe rather than have Post xxxxx in...etc how about This Post (as a link) in thread COUNT (as a link) or would that be too many queries?
As an addition, would it be possible to have a date show for when it was last tagged as helpful?
That's all actually pretty straight forward. I've posted 1.6.8 to this post which changes the post link to the post within the thread (which makes a lot of sense).
For the date, I assumed you meant on the top helpful answers page as well. I've added a column with this data.
Ted S
03-29-2009, 04:12 PM
Today I released 1.7.0 stable.
This update incorporates two small changes adding a last vote column to the top helpful posts page and linking top helpful posts to their full thread to put them in context.
More importantly however 1.7.0 marks the end of the 1.6.x beta series which has been up for a few weeks.
With 1.7 there's a complete change in how post vote summaries are stored (summaries contain the total votes, good votes and last vote time). This change moves away from using the main post table and adds a new table just for helpful answers. For most sites this won't mark a notable difference but for larger sites it will reduce load and limit the number of edits to the post table.
1.7.0 is designed to convert anyone from 1.5.x without notable impact but if you do find yourself missing votes simply run the script ha_revote.php as found in the tools & samples post (https://vborg.vbsupport.ru/showpost.php?p=1733465&postcount=2) and your vote history will be resynced.
I look forward to hearing all of your suggestions and comments for 1.8!
Simon Lloyd
03-29-2009, 04:21 PM
That's all actually pretty straight forward. I've posted 1.6.8 to this post which changes the post link to the post within the thread (which makes a lot of sense).
For the date, I assumed you meant on the top helpful answers page as well. I've added a column with this data.Thanks for taking those on board Ted, much appreciated, however i just upgraded to 1.7.0 as 1.6.8 wasn't available :( but you haven't added those things to 1.7 :(:(
Any chance of adding it or mailing it or.........? :)
Simon Lloyd
03-29-2009, 04:42 PM
My mistake Ted, 1.7 does have those things, it's just at first glance it didn't seem to!
How can i get rid of Post 228819 in thread:? as for me it seems enough to just have the thread title and a link to it.
Loller
03-29-2009, 05:19 PM
Ted S, thank you for this great (!) mod. Can u add in 1.8.0 ability to hide lowest rated post?
Ted S
03-29-2009, 05:24 PM
My mistake Ted, 1.7 does have those things, it's just at first glance it didn't seem to!
How can i get rid of Post 228819 in thread:? as for me it seems enough to just have the thread title and a link to it.
You can edit the bit template and remove this from the HTML. If you need help let keep know.
Ted S
03-29-2009, 05:27 PM
Ted S, thank you for this great (!) mod. Can u add in 1.8.0 ability to hide lowest rated post?
Just hide the lowest post or maybe more control...
- hide posts that are negative
- set a min votes before hiding
- let a user unhide
Simon Lloyd
03-29-2009, 06:01 PM
Ted, again thanks for the reply, i can't find a bitfield for helpful answers, i am capable of editing a template if you can let me know which one :)
tpearl5
03-29-2009, 06:33 PM
Think you'd need a different mod for that... There's no end to voting with this mod thus the "top answer" could change every 15 seconds if you had a lot of votes coming in.
How about just an indication (in the forum the thread is in) if a thread has votes in it at all?
Ted S
03-29-2009, 08:57 PM
How about just an indication (in the forum the thread is in) if a thread has votes in it at all?
Been chewing over how to make this useful... Maybe a column with the total or avg post rank?
Ted S
03-29-2009, 08:59 PM
Ted, again thanks for the reply, i can't find a bitfield for helpful answers, i am capable of editing a template if you can let me know which one :)
Sorry not a bitfield but the template bit. I'm on my iPhone but I think the name is helpful_answer_bit or something along those lines.
Simon Lloyd
03-30-2009, 05:37 AM
I edited helpful_answers_top_bit, thanks Ted :)
andreamarucci
03-31-2009, 08:58 AM
Fantastic, just one questions
From my settings
Enable Most Helpful Answers
Displays a page of the top answers (posts) based on overall votes.
Where is that page? How can I access it?
Thanks!
Ted S
03-31-2009, 09:36 AM
It's found at helpfulanswers.php
andreamarucci
04-01-2009, 07:10 PM
thanks!
azher
04-01-2009, 07:37 PM
Hey Ted,
Wow...this looks amazing. We recently rolled out vbExperience on our community....has anyone asked you about using its "Custom Data Provider" framework for a plug-in?
Here's a link if you don't have it handy:
https://vborg.vbsupport.ru/showthread.php?t=199556
Ted S
04-02-2009, 03:38 PM
Wow...this looks amazing. We recently rolled out vbExperience on our community....has anyone asked you about using its "Custom Data Provider" framework for a plug-in?
Nope
HaZe_X
04-02-2009, 09:07 PM
Maybe Im not understanding something, but When its a top rated post say I want it to be the color blue, I add this this code in postbit_legacy, but where?
<if condition="$threadinfo[toppost] == $post[postid]">This is the top rated post!</code>
Ted S
04-03-2009, 01:46 AM
You can add it to the <td> cell you wish to modify.
For example:
<td class="alt1" <if condition="$threadinfo[toppost] == $post[postid]">style="background-color:blue;"</if> >
Loller
04-03-2009, 05:33 AM
Just hide the lowest post or maybe more control...
- hide posts that are negative
- set a min votes before hiding
- let a user unhide
Of course, with all these control funtions with defining it over admincp.
If it's possible, this will be VERY good!
Capper5016
04-04-2009, 06:12 AM
I added a link to the /helpfulanswers.php page, however I changed the navbar link to "Best Posts" and want to do the same thing on the /helpfulanswers.php page.... is it a phrase i change, or is changing it from "Helpful Answers" to "Top Posts" or "Best Posts" even possible?
http://forum.masdebaters.com/helpfulanswers.php
* I'm talking about the "Helpful Answers" at the top left, right above the navbar
Ted S
04-04-2009, 06:31 AM
Every text line is a phrase that can be changed in the phrase manager.
Capper5016
04-04-2009, 06:40 AM
Ted, Can you maybe tell me which one it is? I searched the phrases, and tried changingall of them, and it didnt change anything for me.
BSMedia
04-04-2009, 06:53 AM
No matter what I change the 'Rating Display' option to, its always text. Anyone else have this problem or know a fix?
Ted S
04-04-2009, 04:56 PM
No matter what I change the 'Rating Display' option to, its always text. Anyone else have this problem or know a fix?
Check that your template helpful_answer isn't modified.
Ted S
04-04-2009, 04:57 PM
The phrase is named helpfulanswer_mosthelpful
Milez
04-04-2009, 09:33 PM
First of all a huge round of applause for both this awesome plugin and his work on many others. You rock Ted :)
Now to an issue I (and likely others) have. Concerning highlighting the top rated post with this code in all instances of class="alt1" or class="alt2" in your postbit template:
<if condition="$thread[toppost] == $post[postid]">background-color:#CCCCCC;</if>
This works fine. Unfortunately it has 2 unusual problems that make it unusable (at least for me):
1. If you click edit on the post, you lose the BG color changes.
2. if you receive a PM from a user with a high rated post, the BG color will appear. Very strange as I understand the if conditional but not sure why this occurs :/
Feel free to PM Ted and I could show you this on my dev machine.
Milez
04-04-2009, 09:35 PM
Hmm perhaps an 'if page is Showthread' conditional is needed to solve no. 2. Not so sure about 1 though.
Ted S
04-05-2009, 04:49 AM
Interesting stuff.
Edit post I don't think I can do much about and of course it's only something seen in select instances.
For the second issue add AND THIS_SCRIPT == 'showthread' to the conditional.
mohammad6006
04-06-2009, 01:26 PM
how can i enable this plugin just for one forum?
Ted S
04-06-2009, 06:11 PM
how can i enable this plugin just for one forum?
by default this is off in all forums so you'd just want to enable it in one.
Milez
04-06-2009, 06:40 PM
Ted just wanted to confirm for you that AND THIS_SCRIPT == 'showthread' fixes the issue with the PMs as it should. So for anyone else background colors for highlighting top post can be like:
<if condition="$thread[toppost] == $post[postid] AND THIS_SCRIPT == 'showthread'">background-color:#CCCCCC;</if>
Do you have any idea what file is being called when posts are edited? Did anyone else get around the background color changes not taking effect after a post edit?
Ted S
04-06-2009, 10:41 PM
When a post is edited inline it's an ajax javascript call so there is no script associated... it's all javascript.
Quantnet
04-07-2009, 03:36 AM
Good stuff, Ted
I have been using 1.5.4 for a while and only get to play with the latest version until now.
When I tried to use ha_import to import the thanks mod to this, it ran halfway and got this error
Invalid SQL:
UPDATE post SET totalrank=totalrank + 1,
goodrank=goodrank + 1 WHERE postid = 548;
MySQL Error : Unknown column 'totalrank' in 'field list'
Error Number : 1054
mohammad6006
04-07-2009, 10:25 AM
by default this is off in all forums so you'd just want to enable it in one.
no
i say another thing
i want this plugin just work for one section
for example on this forum we have General vBulletin Discussions and Programming Discussions
i want this plugin enable for Programming Discussions and no need this plugin in other forums
xcuz for bad english
Ted S
04-07-2009, 05:18 PM
no
i say another thing
i want this plugin just work for one section
for example on this forum we have General vBulletin Discussions and Programming Discussions
i want this plugin enable for Programming Discussions and no need this plugin in other forums
xcuz for bad english
Like I said, you can enable it in just one forum.
Ted S
04-07-2009, 05:19 PM
Good stuff, Ted
I have been using 1.5.4 for a while and only get to play with the latest version until now.
When I tried to use ha_import to import the thanks mod to this, it ran halfway and got this error
Invalid SQL:
UPDATE post SET totalrank=totalrank + 1,
goodrank=goodrank + 1 WHERE postid = 548;
MySQL Error : Unknown column 'totalrank' in 'field list'
Error Number : 1054
I think you're using the wrong utility script.
Quantnet
04-07-2009, 09:39 PM
No, I only downloaded and used ha_import.php and run it as instructed.
nascartr
04-08-2009, 03:01 AM
I received that error in one of the first importers Ted uploaded, it was eventually fixed in a new attached ha_import in a later post.
Ted S
04-08-2009, 01:21 PM
I received that error in one of the first importers Ted uploaded, it was eventually fixed in a new attached ha_import in a later post.
Good point. Be sure and use the version in the first post... I will remove any others out there
Quantnet
04-08-2009, 08:29 PM
Download ha_import.php again from the second post. Ran and the same issue
Added record for post 35309 to log.
Added record for post 35219 to log.
Added record for post 35356 to log.
Added record for post 35375 to log.
Added record for post 34935 to log.
Database error in vBulletin 3.8.2:
Invalid SQL:
UPDATE post SET totalrank=totalrank + 1,
goodrank=goodrank + 1 WHERE postid = 548;
MySQL Error : Unknown column 'totalrank' in 'field list'
Error Number : 1054
Request Date : Wednesday, April 8th 2009 @ 05:25:17 PM
Error Date : Wednesday, April 8th 2009 @ 05:25:18 PM
Script : http://www.xxx.xxx/forum/admincp/ha_import.php
Updating post rating counters:
Ted S
04-09-2009, 01:09 AM
As noted in https://vborg.vbsupport.ru/showpost.php?p=1733465&postcount=2 ha_import.php is designed to import data from the thank you addon. To update you can run ha_revote.php. This is only needed if you have errors with the script.
hilfe-forum
04-09-2009, 09:30 AM
Buttons only show in first post... please help
Quantnet
04-09-2009, 12:53 PM
I edited the template to show the rating in Digg style
It does not show the Yes|No part, only the number.
For example, if a post has 10 helpful votes, then it simply shows +10. It should show +10 YES|NO
If a post has 0 helpful vote and 1 unhelpful vote, then it shows +0. It should show -1 YES|NO
Ted S
04-10-2009, 03:10 AM
I edited the template to show the rating in Digg style
It does not show the Yes|No part, only the number.
For example, if a post has 10 helpful votes, then it simply shows +10. It should show +10 YES|NO
If a post has 0 helpful vote and 1 unhelpful vote, then it shows +0. It should show -1 YES|NO
Sounds like your edits removed the links. You'll want to get a fresh copy of the template and add those back in.
Ted S
04-10-2009, 03:11 AM
Buttons only show in first post... please help
What options do you have enabled?
Quantnet
04-10-2009, 11:18 AM
Ted,
Look at the instruction on your #2 post about Digg edit. There is no Yes|No part. It will always display the + and good rank
<if condition="$post['totalrank']">
+ $post[goodrank]
</if>
Ted S
04-10-2009, 05:56 PM
Ted,
Look at the instruction on your #2 post about Digg edit. There is no Yes|No part. It will always display the + and good rank
<if condition="$post['totalrank']">
+ $post[goodrank]
</if>
That's correct but where you put that is what matters. You need to be sure you have not removed the voting section when you modified the code. Voting is controlled by another snippet of code which exists after the rating display.
compuminus
04-11-2009, 09:26 PM
I am having an issue where a duplicate post was created (in the middle of the thread) when one of my admins just voted on the post. The really odd part is that this duplicate post has the same post ID, so I cannot delete it without deleting them both (using the ordinary menus). This is a pretty big problem if it proves to be more widespread.
I am running vB 3.8.0 with the thumbs up/down option and otherwise default settings. When I temporarily disabled this mod, the duplicate post disappeared.
tpearl5
04-11-2009, 09:34 PM
Ted - what do you think about sending the user a notification (PM) when they get a good helpful rating? I found this, https://vborg.vbsupport.ru/showthread.php?t=162083 but I can't seem to get it to send pm's correctly when 'reputation' is given.
Ted S
04-11-2009, 09:46 PM
I am having an issue where a duplicate post was created (in the middle of the thread) when one of my admins just voted on the post. The really odd part is that this duplicate post has the same post ID, so I cannot delete it without deleting them both (using the ordinary menus). This is a pretty big problem if it proves to be more widespread.
I am running vB 3.8.0 with the thumbs up/down option and otherwise default settings. When I temporarily disabled this mod, the duplicate post disappeared.
Very strange indeed. Which version of the mod are you running and have you upgraded? Also is this a single incident as far as you know?
If you can send me the url to the thread.
Ted S
04-11-2009, 09:47 PM
Ted - what do you think about sending the user a notification (PM) when they get a good helpful rating? I found this, https://vborg.vbsupport.ru/showthread.php?t=162083 but I can't seem to get it to send pm's correctly when 'reputation' is given.
Could be done fairly easily but it's a lot of PMs potentially going out...
compuminus
04-11-2009, 09:57 PM
Very strange indeed. Which version of the mod are you running and have you upgraded? Also is this a single incident as far as you know?
If you can send me the url to the thread.
Version 1.7.0. This is the first version I ever installed. It is the only incident, but it happened within an hour of making the mod operational, so I would expect that it could happen again. I'll PM you the thread info and link.
tpearl5
04-11-2009, 10:00 PM
Could be done fairly easily but it's a lot of PMs potentially going out...
True - any ideas for notifying the user that they got a helpful answer/reputation?
Ted S
04-11-2009, 10:43 PM
True - any ideas for notifying the user that they got a helpful answer/reputation?
I could look at making something to work with the notifications box I suppose.
Nitro212
04-11-2009, 11:21 PM
How do I edit the language?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.