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
packetattack
09-15-2010, 02:33 AM
Can you list what other mods you have installed?
Sending you a PM on this.
Thanks,
Ted S
09-16-2010, 01:24 AM
Sending you a PM on this.
Thanks,
Do you know what line the error reports to be on?
packetattack
09-16-2010, 05:13 PM
Do you know what line the error reports to be on?
Line 498.
Thanks.
Simon Lloyd
09-19-2010, 08:59 PM
Ted, wonder if you could help, i have my HA table here http://www.thecodecage.com/forumz/helpfulanswers.php, i would like to do just two things:
1) Left align the Forum Ttiles so they look smarter
2) add a column (if possible) for the Author of the post that was marked helpful, so if i was marking the post before mine helpful it would look like this on the table:
Posts----------------Forum --------Title-------Author----- Good Ratings --- Total Ratings----Last Vote
Helpful answer-----This one-------HA's-------Packetattack-----1 -------------- 100 ----------Today
Obviously without the dotted lines, had to use those for layout :)
If the above is possible, do i have to and how do i rebuild the table without any data loss?
apokphp
09-20-2010, 12:49 AM
Is it possible to rename "Helpful" to "Quality"? If so, how?
"Helpful" wouldn't be appropriate for my debate forum. "Quality" is would be the applicable term.
Ted S
09-20-2010, 02:54 AM
Is it possible to rename "Helpful" to "Quality"? If so, how?
"Helpful" wouldn't be appropriate for my debate forum. "Quality" is would be the applicable term.
You can rename through the phrase manager.
Simon Lloyd
09-23-2010, 07:41 AM
Ted, wonder if you could help, i have my HA table here http://www.thecodecage.com/forumz/helpfulanswers.php, i would like to do just two things:
1) Left align the Forum Ttiles so they look smarter
2) add a column (if possible) for the Author of the post that was marked helpful, so if i was marking the post before mine helpful it would look like this on the table:
Posts----------------Forum --------Title-------Author----- Good Ratings --- Total Ratings----Last Vote
Helpful answer-----This one-------HA's-------Packetattack-----1 -------------- 100 ----------Today
Obviously without the dotted lines, had to use those for layout :)
If the above is possible, do i have to and how do i rebuild the table without any data loss?
Hi Ted any comment, help or advice with this? :)
I'm working on a custom member display within the footer template. Is there a way to display the $helpfulposts[goodranks] information into that template? I am not 100% familiar with vB's plug-in system, I'm assuming that info will only fire with the hook it's associated with? I did try a number of different things for an hour or two. I've seen my share of white pages so I thought I might ask :erm::up:
Ted S
09-24-2010, 02:29 AM
Hi Ted any comment, help or advice with this? :)
Not sure where to start... You would need to add a few columns, possibly some calculations to the query to get all the data out, that's the fun part (figuring out what you need out). Formatting is just a matter of editing the table output.
How's your familiarity with vB4 code?
Ted S
09-24-2010, 02:30 AM
I'm working on a custom member display within the footer template. Is there a way to display the $helpfulposts[goodranks] information into that template? I am not 100% familiar with vB's plug-in system, I'm assuming that info will only fire with the hook it's associated with? I did try a number of different things for an hour or two. I've seen my share of white pages so I thought I might ask :erm::up:
The footer? What information are you specifically trying to get out? Data on the user (as in the person viewing the page) or a single post?
Just the total number of posts other members voted "yes, this post was helpful" on. I'm thinking its the same data as displayed in the member profile block. I thought it was what $helpfulposts[goodranks] displays, but I could be wrong.
IE: Username has '5' helpful posts.
Basically, I am just trying to show the information $helpfulposts[goodranks] displays in another template other than member profile.
Simon Lloyd
09-25-2010, 02:22 PM
Not sure where to start... You would need to add a few columns, possibly some calculations to the query to get all the data out, that's the fun part (figuring out what you need out). Formatting is just a matter of editing the table output.
How's your familiarity with vB4 code?vB4? haven't touched it, it seems far too buggy to entertain it at the mo, anyway i really like the flexibility and mods that i have for vB3.8, it's took me quite a while to be comfortable messing with the templates of that :)
I'm not sure i follow you with the calculations, you have already done those for number of votes, all im looking to do is add the author of the post that has been marked helpful in helpfulanswers.php
I know how to show the username for the post but not picking up the post id<if condition="$post[userid]"><a href="member.php?$session[sessionurl]u=$post[userid]" target="_blank">$post[username]</a><else />$post[username]</if>but we would need to pick up the id of the post that was found helpful, as for writing queries, well i'd have more success platting fog!
Do you have time to help with this? you can pm me with a quote if you like :)
Simon Lloyd
09-25-2010, 02:56 PM
Ted, just looking at the helpful_answers_topbit template it looks as though i could just do this
<td class="alt1"><!-- phrase 1="$helpfulanswer[postid]" --><!-- $vbphrase[helpfulanswer_top] --><!-- /phrase --> <a href="./showthread.php?p=$helpfulanswer[postid]#post$helpfulanswer[postid]">$post[username]</a></td>
but, adding that doesn't show in the columns and messes the header ro of helpfulanswers.php and i cant see where to add a column other than there!
yotsume
09-25-2010, 06:41 PM
Sure would be nice to have this for vbBlog. Any chance?
Ted S
09-26-2010, 12:11 AM
Sure would be nice to have this for vbBlog. Any chance?
Someone is welcome to extend it, I am supporting vB 3 but not adding significant features for it
Ted S
09-26-2010, 12:12 AM
Ted, just looking at the helpful_answers_topbit template it looks as though i could just do this
<td class="alt1"><!-- phrase 1="$helpfulanswer[postid]" --><!-- $vbphrase[helpfulanswer_top] --><!-- /phrase --> <a href="./showthread.php?p=$helpfulanswer[postid]#post$helpfulanswer[postid]">$post[username]</a></td>
but, adding that doesn't show in the columns and messes the header ro of helpfulanswers.php and i cant see where to add a column other than there!
That's the individual row, there's another template, helpful_answers which controls the page the rows display in. You can only call fields that the page has access too, new items you want to add have to be added to the helpfulanswers.php page to become part of the query
Simon Lloyd
09-26-2010, 10:53 AM
Ted again thanks for the reply but beyond template edits i'm out of my depth :)
symptome
10-02-2010, 10:34 AM
I deinstalled it. But I still have a section for helpful answer system in my admin area (menu on the left hand side). Why?
How to deinstall completely?
Thanks
Do you still have the helpfulanswers.php file in your admincp directory? If you do, remove it and all other files associated with the modification.
symptome
10-02-2010, 11:35 AM
Thanks for the reply. It worked.
No problem symptome. That's a rule of thumb for most if not all modifications...after uninstalling, remove all "mod" related files :):up:
Taringa! CS
10-20-2010, 09:38 AM
Hi
I'm getting Parse error: syntax error, unexpected $end in /foros/helpfulanswers.php on line 498
I uploaded files twice for recheck...
Taringa! CS
10-20-2010, 09:46 AM
And another question... is it possible to show members who liked posts insted of "1 members found this post helpful. "
I mean
"user1, user2, user3 found this post helpful.
Thomas P
10-24-2010, 09:26 PM
I'm getting Parse error: syntax error, unexpected $end in /foros/helpfulanswers.php on line 498
Same here, when voting the error appears inline instead of the rating question.
cowcowcow
10-28-2010, 12:37 PM
The guys getting the parse syntax error, download the file here
https://vborg.vbsupport.ru/showpost.php?p=1976983&postcount=1335
i used it and it worked perfectly after that :)
Thomas P
10-28-2010, 05:12 PM
The guys getting the parse syntax error, download the file here
https://vborg.vbsupport.ru/showpost.php?p=1976983&postcount=1335
Thanks, this does indeed fixes also the error I received! Great :)
BR_Advocate
10-31-2010, 02:37 PM
Sorry if this has already been answered, but I have been searching for a couple of hours now, and d cannot find anything similar to my issue. My Most Helpful Answers page is giving strange results:
123273
I am using the 10-point system.
Any ideas?
arash52
11-02-2010, 03:33 PM
hi
i have problem
when i vote this line apper :
Parse error: syntax error, unexpected $end in /home/mysite/public_html/forum/helpfulanswers.php on line 498
what can i do?
New Joe
11-03-2010, 05:17 AM
I get this error:
Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in [path]/helpfulanswers.php on line 404
furnival
11-09-2010, 01:13 PM
Very cool and worked straight out the box. Nominated for MOTM. Thanks
Simon Lloyd
11-09-2010, 05:34 PM
I get this error:
New Joe, you need to ask your host to recomapile Apache with cURL enabled or simply turn off the reporting as per the instructions.
biggazillakilla
11-09-2010, 06:36 PM
Ted, I'm having some trouble, and I'm trying to figure out what's gone wrong. I'm a bit confused at first because the 2.0.5 file install.html says:This article and its associated code was updated on July 16, 2009
Version: 1.9.0
vB Version: 3.7/3.8Also, the ZIP contains two folders. They're not exactly the same, so I'm not sure which to install.
I'm going to try from the beginning to see whether that fixes my problems.
And thanks for your mods over the years. I've used several of them and am very thankful. :)
Here's the error message I'm receiving:Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bootstrap.php(1146) : eval()'d code on line 86
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: helpful_answers in [path]/includes/functions.php on line 3932
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: helpful_answers in [path]/includes/functions.php on line 3932
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: helpful_answers in [path]/includes/functions.php on line 3932
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: helpful_answers in [path]/includes/functions.php on line 3932
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: helpfulanswers_javascript in [path]/includes/functions.php on line 3932
Parse error: syntax error, unexpected T_STRING in /home/mysite/public_html/forums/showthread.php(2176) : eval()'d code(3) : eval()'d code on line 3If it helps, I always rename my admin control panel from admincp to something else.
Thanks again.
Alex Dumitru
11-15-2010, 12:38 PM
I'm having the same problem. I'm using version 4.0.8 and I've tried both 1.9.5 and 2.0.5
Ted S
11-16-2010, 02:13 AM
I'm having the same problem. I'm using version 4.0.8 and I've tried both 1.9.5 and 2.0.5
This mod is for 3.8... you need the 4.0.x version
Ted S
11-16-2010, 02:14 AM
Ted, I'm having some trouble, and I'm trying to figure out what's gone wrong. I'm a bit confused at first because the 2.0.5 file install.html says:Also, the ZIP contains two folders. They're not exactly the same, so I'm not sure which to install.
I'm going to try from the beginning to see whether that fixes my problems.
And thanks for your mods over the years. I've used several of them and am very thankful. :)
Here's the error message I'm receiving:If it helps, I always rename my admin control panel from admincp to something else.
Thanks again.
You need to use the 4.0.x version on 4.x...
biggazillakilla
11-16-2010, 03:41 PM
You need to use the 4.0.x version on 4.x...:o
Embarrassing. Thanks, Ted. I've installed the right version. (I think I've had this mod tagged for a couple of years.)
Ted S
11-18-2010, 02:36 AM
:o
Embarrassing. Thanks, Ted. I've installed the right version. (I think I've had this mod tagged for a couple of years.)
No worries!
bada_bing
11-23-2010, 06:30 PM
How can I correct this issue that when members clicks the "Members of mysite have rated post as the most helpful. Skip right to it!" get redirected to a white page that says "Page not found"
They url they get redirected to is http://www.mysite.com/forums/-post.html
I am running vbseo which I am assuming this is the cause but not sure how to fix it.
BR_Advocate
11-27-2010, 12:15 PM
Bump.
Ted, any ideas? Unless, someone can help me figure this out, I'll need to uninstall. It is useless for me as is.
This may be related, we ran the scripts:
UPDATE post SET goodrank = '', totalrank = '';
DELETE FROM helpfulanswer;
And it returned the following:
An error occurred while attempting to execute your query. The following information was returned.
error number: 1054
error desc: Unknown column 'goodrank' in 'field list'
Again, any ideas? Thanks.
Sorry if this has already been answered, but I have been searching for a couple of hours now, and d cannot find anything similar to my issue. My Most Helpful Answers page is giving strange results:
123273
I am using the 10-point system.
Any ideas?
Simon Lloyd
11-27-2010, 12:35 PM
Use the tools provided at the bottom of this post https://vborg.vbsupport.ru/showpost.php?p=1733465&postcount=2 depending on the version you are using.
BR_Advocate
11-28-2010, 06:48 PM
Use the tools provided at the bottom of this post https://vborg.vbsupport.ru/showpost.php?p=1733465&postcount=2 depending on the version you are using.
I ran the ha_revote.php script from the admincp folder. However, I cam still getting ratings of 800%, 900%, 1000%, etc. The script did not apprear to correct the problem. Any other ideas? Thanks.
Simon Lloyd
11-28-2010, 07:10 PM
What's your site url?
BR_Advocate
11-28-2010, 07:52 PM
What's your site url?
It is Boxsterregister.org. However, it is a restricted site. I'll PM you with logon information.
Thank you.
Simon Lloyd
11-28-2010, 08:29 PM
Just took a look, what version of HA are you using?, have you re-uploaded all files via ftp in ASCii mode and overwritten old ones? then run the appropriate repair module here and lastly update your counters in admincp>maintainance
Other than that you wil have to wait for Ted as it may be an interaction with one of your other mods.
BR_Advocate
11-28-2010, 08:36 PM
Just took a look, what version of HA are you using?, have you re-uploaded all files via ftp in ASCii mode and overwritten old ones? then run the appropriate repair module here and lastly update your counters in admincp>maintainance
Other than that you wil have to wait for Ted as it may be an interaction with one of your other mods.
I seemed to have fixed it. I had to check the Enable Profile Voting Stats - Ten Point Scale. Once that was done, the rating came back as 1-10 and not in percentages.
Thanks for your help.
Simon Lloyd
11-28-2010, 08:38 PM
Lol...errr ok, glad you're sorted anyway :)
jl255
11-30-2010, 07:52 AM
hi, any possibility of addressing my issue of preventing reputation farming by limiting frequency of members from liking posts of a specific member?
otherwise, we have members who just farm reputation by getting friends to like ALL their posts.
tks!
Ted S
12-03-2010, 05:26 AM
hi, any possibility of addressing my issue of preventing reputation farming by limiting frequency of members from liking posts of a specific member?
otherwise, we have members who just farm reputation by getting friends to like ALL their posts.
tks!
How would you see this working?
jl255
12-03-2010, 07:25 AM
How would you see this working?
Easy solution:
1. Allow a max of 1 'like' from 1 member per day. So if JOHN liked one of my posts today, he cannot like any other posts belonging to me for that day. This will prevent members from exchanging reps and going through all my previous posts and just repping everyone of them.
Ramsesx
12-03-2010, 08:01 AM
Sorry if this question was asked already, but too many posts to read at all.
It would be nice if it could be possible to tweak this addon in a way if a post is rated very bad to have it going transparent (like it is done here (http://forums.digitalpoint.com/forumdisplay.php?f=116), look at the first thread).
Would be a nice way to remove the attention of those posts. Thanks.
felixthekat85
12-04-2010, 03:07 PM
Block vbadvanced top 10 is possible? how?
Thank You!
bada_bing
12-10-2010, 02:04 AM
I am having some issues when clicking on the "Members of Michigan Reefers have rated post as the most helpful. Skip right to it!" after clicking on the Skip right to it I get a page not found and I notice that the url points to http://www.myforum.com/forums/-post.html
Im thinking this has to do with the fact that I am using vbseo but not sure how to fix this
Scandal
12-12-2010, 03:49 AM
What's the function "Enable Single Post Voting"? :confused:
Simon Lloyd
12-12-2010, 11:06 AM
What's the function "Enable Single Post Voting"? :confused:
So people cannot vote for more than one post in a thread.
Scandal
12-12-2010, 11:10 AM
thanks! :)
furnival
12-16-2010, 09:25 PM
Hall of fame -- how to build?
Great mod, I've been using it a while.
Ideally I would like to have a ranking table of the top users, a sort of hall of fame at the bottom of my forums home page. It would rank the users by the total number of helpful post votes they had received. How difficult would that be to code? I might put up a freelancer job ad and see if anyone could do it for me.
bada_bing
12-17-2010, 03:35 AM
I am having some issues when clicking on the "Members of Michigan Reefers have rated post as the most helpful. Skip right to it!" after clicking on the Skip right to it I get a page not found and I notice that the url points to http://www.myforum.com/forums/-post.html
Im thinking this has to do with the fact that I am using vbseo but not sure how to fix this
Can I please get some help please or/else I have to remove this hack
MayerZwo
12-29-2010, 12:57 PM
Seems to be an nice Mod.
Does it propper work with vB3.8.6 and vbSEO ?
Regards
MayerZwo
jl255
01-03-2011, 03:25 AM
Easy solution:
1. Allow a max of 1 'like' from 1 member per day. So if JOHN liked one of my posts today, he cannot like any other posts belonging to me for that day. This will prevent members from exchanging reps and going through all my previous posts and just repping everyone of them.
hi, any possibility?
MayerZwo
01-06-2011, 09:08 PM
I installed it on vB 3.8.6 and nothing shows up under Posts.
In ACP everything is fine, I can costumize the AddOn, but it`s not showing in postbit/postbit_legacy.
How can I fix this ?
Warlord
01-07-2011, 12:03 AM
I really like this mod. Much better than the facebook "like" button I made on my site (which this just replaced).
Simon Lloyd
01-13-2011, 04:32 PM
Hi Ted, is there any compatibility issues when using cURL with the latest PHP? here is what im using:
PHP version 5.2.15
Apache version 2.0.63
MySQL version 5.0.91-community
Perl version 5.8.8
Kernel version 2.6.18-194.26.1.el5xen
i get a warning like this:
Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in [path]/helpfulanswers.php on line 407
Ted S
01-16-2011, 03:51 AM
Hi Ted, is there any compatibility issues when using cURL with the latest PHP? here is what im using:
PHP version 5.2.15
Apache version 2.0.63
MySQL version 5.0.91-community
Perl version 5.8.8
Kernel version 2.6.18-194.26.1.el5xen
i get a warning like this:
Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in [path]/helpfulanswers.php on line 407
You should be able to disable the reporting feature and solve this issue. I will be disabling this by default in the next release.
Ted S
01-16-2011, 03:51 AM
I installed it on vB 3.8.6 and nothing shows up under Posts.
In ACP everything is fine, I can costumize the AddOn, but it`s not showing in postbit/postbit_legacy.
How can I fix this ?
Have you enabled the mod in any forums? Have you customized your postbit templates?
Ted S
01-16-2011, 03:52 AM
Seems to be an nice Mod.
Does it propper work with vB3.8.6 and vbSEO ?
Regards
MayerZwo
Yup!
Ted S
01-16-2011, 03:55 AM
Can I please get some help please or/else I have to remove this hack
What mod are you using to modify your post urls?
Ted S
01-16-2011, 03:56 AM
Hall of fame -- how to build?
Great mod, I've been using it a while.
Ideally I would like to have a ranking table of the top users, a sort of hall of fame at the bottom of my forums home page. It would rank the users by the total number of helpful post votes they had received. How difficult would that be to code? I might put up a freelancer job ad and see if anyone could do it for me.
There's a table that stores votes by userid (helpful_answer) which you could easily query and display back. Simple enough if you know mysql and vBulletin basics.
Simon Lloyd
01-16-2011, 04:33 AM
You should be able to disable the reporting feature and solve this issue. I will be disabling this by default in the next release.Thanks Ted but i don't really want to disable it, i'm keen to help with your statistics....etc (after all you've been kind enough to release this!), i have cURL installed and all was well until a server move and upgrade in PHP from 5.2.9 to 5.2.15, so i don't know whether its an incompatibility in PHP or whether the hosts haven't configured cURL correctly?
Any suggestions other than disable reporting?
Ted S
01-16-2011, 06:14 AM
Thanks Ted but i don't really want to disable it, i'm keen to help with your statistics....etc (after all you've been kind enough to release this!), i have cURL installed and all was well until a server move and upgrade in PHP from 5.2.9 to 5.2.15, so i don't know whether its an incompatibility in PHP or whether the hosts haven't configured cURL correctly?
Any suggestions other than disable reporting?
For now let's just disable it, as I get the mod updated with new features I'll track down the bug in the newer versions of cURL and fix this up.
Simon Lloyd
01-16-2011, 04:45 PM
Great, thanks for the responses Ted :)
Ted S
01-21-2011, 04:24 AM
HA members, please welcome TheLastSuperman to the HA development and support efforts. TheLastSuperman has offered to step in and provide support and fixes. I do plan some significant updates later this year to add in many of the most requested features so keep your eye out for updates!
bada_bing
01-27-2011, 02:04 AM
What mod are you using to modify your post urls?
Ted i am using vbseo
MagicThemeParks
01-27-2011, 10:39 AM
HA members, please welcome TheLastSuperman to the HA development and support efforts. TheLastSuperman has offered to step in and provide support and fixes. I do plan some significant updates later this year to add in many of the most requested features so keep your eye out for updates!
Good choice Ted :)
TheLastSuperman is very helpful and will be a nice addition to the support team! :up:
TheLastSuperman
01-29-2011, 03:02 AM
I am having some issues when clicking on the "Members of Michigan Reefers have rated post as the most helpful. Skip right to it!" after clicking on the Skip right to it I get a page not found and I notice that the url points to http://www.myforum.com/forums/-post.html
Im thinking this has to do with the fact that I am using vbseo but not sure how to fix this
Ted i am using vbseo
Bada Bing (Love the screen name btw) are you referring to the message displayed at the top of threads:
"See the top rated post in this thread. Click here"
Good choice Ted :)
TheLastSuperman is very helpful and will be a nice addition to the support team! :up:
Thanks for the kind words, I've seen you around however a pleasure to make your acquaintance ;).
Ted S
01-29-2011, 05:53 AM
Ted i am using vbseo
Looks like vbSEO is changing the url structure on this page. We'll have to see about modifying around it in a future version
mjjboard
01-29-2011, 04:17 PM
Does anyone still have the vbcredits add-on? Their site is gone now so I am having trouble getting access to it. :(
MagicThemeParks
01-29-2011, 08:20 PM
mjjboard, send me your email via PM and I can get it to you.
bada_bing
01-31-2011, 12:55 PM
Bada Bing (Love the screen name btw) are you referring to the message displayed at the top of threads:
"See the top rated post in this thread. Click here"
Thanks for the kind words, I've seen you around however a pleasure to make your acquaintance ;).
TheLastSuperman
Thats for the compliments on my username ;) I am referring to this in the threads
Members of my site have rated post as the most helpful. Skip right to it!
the_ccandy
02-03-2011, 03:47 PM
I installed this into my forum, but I cant figure out how to enable it.
Forgive my ignorance.:confused:
Does anyone know how to do this?
Ted S
02-05-2011, 10:13 PM
I installed this into my forum, but I cant figure out how to enable it.
Forgive my ignorance.:confused:
Does anyone know how to do this?
Each forum has an option in the forum manager to enable the mod, or you can use the bulk tool to enable it in multiple forums.
Ted S
02-05-2011, 10:14 PM
Does anyone still have the vbcredits add-on? Their site is gone now so I am having trouble getting access to it. :(
I don't have a copy but from a compatibility standpoint it should work fine if you find the source code.
Jon12345
02-23-2011, 03:02 PM
Are there any links to sample sites that have this mod so I can check it out? Can you have it rate out of 5 instead of 10? I see lots of sites with threads with 5 stars on them.
Simon Lloyd
02-24-2011, 05:26 PM
Jon you don't need to guess about this mod it's great!, we use it http://www.thecodecage.com/forumz
tjwiforums
03-10-2011, 11:16 PM
Anyone else seeing a blank popup with this? No idea how to get rid of it.
Ted S
03-11-2011, 03:29 AM
Anyone else seeing a blank popup with this? No idea how to get rid of it.
Do you have AJAX enabled on your site?
tjwiforums
03-11-2011, 03:35 AM
Do you have AJAX enabled on your site?
All ajax features are enabled
cowcowcow
03-11-2011, 04:33 PM
Hi guys, im trying to make a vbulletin display of this query, if anyone can help me with it please tell me how, kinda noob at vbulletin
Basically this SQL query returns the users sorted by those who have had the most thumbs up in the whole forum, which is what a lot of people on top (myself included) have been wanting! Now we just need to have it displayed on vbulletin
Select post.username, count(helpfulpost.goodrank) from helpfulpost inner join post on helpfulpost.postid = post.postid
GROUP BY post.username Order by Count(helpfulpost.goodrank) DESC
tjwiforums
03-12-2011, 02:56 AM
Do you have AJAX enabled on your site?
Just a quick update to this, this is definitely a code problem (somewhere). The following error is received when trying to rate something:
[Sat Mar 12 04:53:20 2011] [error] [client hidden] PHP Parse error: syntax error, unexpected $end in /path/to/forum/helpfulanswers.php on line 498,
This is using the newest version, unless you've made changes in the past 2 days to it and not uploaded them. Your script isn't ending properly.
Simon Lloyd
03-12-2011, 06:08 AM
You will have to search through this thread as there have been many updates from Ted, here's one from May last year https://vborg.vbsupport.ru/attachment.php?attachmentid=117796&d=1275283560 completely remove all the files of the old one and install this as fresh.
Im using vb3.8.6 with no problems at all.
Greek76
03-12-2011, 02:39 PM
Ted I'm having problem when users are voting.
Parse error: syntax error, unexpected $end in /home/sample/public_html/forums/helpfulanswers.php on line 498
I downloaded the version on your thread starter. Im using it for 3.8.7. Any ideas? I also downloaded from the link that user posted above but then when voting they are getting this error.
Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in [path]/helpfulanswers.php on line 404
tjwiforums
03-12-2011, 04:49 PM
You will have to search through this thread as there have been many updates from Ted.
The thread is over 100 pages long, the author is responsible for providing working fixes here. Out of the box, this does not work, unfortunately. Yes, the fix posted DOES work, but the user shouldn't have to hunt through 100 pages of garbage simply to make something work OOB.
Simon Lloyd
03-12-2011, 10:24 PM
The thread is over 100 pages long, the author is responsible for providing working fixes here. Out of the box, this does not work, unfortunately. Yes, the fix posted DOES work, but the user shouldn't have to hunt through 100 pages of garbage simply to make something work OOB.Hey, this mod is supplied FREE, the author is under no obligation to keep this thread updated or his attachments, and yes it is up to YOU to search through all those threads if you need answers to your questions, it's not the authors responsibility to wet nurse you!
Simon Lloyd
03-12-2011, 10:27 PM
Ted I'm having problem when users are voting.
Parse error: syntax error, unexpected $end in /home/sample/public_html/forums/helpfulanswers.php on line 498
I downloaded the version on your thread starter. Im using it for 3.8.7. Any ideas? I also downloaded from the link that user posted above but then when voting they are getting this error.
Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in [path]/helpfulanswers.php on line 404
Have you got your server configured to use curl? if not turn the option off in the settings, it's there to provide stats for usage of this mod, it's not compulsory so you can turn that off, or ask your host to recompile Apache with cURL.
Greek76
03-12-2011, 10:39 PM
Not sure I'd have to check my vps settings. Im not even sure where to look for that.
Simon Lloyd
03-13-2011, 02:26 AM
Change this url to your site and it will take you to your php info page and you can see if cURL is enabled http://www.YOURSITE.com/YOUR_FORUM_FOLDER_IF_YOU_HAVE_ONE/admincp/index.php?do=phpinfo if not go to admincp>vBulletin Options>Helpful Answers Settings and at the bottom turn this off Anonymous Reporting and all will be fine :)
Ted S
03-13-2011, 06:25 PM
The thread is over 100 pages long, the author is responsible for providing working fixes here. Out of the box, this does not work, unfortunately. Yes, the fix posted DOES work, but the user shouldn't have to hunt through 100 pages of garbage simply to make something work OOB.
It sounds like this is not the right addon for you. I'd suggest trying a solution with professional support to meet your needs. Best of luck to you.
Ted S
03-13-2011, 06:26 PM
Have you got your server configured to use curl? if not turn the option off in the settings, it's there to provide stats for usage of this mod, it's not compulsory so you can turn that off, or ask your host to recompile Apache with cURL.
Thanks!
pcalloway
03-13-2011, 10:17 PM
Ted -
I'm having similar trouble to the previous poster. However turning off anonymous reporting didn't fix the problem - still getting the error.
Parse error: syntax error, unexpected $end in /home/#######/public_html/l#######.com/helpfulanswers.php on line 498
EDIT
NEvermind - found the fix... thanks.
https://vborg.vbsupport.ru/showpost.php?p=2115221&postcount=1525
jl255
03-15-2011, 05:24 PM
Easy solution:
1. Allow a max of 1 'like' from 1 member per day. So if JOHN liked one of my posts today, he cannot like any other posts belonging to me for that day. This will prevent members from exchanging reps and going through all my previous posts and just repping everyone of them.
Any possibility of this?
gabrielt
03-15-2011, 10:37 PM
The guys getting the parse syntax error, download the file here
https://vborg.vbsupport.ru/showpost.php?p=1976983&postcount=1335
i used it and it worked perfectly after that :)
Thanks, it worked. It is simply silly that the author of this mod didn't use this file.
Ted S
03-17-2011, 01:26 AM
Thanks, it worked. It is simply silly that the author of this mod didn't use this file.
Thanks :D
Ted S
03-17-2011, 01:31 AM
Any possibility of this?
Certainly something that could be looked at for a future version.
NeutralizeR
04-09-2011, 11:03 PM
Hello,
Thanks for the great addon. I have the same "duplicate post" (same post it - but displayed a few times) problem. There are some duplicate helpfulpost entries in the mysql table and i delete them manually to fix the problem. Is there a permanent solution for it?
NeutralizeR
04-10-2011, 11:26 AM
Here's the query to find the duplicate helpfulpost votes:
SELECT postid,
COUNT(postid) AS NumOccurrences
FROM helpfulpost
GROUP BY postid
HAVING ( COUNT(postid) > 1 )
Since i deleted all of them, it doesn't return any results but i know it'll happen again :)
Ted S
04-13-2011, 05:26 PM
Here's the query to find the duplicate helpfulpost votes:
SELECT postid,
COUNT(postid) AS NumOccurrences
FROM helpfulpost
GROUP BY postid
HAVING ( COUNT(postid) > 1 )
Since i deleted all of them, it doesn't return any results but i know it'll happen again :)
Thanks! The system checks for dup votes... twice in face but I'll review again to see why some are making it through.
regua
05-09-2011, 08:52 PM
I have no idea how no one noticed this before, but there are mismatched parentheses in the file helpfulanswers.php, which result in the parse error that so many people have been talking about. Using an older version of helpfulanswers.php does seem to solve the problem, but also - as far as I've noticed - prevents the point counter from working (i.e. you can't display a user's total amount of points in the postbit).
Thanks for all the work, Ted, and I'm looking forward to a fix to this!
EDIT: I found the missing } at line 292. However, the points are being counted only when the notifications are turned on.
The Realist
05-13-2011, 01:33 PM
Ummm installed ok but there is a missing } on the helpfull.php file, anyway.
Why does my forum say 0 out of 4294967295 members found this post helpful. Did you find this post helpful?
I dont have 4294967295 members wish I did.
Whats causing this and how can I correct it?
Regards
Ted S
05-13-2011, 07:35 PM
I have no idea how no one noticed this before, but there are mismatched parentheses in the file helpfulanswers.php, which result in the parse error that so many people have been talking about. Using an older version of helpfulanswers.php does seem to solve the problem, but also - as far as I've noticed - prevents the point counter from working (i.e. you can't display a user's total amount of points in the postbit).
Thanks for all the work, Ted, and I'm looking forward to a fix to this!
EDIT: I found the missing } at line 292. However, the points are being counted only when the notifications are turned on.
Very strange but really appreciate the report and you tracking this down! Update issued...
Ted S
05-13-2011, 07:36 PM
Ummm installed ok but there is a missing } on the helpfull.php file, anyway.
Why does my forum say 0 out of 4294967295 members found this post helpful. Did you find this post helpful?
I dont have 4294967295 members wish I did.
Whats causing this and how can I correct it?
Regards
4294967295 is the max value for a 32-bit integer in mySQL. Sounds like your database didn't update properly... Uninstall and reinstall the mod.
Ted S
05-13-2011, 07:39 PM
Released a minor update which fixes a parse error in helpfulanswers.php - no other files need to be updated.
MagicThemeParks
05-13-2011, 09:55 PM
Ted, was this update based on the 'correct' (and working) version which was in a previous post?
Ted S
05-14-2011, 02:25 AM
Ted, was this update based on the 'correct' (and working) version which was in a previous post?
Not sure what you mean? This update merely fixes a missing close } that was throwing an error which regua noticed.
MagicThemeParks
05-14-2011, 02:44 AM
There was a version in the first post and then another version which you did not have time to update in the first post that was listed in a post within the thread.
This is my post where I found the 'working' combo: https://vborg.vbsupport.ru/showpost.php?p=2025151&postcount=1380
Spinball
05-14-2011, 02:26 PM
Ted - thinking about installing this mod on www.AVForums.com - Threads: 1,294,988, Posts: 13,826,960, Members: 331,014.
Do you know whether any large forums have had problems running it?
Thanks :)
Simon Lloyd
05-14-2011, 06:18 PM
I have Threads: 184,899, Posts: 719,423 but not anywhere near that many members but i have to say i haven't had a days problem or performance issues with it, even when recalculating helpful posts.
Simon Lloyd
05-14-2011, 06:23 PM
Hi Ted, i've had my helpful answers slightly customised in as much as the helpful answers page is split in to more column (you have access to my test site you can see it there), just thought it might be beneficial to the users here.
129073
Ted S
05-14-2011, 06:37 PM
Ted - thinking about installing this mod on www.AVForums.com (http://www.AVForums.com) - Threads: 1,294,988, Posts: 13,826,960, Members: 331,014.
Do you know whether any large forums have had problems running it?
Thanks :)
Spinball,
We've had a few larger sites run the mod without any reported issues (many sites opt in to anonymous vote tracking and a few have racked up votes in the six-figures) however you are adding a potentially high volume table to the mix that's going to be queried against constantly. If you're using memcache or a similar system this mod would likely benefit from caching given the fairly static nature of the votes.
Ted S
05-14-2011, 06:39 PM
There was a version in the first post and then another version which you did not have time to update in the first post that was listed in a post within the thread.
This is my post where I found the 'working' combo: https://vborg.vbsupport.ru/showpost.php?p=2025151&postcount=1380
I see that post but am just not following your point given how long it's been...
The update to 2.0.6 takes the version of helpfulanswers.php from 2.0.5 and fixes one bug. That is the only change.
Ted S
05-14-2011, 06:39 PM
Hi Ted, i've had my helpful answers slightly customised in as much as the helpful answers page is split in to more column (you have access to my test site you can see it there), just thought it might be beneficial to the users here.
129073
Very cool! Thanks for sharing
Ted S
05-14-2011, 06:41 PM
Helpful Answers Users -
It's been a long time since this mod had a major update and I want to see what, if any, features would make it better for you. Is there a different way you'd like to see HA work? Another voting or reporting option? More controls? More interactions?
Share your thoughts for the next update!
Simon Lloyd
05-14-2011, 07:11 PM
Well Ted, it's great of you to offer to do that, here's my list :)
1. The possibility to display a league table of members that have had their posts marked as helpful (say top 10 or 20).
2. Search facility in HA, as there are a lot of quality posts it would be great to be able to narrow them down to the particular help you are looking for.
3. View all HA by member - some folk like answers by a certain member, it would be great if they could pick their name (say from the league table) and see all their helpful answers (in the mod "Post Thanks" in the users public profile you have a link to find all posts the user has thanked and all posts they have been thanked in)
4. Perhaps have a thread marked, highlighted or displayed that has had the most HA's within it as a "Hot thread"...etc
5. Provide Admin/Mod ability to modify HA's rating in the post (some do not deserve the rating they get either because it is mallicious or the user doesn't understand it's use properly.
Spinball
05-14-2011, 07:37 PM
Thanks for your eply to my question.
Helpful Answers Users -
It's been a long time since this mod had a major update and I want to see what, if any, features would make it better for you. Is there a different way you'd like to see HA work? Another voting or reporting option? More controls? More interactions?
Share your thoughts for the next update!
Firstly kudos for appreciating that there is value in developing vB3 mods. Lots of sites are still with vb3, as are we at 3.8.2 (and we're never upgrading to vb4).
Please forgive me if my suggestions are already included but I haven't tried this mod, so I'm not familiar with all its features.
The name of this mod implies that it's designed primarily to help readers locate the best answer to a question. The best answer indicated by the number of positive votes it gets.
But what if the thread isn't one asking a question? But sharing advice or just chatting?
If people then vote to indicate they like posts generally, there is some overlap with the Thanks mod.
So how about having some kind of tick box in the New Thread form for the OP to indicate that he is asking for advice or help, which when ticked, enables this mod for the thread.
Maybe 'If you would like the community to vote for the best answer, tick this box'.
Otherwise, threads would then appear as they do normally.
I like the idea of displaying the best answer directly below the question (like Yahoo Answers), as that is the most useful for people reading threads later. Or at least a link to it.
But how does the system (or who) decides which is the best or most definitive answer?
What happens if one reply gets lots of votes but someone then posts a better answer? Can people change their votes? Do you restrict plus votes to one post per thread? If someone votes for a second post in a thread, does their previous post get deleted?
Simon Lloyd
05-14-2011, 08:02 PM
Spinball, i'm kinda with you, i have many many threads where the OP has thanked almost every post so i guess what would be great is:
If a user has already rated a members post (Post "A") as helpful then that member subsequently posts an updated more helpful post (Post "B") and the user clicks that as helpful then the previous helpful mark should move from post "A" to post "B".
In the OPs eyes i guess every post is helpful if its positive but for those searching, the best solution is more helpful.
Spinball
05-14-2011, 08:42 PM
Thanks, Simon.
With regard to choosing the best answer, should it be done automatically when the number of votes reaches a certain threshold?
On Yahoo answers I saw that a best answer was picked by someone. Do Yahoo allow certain special people to select the best answer?
If that functionality works, is it maybe worth thinking about allowing moderators to officially close the voting process and select a post as being the most useful?
One assumes that moderators will know the subject of the forum they moderate and are therefore qualified to decide when the best post has been made. Just a thought.
Simon Lloyd
05-14-2011, 08:52 PM
Well i guess the "Best" answer is subjective, what may seem like the best answer to one may not be to another, don't you think moderators have enough to do without vetting every post that has a helpful answer rated? :)
For me, if the OP chooses his/her best answer (most helpful answer) then all is well, subsequent visitors to the post can choose which they feel is the best answer and there on in lies the rub, the best answer will be the one with the highest number of votes (HA clicks), getting a "Best" answer this way has to be the one with true value as it will have been rated by a wide and varied cross section of the voting public.
So, i guess if (hope Ted is watching :)) a link appeared in the first post or next to the thread title to the post with the most HA clicks that would be good, although i think it would probably be prohibitive due to the number of queries.
Spinball
05-14-2011, 10:03 PM
All good points. Though I'd speculate that in most circumstances the OP will not be qualified to pick which is the best answer, but instead trust in the community voters.
TheLastSuperman
05-14-2011, 10:15 PM
More icons not just thumbs or arrows but a few more with a variety of colors... I'll do those!
Ted PM me w/ a "guesstimate" on when your planning for the update and I'll have them done beforehand ;).
Ted S
05-14-2011, 11:09 PM
Well i guess the "Best" answer is subjective, what may seem like the best answer to one may not be to another, don't you think moderators have enough to do without vetting every post that has a helpful answer rated? :)
For me, if the OP chooses his/her best answer (most helpful answer) then all is well, subsequent visitors to the post can choose which they feel is the best answer and there on in lies the rub, the best answer will be the one with the highest number of votes (HA clicks), getting a "Best" answer this way has to be the one with true value as it will have been rated by a wide and varied cross section of the voting public.
So, i guess if (hope Ted is watching :)) a link appeared in the first post or next to the thread title to the post with the most HA clicks that would be good, although i think it would probably be prohibitive due to the number of queries.
Thinking of adding a master record per thread with the total votes, top voted post, etc. This will let you easily call out the "best" post.
Without this master it's just one query per thread view which isn't terrible if it's a useful feature for that forum.
Ted S
05-14-2011, 11:09 PM
More icons not just thumbs or arrows but a few more with a variety of colors... I'll do those!
Ted PM me w/ a "guesstimate" on when your planning for the update and I'll have them done beforehand ;).
Will do sir!
Ted S
05-14-2011, 11:11 PM
Thanks, Simon.
With regard to choosing the best answer, should it be done automatically when the number of votes reaches a certain threshold?
On Yahoo answers I saw that a best answer was picked by someone. Do Yahoo allow certain special people to select the best answer?
If that functionality works, is it maybe worth thinking about allowing moderators to officially close the voting process and select a post as being the most useful?
One assumes that moderators will know the subject of the forum they moderate and are therefore qualified to decide when the best post has been made. Just a thought.
Last I checked Yahoo Answers had a few options to close out an answer. The original poster can pick but votes kick in after so much time. Basicallty make up your mind quickly or we go to the crowd.
Forums are different as posts come in down the road so allowing it to always be votes has a nice benefit.
Any desire to close the thread after X votes or Y time to give more of an answer forum type feature?
Simon Lloyd
05-14-2011, 11:41 PM
Personally i'm against closing a thread unless of course it really needs to be, particularly in my kind of forum every contribution is valid and sparks further discussion.
The master post sounds good, to be honest Ted if we get a third of things we ask for we'll be happy people :)
Ted S
05-15-2011, 01:41 AM
Personally i'm against closing a thread unless of course it really needs to be, particularly in my kind of forum every contribution is valid and sparks further discussion.
The master post sounds good, to be honest Ted if we get a third of things we ask for we'll be happy people :)
That shouldn't be a problem... Working on a new project these days so I'm getting use to coding again [yikes]. Just too bad vBulletin won't accept a little more modular code, would make it super easy to let people pick and choose their features, not to mention easier to write them. Oh well.
Simon Lloyd
05-15-2011, 02:04 AM
You may be on to something there though Ted, i have just added Andreas's Template Modification Manager ( https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=tms ), so any additions i make now i do in that (and slowly moving my old ones over) could you not employ something like that or that kind of working? being able to select which features,,,,would make it truly flexible.
Simon Lloyd
05-15-2011, 02:08 AM
If you could incorporate something like that you could use cURL or fSocket.... to GET the chosen feature from a central datbase on your or A. Another server where you could upload or modify all in one place, never a need to post updates again as they will be automatic next time the feature is used.
Ted S
05-15-2011, 03:18 AM
You may be on to something there though Ted, i have just added Andreas's Template Modification Manager ( https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=tms ), so any additions i make now i do in that (and slowly moving my old ones over) could you not employ something like that or that kind of working? being able to select which features,,,,would make it truly flexible.
I'll take a look but for obvious reasons am looking to limit the changes between the 3.8 and 4.0 source code...
Ted S
05-15-2011, 03:18 AM
If you could incorporate something like that you could use cURL or fSocket.... to GET the chosen feature from a central datbase on your or A. Another server where you could upload or modify all in one place, never a need to post updates again as they will be automatic next time the feature is used.
Another good suggestion but in something this high volume it becomes problamatic for a free mod. I'm sure I can find a good way to let people upgrade what they want but without getting into the system support game either :eek:
Simon Lloyd
05-15-2011, 04:34 AM
I guess the challenge is on! :D
Spinball
05-15-2011, 09:18 AM
Personally i'm against closing a thread unless of course it really needs to be, particularly in my kind of forum every contribution is valid and sparks further discussion.
The master post sounds good, to be honest Ted if we get a third of things we ask for we'll be happy people :)
I agree.
life is boost
05-16-2011, 01:17 PM
Hmmm i have an issue with this mod. I installed it and that went fine it seems to be working but when someone rates another user's post. the User that was rated gets a new message indicator and at the bottom of the drop down it says they have an unapproved post in their groups? shouldn't that be a link to the rating system? instead it takes you to the social groups moderation page
Ted S
05-17-2011, 05:03 AM
Hmmm i have an issue with this mod. I installed it and that went fine it seems to be working but when someone rates another user's post. the User that was rated gets a new message indicator and at the bottom of the drop down it says they have an unapproved post in their groups? shouldn't that be a link to the rating system? instead it takes you to the social groups moderation page
Please disable the notification option while I take a look.
furnival
05-17-2011, 06:54 AM
This is a great mod. It looks like you're looking for feature suggestions so if you'll permit me......I'm using this on a very active board and there's 2 features that would help me:
1) Users should be able to retract the ratings they gave somehow
2) It would be great if there was an option to make negative reporting anonymous
Ted S
05-17-2011, 05:28 PM
This is a great mod. It looks like you're looking for feature suggestions so if you'll permit me......I'm using this on a very active board and there's 2 features that would help me:
1) Users should be able to retract the ratings they gave somehow
2) It would be great if there was an option to make negative reporting anonymous
#1 is pretty much for sure on the list.
#2 not sure what you mean? the votes don't list who did them?
furnival
05-21-2011, 08:21 AM
#1 is pretty much for sure on the list.
#2 not sure what you mean? the votes don't list who did them?
Regarding #1: great! Can't wait :D
Regarding #2: yes, I can see my suggestion wasn't clear but that is exactly what I mean. It's just that some of my users have expressed reluctance to give any more negative ratings because the users they have previously given negative ratings to have sometimes taken it very personally and even started vendettas against them.
Ted S
05-22-2011, 02:35 AM
Regarding #2: yes, I can see my suggestion wasn't clear but that is exactly what I mean. It's just that some of my users have expressed reluctance to give any more negative ratings because the users they have previously given negative ratings to have sometimes taken it very personally and even started vendettas against them.
How are they discovering who rated the thread negatively?
Greek76
05-22-2011, 11:59 AM
I see that post but am just not following your point given how long it's been...
The update to 2.0.6 takes the version of helpfulanswers.php from 2.0.5 and fixes one bug. That is the only change.
So all we need to upload is th helpfulanswers.php file?
Ted S
05-22-2011, 09:02 PM
So all we need to upload is th helpfulanswers.php file?
Yes.
Ted S
05-24-2011, 05:35 PM
HA regular users. I made a post in another thread from a user asking about the support / innovation behind my mods and it seemed relevant here as well. As always my goal is to help the community but be honest about what I provide, please keep the feature ideas & comments coming... they are all welcome.
I've gotten out of the habit of mentioning this lately, but since your question brings it up, I should reiterate a little wisdom on my mods.
I'm a marketer before a programmer and my mods, while now many years old, stemmed from making experience improvements to drive up registrations and activity. The idea was to share relatively portable solutions that my startup, and later on my client's sites, had success with. But while it's tempting to just download and install what you see, websites thrive when they are driven relative to their userbase. As such I have the high hopes that no one just uses my mods out of the box... whether it's extending the features or customizing the messaging, generic is never the ideal solution.
These days forums are taking a back seat to the social networks of the world and that's a function of our own creation. One can point fingers as the software vendor and while there's fault there, ultimately as community owners we should be ideating as much, if not more, for ourselves and as a community of communities. The more we innovate in sharing, interaction, and even integration with networks, the more opportunity we have.
While I'm not the active contributor to this community that I was 7 or 8 years ago, I'm supportive of those looking to build and grow their sites. So if you need a little help, by all means ask, but if you want to do something novel, that's when I get really interested.
furnival
05-26-2011, 08:49 AM
How are they discovering who rated the thread negatively?
It's about their post being rated negatively, not their thread. They are discovering who rated their post negatively in the normal way.
Simon Lloyd
05-26-2011, 09:01 AM
It's about their post being rated negatively, not their thread. They are discovering who rated their post negatively in the normal way.The negative rating in helpful answers can be turned off, however, helpful answers doesn't publicly deliver who found it unhelpful, those ratings must be coming from your own rep system.
furnival
05-26-2011, 11:10 AM
Here's how it works on my forum, and I thought how it worked on everyone's.
User A gives user B a helpful post rating (either good or bad)
User A gets a notification that they have a new helpful post rating. Clicking on the link in the drop down notifications menu takes them to this page:
profile.php?do=helpfulans
at which point they can see in the right-hand column who gave them the answer and whether it's good or bad.
Simon Lloyd
05-26-2011, 01:16 PM
In helpfulanswers_settings (admincp) turn this off:
Show Users Who Voted On Their Post
If enabled, users will see who voted on their post in the notifications area.
Yes No
furnival
05-26-2011, 07:01 PM
I appreciate you taking the time to reply but I knew that much. What I said was it would be useful for me to be able to make positive ratings named and negative feedback anonymous but it's no big deal I can live without it.
On a different note... Some of my users are asking how the time period for the max post ratings a user can make per day is calculated. Is it on a rolling 24 hour period, please? I couldn't see how this is done in the code.
Ted S
05-26-2011, 11:47 PM
I appreciate you taking the time to reply but I knew that much. What I said was it would be useful for me to be able to make positive ratings named and negative feedback anonymous but it's no big deal I can live without it.
On a different note... Some of my users are asking how the time period for the max post ratings a user can make per day is calculated. Is it on a rolling 24 hour period, please? I couldn't see how this is done in the code.
There's a small admin panel that may do what you want in the user cp. It's nothing fancy.
Ted S
05-26-2011, 11:52 PM
On a different note... Some of my users are asking how the time period for the max post ratings a user can make per day is calculated. Is it on a rolling 24 hour period, please? I couldn't see how this is done in the code.
It's rolling from the time of the last vote.
Line 323 of helpfulanswers.php should you wish to adjust
$datecut = TIMENOW - 86400;
$helpfulanswer = $db->query_first_slave("
SELECT COUNT(helpfulanswerid) as count FROM " . TABLE_PREFIX . "helpfulanswer
WHERE userid = $safeuserid AND dateline > $datecut
");
To change to days something like this will work:
$helpfulanswer = $db->query_first_slave("
SELECT COUNT(helpfulanswerid) as count FROM " . TABLE_PREFIX . "helpfulanswer
WHERE userid = $safeuserid AND (TO_DAYS(dateline) > TO_DAYS(TIMENOW))
");
furnival
05-27-2011, 10:18 PM
Thanks Ted! I really appreciate your time on this.
On a different note, I was using 2.0.5 but I just upgraded to 2.0.6. It seems it wasn't updating the counter on the "user" table. I'm going to try building this using SQL queries (because I'm planning on using users' helpful post count to control whether they get admitted to a restricted forum, which is an add on modification somebody is going to develop for me.)
I'll post the SQL queries I used if I get it working.
I hope this post makes sense.
Ted S
05-28-2011, 02:54 AM
Thanks Ted! I really appreciate your time on this.
On a different note, I was using 2.0.5 but I just upgraded to 2.0.6. It seems it wasn't updating the counter on the "user" table. I'm going to try building this using SQL queries (because I'm planning on using users' helpful post count to control whether they get admitted to a restricted forum, which is an add on modification somebody is going to develop for me.)
I'll post the SQL queries I used if I get it working.
I hope this post makes sense.
It's very simple to plug a new query into the update process...
Open up helpfulanswers.php and go to line 344
$db->query_write("
INSERT INTO " . TABLE_PREFIX . "helpfulanswer
SET postid = $postinfo[postid], userid = $safeuserid, yesno = '$saferank', dateline = ". TIMENOW ."
");
You'll see the user query a few lines lower which is a conditional query meaning that it does a few checks for variables before it runs [there does seem to be a bug as the two if statements are the same].
You can modify that query to add to the user table or just copy it and make it alter another table. field = field+1 to increment a counter.
furnival
05-28-2011, 05:14 PM
Excellent, many thanks Ted I used that code.
Regarding the post you made before about how the no. of posts rated in a 24 hour period works..... I might be pushing my luck here, but this will be my last request I promise: it would be useful for me to exclude users in certain usergroups from the limit on the number of posts they can rate in 24 hours (so that moderators can rate an unlimited number of posts as helpful). Is there an addition I could make to the code around line 323 to achieve that, please?
Ted S
05-28-2011, 06:30 PM
Excellent, many thanks Ted I used that code.
Regarding the post you made before about how the no. of posts rated in a 24 hour period works..... I might be pushing my luck here, but this will be my last request I promise: it would be useful for me to exclude users in certain usergroups from the limit on the number of posts they can rate in 24 hours (so that moderators can rate an unlimited number of posts as helpful). Is there an addition I could make to the code around line 323 to achieve that, please?
No need to stop anywhere... the idea of my mods is to extend them so asking how to do so is perfectly reasonable...
And yes, you can do this. If you just exclude groups from the function it's very simple...
Find
$datecut = TIMENOW - 86400;
$helpfulanswer = $db->query_first_slave("
SELECT COUNT(helpfulanswerid) as count FROM " . TABLE_PREFIX . "helpfulanswer
WHERE userid = $safeuserid AND dateline > $datecut
");
$count = $helpfulanswer['count'];
Change to something like...
$datecut = TIMENOW - 86400;
if(!is_member_of($bbuserinfo, 1,2,3)){
$datecheck = "AND dateline > ". $datecut;
} else { $datecheck = ''; }
$helpfulanswer = $db->query_first_slave("
SELECT COUNT(helpfulanswerid) as count FROM " . TABLE_PREFIX . "helpfulanswer
WHERE userid = $safeuserid $datecheck
");
$count = $helpfulanswer['count'];
Where x,y,z are groups to exclude.
furnival
05-28-2011, 08:59 PM
Oh dear, I can't seem to get that code to work.
On edit: a programmer helped me out with the above tweak to allow moderators to rate an unlimited number of posts; he said he'll post the code here at the weekend.
Wonksta
06-11-2011, 01:32 PM
I don't know if this has been asked before but I am a little concerned.
If the Reputation feature is enabled with this Mod and someone is on a Reputation Spread before repping the same person, can they get around to having to wait for the Rep Spread by just randomly pressing the thumbs up on a bunch of posts and then being able to rep the same person via the inbuilt vBulletin rep system because they spread Reps via this Mod?
Reason I ask is I am worried this will cause a lot of rep whoring if enabled...
Ted S
06-12-2011, 12:25 AM
I don't know if this has been asked before but I am a little concerned.
If the Reputation feature is enabled with this Mod and someone is on a Reputation Spread before repping the same person, can they get around to having to wait for the Rep Spread by just randomly pressing the thumbs up on a bunch of posts and then being able to rep the same person via the inbuilt vBulletin rep system because they spread Reps via this Mod?
Reason I ask is I am worried this will cause a lot of rep whoring if enabled...
Yup.
furnival
06-29-2011, 01:08 PM
A minor point but in your first post of this thread you wrote Identify the top rated post.
Step 1 - Enable the top rated post feature from your Helpful Answers Settings.
Step 2 - Add the code:
Code:
<if condition="$thread[toppost] == $post[postid] AND THIS_SCRIPT == 'showthread'">This is the top rated post!</code>
But that code should finish with an </if>, so
<if condition="$thread[toppost] == $post[postid] AND THIS_SCRIPT == 'showthread'">This is the top rated post!</if>
Just I saw a newbie like me had been thrown off track by this mistake somewhere around page 7 of this thread.
Shill360
08-08-2011, 02:53 PM
I have tried seaching this thread but to no avail. Is there a way to display on helpfulanswers.php the most helpful users ranked ? Or even to create a new page with this information on.
On postbit_legacy I have added how many helpful positive responses someone has had but it would be nice to display a summary page to see who is the most helpful.
Ted S
08-09-2011, 01:10 AM
I have tried seaching this thread but to no avail. Is there a way to display on helpfulanswers.php the most helpful users ranked ? Or even to create a new page with this information on.
On postbit_legacy I have added how many helpful positive responses someone has had but it would be nice to display a summary page to see who is the most helpful.
You would have to rebuild the query to switch from threads to users but it's very simple as the counts are stored along with each "user" table record.
Shill360
08-09-2011, 10:22 AM
Sorry for being a bit thick, but is there any documentation on how I can do this ?
Ted S
08-10-2011, 01:14 PM
Sorry for being a bit thick, but is there any documentation on how I can do this ?
No. You would be hacking the hack.
Audax666
08-11-2011, 10:41 PM
Hi,
my users ask me for a listing of their own votes likely like the listing from ".../profile.php?do=helpfulans".
I also found the plugin (Helpful Answers -- List Notifications) which creates that list:
if ($_REQUEST['do'] == 'helpfulans'){
$db->query_write("
UPDATE " . TABLE_PREFIX . "user
SET helpfulcnt = 0
WHERE userid = ". $vbulletin->userinfo['userid'] ."
");
$helpfulposts = $db->query_read("
SELECT ha.yesno,post.title,post.postid,user.username
FROM " . TABLE_PREFIX . "helpfulanswer as ha
LEFT JOIN " . TABLE_PREFIX . "post as post ON (ha.postid = post.postid)
LEFT JOIN " . TABLE_PREFIX . "user as user ON (ha.userid = user.userid)
WHERE post.userid = ". $vbulletin->userinfo['userid'] ."
ORDER BY ha.dateline DESC
LIMIT 50
");
while ($helpfulpost = $db->fetch_array($helpfulposts))
{
if($helpfulpost['yesno'] == 1){ $helpfulpost['yesno'] = 'Good'; }
else if($helpfulpost['yesno'] == 0 OR !$helpfulpost['yesno']){ $helpfulpost['yesno'] = 'Bad'; }
eval('$resultsbits .= "' . fetch_template('helpful_answers_notbit') . '";');
}
// draw cp nav bar
construct_usercp_nav('helpfulanswer_mosthelpful');
$templatename = 'helpful_answers_not';
}
but I can't change it for my needs. May anyone could help please.
I think it's not that different from the existing query, but I didn't find a clue.
Pirat3
09-14-2011, 02:44 AM
Hey I have a question, I have been seraching this thread but did not come across a response but is it possible to hide the lowest post count that gets X # of too many negative votes (like youtube)?
(I saw the 4.x version had this)
Ted S
09-15-2011, 04:25 AM
Hey I have a question, I have been seraching this thread but did not come across a response but is it possible to hide the lowest post count that gets X # of too many negative votes (like youtube)?
(I saw the 4.x version had this)
Not as a native feature but it is something you could likely do yourself with a few template changes.
11133
09-20-2011, 06:19 PM
ive installed and i dont see anywhere the buttons
even on default template, whats wrong, i put not to manyally change template
i use 3.8.2
Ted S
09-20-2011, 08:47 PM
ive installed and i dont see anywhere the buttons
even on default template, whats wrong, i put not to manyally change template
i use 3.8.2
Did you enable it in any forums?
maki_69
09-20-2011, 11:04 PM
Hello Ted S,
Can You help me with editing template?
I want move buttons from current position to the right from post title (inline title) like on this screen:
https://vborg.vbsupport.ru/external/2011/09/29.jpg
Ted S
09-21-2011, 12:10 AM
Hello Ted S,
Can You help me with editing template?
I want move buttons from current position to the right from post title (inline title) like on this screen:
You will need to use the manual placement option as explained in the install file and place the call in your postbit_legacy template.
As far as aligning it, that can be done with css or a table.
11133
09-21-2011, 06:56 AM
yes its fine now, sorry for that
now i get error
when i click
Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in [path]/helpfulanswers.php on line 434
on 434 its
curl_setopt($curlHandle, CURLOPT_MUTE, 1); // dont show output
Ted S
09-21-2011, 07:13 AM
yes its fine now, sorry for that
now i get error
when i click
Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in [path]/helpfulanswers.php on line 434
on 434 its
curl_setopt($curlHandle, CURLOPT_MUTE, 1); // dont show output
Disable the anonymous reporting option.
Simon Lloyd
09-21-2011, 08:05 AM
Disable the anonymous reporting option.
Hi Ted, i know it's in the installtion file AND in the mod but maybe the mod description needs an edit with a big "If you don't have cURL enabled on your forum do not use the reporting option!", as i've seen you answer this question (and i have done a few times) time and time again :)
11133
09-21-2011, 09:14 AM
thanks and one question, couse im lost
i wanna to integrate with reputation system
user when give reputation give +1
how to make this also +1 point
Partial (Weighted) Score here to be 100% or
Ted S
09-21-2011, 03:29 PM
Hi Ted, i know it's in the installtion file AND in the mod but maybe the mod description needs an edit with a big "If you don't have cURL enabled on your forum do not use the reporting option!", as i've seen you answer this question (and i have done a few times) time and time again :)
Actually I just need to fix a few lines of code so the cURL option is better checked. Soon soon...
Simon Lloyd
09-21-2011, 03:43 PM
Actually I just need to fix a few lines of code so the cURL option is better checked. Soon soon...How about checking for cURL...etc and then either hiding the selection if its not or making it unselectable?<?php
echo 'Curl: ', function_exists('curl_version') ? 'Enabled' : 'Disabled' . '
file_get_contents: ', file_get_contents(__FILE__) ? 'Enabled' : 'Disabled';
?>
Ted S
09-21-2011, 04:40 PM
How about checking for cURL...etc and then either hiding the selection if its not or making it unselectable?<?php
echo 'Curl: ', function_exists('curl_version') ? 'Enabled' : 'Disabled' . '
file_get_contents: ', file_get_contents(__FILE__) ? 'Enabled' : 'Disabled';
?>
The function_exists deal is about dead on... there's also a few tweaks in the actual cURL request which cause errors for some newer versions. In my other scripts I've solved this and just need an excuse to update HA to bring it in.
Simon Lloyd
09-21-2011, 06:34 PM
Ok, for an excuse, how about, if it's possible adding a "My Helpful Answers" link in the users public profile so that folk or indeed the owner of the profile can see all the posts that that user has had marked helpful?, i know that would be very useful (to coin a phrase :)) in my kind of forum.
And yes, i had the same problem with cURL enabled but had to turn off repotring becuase it gave some odd errors ;)
Wonksta
09-23-2011, 11:04 AM
Anyone here converted the phrases for this to 'Like' kind of like Facebook and if so how did your users respond?
Bill Bickley
09-30-2011, 12:09 PM
How do I show a page with the top helpful posts?
TIA.
Bill
Simon Lloyd
09-30-2011, 01:59 PM
How do I show a page with the top helpful posts?
TIA.
BillI believe its like this http://www.mysite.com/forum/helpfulanswers.php
designBox
09-30-2011, 02:51 PM
First of all, thank you for the great plugin.
My members like it.
However, since I updated recently to its latest version, I got an obvious error in the Member profil page.
From now, the Statistics box is printed 7 times in the same columns.
I use vBulletin 3.8.7;
How can I track and resolve this error?
Simon Lloyd
09-30-2011, 07:44 PM
have you got a pic? i Use vb3.8.7 and never had that problem, what other mods have you got installed?
designBox
09-30-2011, 08:20 PM
Thank you for your fast reply.
I attached a screenshot.
Yes, I use several other plugins.
Below are all of them + versions:
Album Pictures - Forum Home 2.0.0
All Albums 2.5
Article Forum 1.9
Automatic Thread Tagger 1.2.0
Cyb - Advanced Forum Statistics 6.6.1
Cyb - PayPal Donate 4.8.2
Display reputation comments given 3.8.001
Enhanced Reputation Checks 3.8.001
Geek Auto-Linker 6.0.8
Global Tag Cloud 1.02
GlowHost - Spam-O-Matic 1.2.7
Helpful Answers 2.0.6
Inactive Users Email Reminders 1.2.8
Is Bot 1.0.0
Members who have Visited 3.8.002
Personal Notepad 4.1
Postcount Variable in Printthread 1.0
Prevent DoublePosts 3.8.005
Rewrite Amazon Links 1.4
Sk Demographics 1.0
TCattd - The Image Resizer 1.2.8
Twitter in Forums and Site 1.0
vBCode table 0.1.7.1
vBSEO 3.5.0
vBSEO :: Sitemap Generator 3.0
vBulletin Project Tools 2.0.1
vBulletin Tweet Poster 1.0.6
vS-Invites System 2.0.0
[U.S. Military Life] Staff Application 1.3.1
BUT, I desactivated them all and the problem remains.
Any idea?
Simon Lloyd
09-30-2011, 08:52 PM
Sorry i can't help there maybe TedS can, i do know that the automatic thread tagger can have issues with this, can't remember what i did to remedy it though, it was years ago!
designBox
09-30-2011, 09:13 PM
Thanks anyway for trying.
Will wait the answer from Ted.
Simon Lloyd
10-01-2011, 04:42 AM
Maybe you could try replacing the helpfulanswers.php file in your forum root with this one https://vborg.vbsupport.ru/showpost.php?p=1976983&postcount=1335 - might help, can't make it worse :)
designBox
10-01-2011, 10:07 PM
I tried this but no luck.
The boxes are still replicated several times :(
Bill Bickley
10-03-2011, 12:10 PM
Works like a charm!
I read the warning about switching to and from the 10-point scale. How do I run those queries? Within vBulletin?
.....the following queries. Failure to do so will make for some very odd ratings.
UPDATE post SET goodrank = '', totalrank = '';
DELETE FROM helpfulanswer;
Bill
christon26
10-03-2011, 07:02 PM
Hi, on the profile page if the member has not rated any posts the section is just blank. I would like to add a condition that goes something like this:
<ul class="list_no_decoration">
<if condition="MEMBER HAS RATED POSTS">
<if condition="$helpfulanswer[count]">
<li><span class="shade"><phrase 1="$prepared[username]" 2="$helpfulanswer[count]">$vbphrase[helpfulanswer_postsrated]</phrase></span></li>
</if>
<if condition="$helpfulposts[goodranks]">
<li><span class="shade"><phrase 1="$prepared[username]" 2="$helpfulposts[goodranks]" 3="$helpfulposts[totalranks]">$vbphrase[helpfulanswer_postshavebeen]</phrase></li>
</if>
</else>
<li><span class="shade"><phrase 1="$prepared[username]">$vbphrase[helpfulanswer_noratings]</phrase></span></li>
{I have already created the phrase for this}
</ul>Is this possible? What conditional would I use, or would I have to add new code?
Ted S
10-04-2011, 12:40 AM
Hi, on the profile page if the member has not rated any posts the section is just blank. I would like to add a condition that goes something like this:
Is this possible? What conditional would I use, or would I have to add new code?
Use the $show variables rate_helpfulanswer to see if they've voted and guest to be sure it's a member.
christon26
10-04-2011, 01:32 AM
Thanx Ted :) How exactly would I format that?
designBox
10-05-2011, 08:03 AM
Ted, maybe any suggestion for my problem (https://vborg.vbsupport.ru/showpost.php?p=2251727&postcount=1687)?
Ted S
10-06-2011, 01:16 AM
Thank you for your fast reply.
I attached a screenshot.
What happens when you uninstall the modification or disable the stats feature?
designBox
10-06-2011, 08:41 AM
When I disable the plugins, nothing happens. If you mean, is there any error message, no, there isn't.
I haven't tried yet to completly uninstall. I'll try later today and let you know.
Thank you for your help.
Ted S
10-06-2011, 04:09 PM
When I disable the plugins, nothing happens. If you mean, is there any error message, no, there isn't.
I haven't tried yet to completly uninstall. I'll try later today and let you know.
Thank you for your help.
If you disable the plugin and it still shows the block there is something else in your system using the table records and you have a mod conflict.
jl255
10-07-2011, 08:15 AM
Nope. The profile queries the database to get those results and since we don't want one query for every post on a page, they don't work. Down the road I will add another table to store votes per user so they can be shown but this does not exist yet in this add-on.
hi ted, any updates on this essential feature? being able to show members how many they have earned is quite critical in encouraging other members to make good posts as it is displayed clearly for all to see. hope you can seriously consider this and adding it quickly :)
designBox
10-07-2011, 03:04 PM
If you disable the plugin and it still shows the block there is something else in your system using the table records and you have a mod conflict.
Sorry, my mistake.
When I disable the plugin, all boxes are removed as well as all functions.
When I said: "Nothing happens", I was meaning "Nothing BAD happens". :)
I tried today to uninstall the plugin. Problemless.
However, reinstalling it deleted all logs and customizations.
I saw the following message after installation:
Updating to 2.0...
Updating user records to reflect votes. This will take a minute...
Done with 2.0Updating table...
Updating ALL post records. This will take a minute...
Done.Starting core install
Done with base install
Hopefully, I did a backup of my database previously and was able to restore everything.
Any idea?
Ted S
10-07-2011, 04:43 PM
Any idea?
I'm not sure what the issue is?
When you remove a plugin it removes it completely...
designBox
10-07-2011, 05:10 PM
When you remove a plugin it removes it completely...
At least, it doesn't appear anymore on the profile page as well as in the admincp.
designBox
10-07-2011, 06:22 PM
Could it be caused by a table misconfiguration.
I mean I remember being on 1.9.6 and upgraded to 2.0.6.
What if the tables haven't been updated during the upgrade?
Ted S
10-07-2011, 07:50 PM
Could it be caused by a table misconfiguration.
I mean I remember being on 1.9.6 and upgraded to 2.0.6.
What if the tables haven't been updated during the upgrade?
Uninstalling the mod removes the tables. A new install will create them all over again using the latest setup.
jl255
10-11-2011, 02:01 PM
i guess we won't be seeing the possibility of inserting the number of positive/negative votes a user has on their postbit anytime soon?
Ted S
10-11-2011, 08:56 PM
i guess we won't be seeing the possibility of inserting the number of positive/negative votes a user has on their postbit anytime soon?
Given the way the mod stores data it's not an ideal query.
The solution is to start updating the user table with counts... which fields would you want?
- overall # of votes theyve given
- # of negative votes theyve given
- # of positive votes theyve given
- overall # of votes theyve recieved
etc...
jl255
10-12-2011, 02:27 AM
Given the way the mod stores data it's not an ideal query.
The solution is to start updating the user table with counts... which fields would you want?
- overall # of votes theyve given
- # of negative votes theyve given
- # of positive votes theyve given
- overall # of votes theyve recieved
etc...
actually those 4 you mentioned are exactly just what i need. :)
Ted S
10-12-2011, 03:32 AM
actually those 4 you mentioned are exactly just what i need. :)
I'll let other users chime in on this for a while as each field requires more overhead [per vote and in storage] as well as cluttering up the user table which is a already being accessed all the stinking time.
Basically I need to see a lot of interest behind each field as the changes, used or not, will impact everyone with the mod.
jl255
10-12-2011, 05:02 AM
I'll let other users chime in on this for a while as each field requires more overhead [per vote and in storage] as well as cluttering up the user table which is a already being accessed all the stinking time.
Basically I need to see a lot of interest behind each field as the changes, used or not, will impact everyone with the mod.
yup understood. but just like the 'thank you' hack, which already has this, this is one key feature missing from this mod.
the problem now is members are not so keen on giving credit to others since no one even knows much abt this feature as it is hardly seen apart from the thumbs and down on the posts. having the number of thumbs up/down given to you shown clearly under your avatar, will surely make members much more interested to earn more thumbs up and to give to others as well, since everyone can see their counts anywhere they post. :)
Simon Lloyd
10-12-2011, 05:55 AM
Ted don't you already provide 3 of those in the userprofile stats? isn't possible to already use that query? currently you show:
Helpful Postings
Simon Lloyd has Rated xx posts
Simon Lloyd's Posts have been rated good xxx out of xxx timesWould it not be possible to use that in the postbit (split the variables out of the last statement to give the 3 seperate lines, Helpful Answers xx, Positive Votes xx, Negative Votes xx), i remember i asked for just the one (number of answers marked helpful in postbit) here https://vborg.vbsupport.ru/showpost.php?p=2248700&postcount=1681 :)
But if the load on server is going to outweigh the usefulness of that then forget it, we can live without it!
Ted S
10-12-2011, 03:31 PM
Ted don't you already provide 3 of those in the userprofile stats? isn't possible to already use that query? currently you show:
Would it not be possible to use that in the postbit (split the variables out of the last statement to give the 3 seperate lines, Helpful Answers xx, Positive Votes xx, Negative Votes xx), i remember i asked for just the one (number of answers marked helpful in postbit) here https://vborg.vbsupport.ru/showpost.php?p=2248700&postcount=1681 :)
But if the load on server is going to outweigh the usefulness of that then forget it, we can live without it!
Simon you remember my mods better than I do. Whoops! :eek:
There are two fields that you can call [which isn't all 4 but hey it's a start]
hagoodrank
hatotalrank
These deal with what the user does and not with what's done to their posts. You can call them up from the postbit template if you like and format them in their own box, under the post count, etc.
As for adding others, the issue is subqueries. I [apparently] added these two in all 3 versions of the mod on demand but they calculate as votes come in so there is literally a field within user's profile table for each. If you for example wanted to figure out the number of votes they had left in a certain forum you would need to run a query... 10 posts per page and you get 10 queries... very very ineffective, thus avoided.
jl255
10-12-2011, 05:24 PM
think i tried those 2 before... doesn't work on postbit. if i'm not mistaken, i asked you abt them before and you said they only work on profile page.
$hagoodrank
$hatotalrank
Simon Lloyd
10-12-2011, 07:04 PM
Hi Ted, i can confirm this, i tried using the variable a few different ways, have you an idea of how to call it for the postbit?
Ted S
10-12-2011, 07:05 PM
think i tried those 2 before... doesn't work on postbit. if i'm not mistaken, i asked you abt them before and you said they only work on profile page.
$hagoodrank
$hatotalrank
In the postbit the variables are called up per post using the array $post[] so $post[hagoodrank] or such. $hagoodrank on it's own would be blank as it's not defined...
This is explained in the 2nd post of the mod: https://vborg.vbsupport.ru/showpost.php?p=1733465&postcount=2
Simon Lloyd
10-12-2011, 07:17 PM
Yes i remember :), however using $post[hagoodrank] will only show if that post has been ranked not your overall helpfulanswers, using this post[$hatotalrank] just shows []
Simon Lloyd
10-12-2011, 07:21 PM
All your posted variables in that post show like this in postbit - The total number of ratings
- The number of good ratings
0 - The number of bad ratings
0 - True if the post is positive overall (more good than bad ratings)
- True if the user can rate the post (false if they are banned or have rated it).
- True if the user has already rated the post.
0 - The number of good votes the user's posts have
0 - The total rank the user's posts have
0 - The number of bad votes the user's posts have
- The total ratings of a member's ppsts
- The total good ratings of a member's posts
- The total bad ratings of a member's posts
Trust me i don't have zero votes :)
Ted S
10-12-2011, 09:10 PM
Yes i remember :), however using $post[hagoodrank] will only show if that post has been ranked not your overall helpfulanswers, using this post[$hatotalrank] just shows []
$post[hatotalrank] or $post['hatotalrank']... refers to the variable hatotalrank from the $post[] array where as $post[$hatotalrank] tries to call an element $hatotalrank in an array that doesn't exist.
I don't have a 3.8 server up anymore, so debugging has become a bit harder but if you look at the postbit template and don't see a lot of calls $post then I'm remembering the wrong array name. It should be exactly the same context as the variable for posts or joindate.
Simon Lloyd
10-12-2011, 10:44 PM
Ted, you still have access to my test site, if you've forgotten i'll pm you details.
I just added all your variables as a test like this$post[totalrank] - The total number of ratings <br />
$post[goodrank] - The number of good ratings<br />
$post[badrank] - The number of bad ratings <br />
$post[helpfulgood] - True if the post is positive overall (more good than bad ratings)<br />
$show[rate_helpfulanswer] - True if the user can rate the post (false if they are banned or have rated it).<br />
$post[rate_helpfulanswer] - True if the user can rate the post (false if they are banned or have rated it).<br />
$post[helpfulanswerid] - True if the user has already rated the post.<br />
$post[hagoodrank] - The number of good votes the user's posts have<br />
$post[hatotalrank] - The total rank the user's posts have<br />
$post[habadrank] - The number of bad votes the user's posts have<br />
$helpfulposts[totalranks] - The total ratings of a member's ppsts<br />
$helpfulposts[goodranks] - The total good ratings of a member's posts<br />
$helpfulposts[badranks] - The total bad ratings of a member's posts<br />
$post[totalranks]<br />
$post[goodranks]<br />
$post[badranks]
Simon Lloyd
10-12-2011, 10:50 PM
Ah, incommunicado eh? right then, email me at simonDOTlloydATthecodecageDOTcom and i'll send you the details :)
Wonksta
10-13-2011, 04:15 AM
Ted When I get notified of a Helpful Post and click to view which post it doesn't look anything like your Screeny found here:
https://vborg.vbsupport.ru/attachment.php?attachmentid=94059&d=1233715795
Instead its just two columns doesn't say the thread title or anything very very plain and just a link to a post number.
Any ideaS?
Simon Lloyd
10-13-2011, 04:26 AM
Ted When I get notified of a Helpful Post and click to view which post it doesn't look anything like your Screeny found here:
https://vborg.vbsupport.ru/attachment.php?attachmentid=94059&d=1233715795
Instead its just two columns doesn't say the thread title or anything very very plain and just a link to a post number.
Any ideaS?When YOU get notification you go to YOUR voted helpful answers, the pic shown there is the www.yoursite.com/forum/helpfulanswers.php table
Wonksta
10-13-2011, 04:48 AM
Ahhhhh right anyway to make the page that shows what was voted in the UserCP more prettier similar to that .php file?
Simon Lloyd
10-13-2011, 05:33 AM
It will require changing the templates and core files to do that.
Ted S
10-13-2011, 02:37 PM
It should already pick up your css styles. If you don't like how those styles look, you can override them by editing the template for that page.
Simon Lloyd
10-13-2011, 04:09 PM
Ted i believe he means how this looks http://www.mysite.com/forum/profile.php?do=helpfulans rather than http://www.mysite.com/forum/helpfulanswers.php the first shows just the thread number along with the title and whether it's Good or not the last is a more informative table (well mine is :) take a look on my test board)
jl255
10-15-2011, 02:17 AM
any updates on the postbit stats request? just wondering if i shld be waiting around....
Ted S
10-15-2011, 02:38 AM
any updates on the postbit stats request? just wondering if i shld be waiting around....
Nope.
Hopefully I'll have a chance to take a look in the next week or two and see if there's a just something to fix or if the feature just doesn't do what you want.
jl255
10-25-2011, 12:35 PM
Nope.
Hopefully I'll have a chance to take a look in the next week or two and see if there's a just something to fix or if the feature just doesn't do what you want.
bump for updates?
sanika_p
01-14-2012, 11:13 PM
You can do so when moving to the section where the vote is not possible, assessment set to zero?
Ted S
01-14-2012, 11:45 PM
You can do so when moving to the section where the vote is not possible, assessment set to zero?
I don't understand your post, please rephrase it.
sanika_p
01-15-2012, 07:06 AM
I have forums in which the rank is Deny or Allow from admincp (Allow Helpful Answers?).
When I move thread wrom allow forum to deny forum - rank should be zero. You can do this?
Ted S
01-15-2012, 10:39 PM
I have forums in which the rank is Deny or Allow from admincp (Allow Helpful Answers?).
When I move thread wrom allow forum to deny forum - rank should be zero. You can do this?
I'm sorry but I don't follow what you are saying... Deny or Allow? Rank should be zero?
trotskid
02-06-2012, 09:01 AM
Very nice hack !
To use it optimal for my board i have a question.
I will only use the 10 point sytem :
It is possible (with a change) to rate only first post,and not the answers ?
When yes,how?
Thank you.
The script has an option to disable voting on the first post, simply look at the code in the XML file for this trigger (search by variable name) and reverse the condition!
Hi. What exactly must change in the xml file?
Ted S
02-06-2012, 06:57 PM
Hi. What exactly must change in the xml file?
You'll need to look through the code to see where it checks for disabling the first post and reverse that to disabling everything else.
If you don't have basic coding skills I would not suggest doing this yourself.
trotskid
02-07-2012, 06:40 AM
You'll need to look through the code to see where it checks for disabling the first post and reverse that to disabling everything else.
If you don't have basic coding skills I would not suggest doing this yourself.
This is why I wonder what changes must be made to reverse the function :p
Could you take a look? Also would be a good idea implement this option :cool:
Thanks.
Ted S
02-07-2012, 07:40 AM
This is why I wonder what changes must be made to reverse the function
The basics are explained above... Open the code, browse around, look for the variables by name... it's all well decently formatted and occasionally commented.
Could you take a look? Also would be a good idea implement this option :cool:
Thanks.There's been 3 or 4 requests for it in the couple years this mod has been out. Lots of other ideas way higher on the next update list but perhaps down the road if we do a more Q&A focused featureset.
trotskid
02-07-2012, 08:32 AM
The basics are explained above... Open the code, browse around, look for the variables by name... it's all well decently formatted and occasionally commented.
Ok, but I haven't much code knowledge..
Perhaps need to make changes here?
// may end up disabling this all for the first post
if($this->registry->options['helpans_hidefirst'] AND $this->post['postid'] == $this->thread['firstpostid']){
$show['helpfulanswer'] = false;
$show['rate_helpfulanswer'] = false;
trotskid
02-07-2012, 04:47 PM
Ok, but I haven't much code knowledge..
Perhaps need to make changes here?
// may end up disabling this all for the first post
if($this->registry->options['helpans_hidefirst'] AND $this->post['postid'] == $this->thread['firstpostid']){
$show['helpfulanswer'] = false;
$show['rate_helpfulanswer'] = false;
No help on this mod? Ok, forget this one in my forum..
Thanks
Simon Lloyd
02-07-2012, 05:29 PM
No help on this mod? Ok, forget this one in my forum..
ThanksYou're kidding right? you expected free help on a free mod in the timeframe you wanted?:down:
To post this morning and then post a "forget this..." 8 hours later because someone didn't "snap to it" for you means that i wont help you (and i was when i visited this thread last night!), you really dont deserve it!
Sorry but that really annoyed me!
trotskid
02-07-2012, 05:43 PM
You're kidding right? you expected free help on a free mod in the timeframe you wanted?:down:
To post this morning and then post a "forget this..." 8 hours later because someone didn't "snap to it" for you means that i wont help you (and i was when i visited this thread last night!), you really dont deserve it!
Sorry but that really annoyed me!
You right.
My fault :rolleyes:. I'm very grateful for this great mod.
Simon Lloyd
02-07-2012, 06:28 PM
It's too late for me to help you now as im off out, i'll take a look later and post tomorrow!
Ted S
02-07-2012, 06:36 PM
No help on this mod? Ok, forget this one in my forum.
If the support on a _free_ mod doesn't meet your needs, by all means don't use it. In fact, I'd suggest not using any of my mods if that's the case. I can't promise a support turn around time and try to be up front about that.
Good luck with your site.
trotskid
02-08-2012, 04:56 PM
If the support on a _free_ mod doesn't meet your needs, by all means don't use it. In fact, I'd suggest not using any of my mods if that's the case. I can't promise a support turn around time and try to be up front about that.
Good luck with your site.
We're gladly with your mod. Just needed a little change.
No problem.. Thanks anyway :)
Edit: Your one poor sport that's for sure - TheLastSuperman
Ted S
02-08-2012, 05:41 PM
We're gladly with your mod. Just needed a little change.
No problem.. Thanks anyway :)
REMOVED
Insulting members of the community, and especially members who help support this mod, is no way to earn help or any other positive attention.
trotskid
02-08-2012, 05:58 PM
Insulting members of the community, and especially members who help support this mod, is no way to earn help or any other positive attention.
Don't kidding me. There is no help about my post, not from your nor your "member". So your mod is definitely out in my forum :) :) :) :). No working.
Thanks anyway, no problem.
regards
Ted S
02-08-2012, 07:56 PM
So your mod is definitely out in my forum
Perfect.
trotskid
02-10-2012, 01:40 PM
Perfect.
I acknowledge that I have not had appropriate words, I hope to forget this incident. I apologize, I had other things in mind :o
supermak
04-11-2012, 12:09 AM
Hi, everytime somebody clicks on the like/not like button, this message appears:
Warning: curl_setopt() expects parameter 2 to be long, string given in [path]/helpfulanswers.php on line 434
any help?
Ted S
04-11-2012, 01:43 AM
Hi, everytime somebody clicks on the like/not like button, this message appears:
Warning: curl_setopt() expects parameter 2 to be long, string given in [path]/helpfulanswers.php on line 434
any help?
For the numerous people who both PM and post to the forum... please don't.
When you do this it means the author has to check their PMs, be sure the same person is asking the same exact question, repost the answer so others reading it know there's no strange bug.
Posting to the mod thread is always the best way to get help and why I don't do PM support anymore.
If you do double post, take the time to go back to the thread and note it so others know the issue is resolved.
So for anyone else asking, the latest version should address this but if not, just turn off the reporting option. Which I thank you for having left on in the first place :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.