vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - [AJAX] Helpful Answers - Allow users to rate individual posts (https://vborg.vbsupport.ru/showthread.php?t=233296)

FractalizeR 06-25-2010 06:53 AM

Another fix:
There was some problem with phrasing. Just a typo I think. Curly bracers were incorrectly placed near vb:rawphrase helpfulanswer_top which led to the name of the phrase displayed instead of it's contents on the page with helpful phrases list on forum (http://www.example.com/helpfulanswers.php). Corrected version follows:

HTML Code:

                <template name="helpful_answers_topten_bit" templatetype="template" date="0" username="Ted S" version="2.1.4">
                <![CDATA[
                       
                        <tr>

                                <td class="alt1">{vb:rawphrase helpfulanswer_top {vb:raw postid},{vb:raw userid}} <a href="./showthread.php?p={vb:raw postid}#post{vb:raw postid}">{vb:raw title}</a></td>
                                <td class="alt1" align="center">{vb:raw ftitle}</td>
                                <td class="alt1" align="center">{vb:raw avgrank}</td>
                                <td class="alt1" align="center">{vb:raw totalrank}</td>
                                <td class="alt1" align="center">{vb:raw lastvote}</td>
                        </tr>                       
                       
                ]]></template>
               
                <template name="helpful_answers_top_bit" templatetype="template" date="0" username="Ted S" version="2.1.4">
                <![CDATA[
                       
                        <tr>

                                <td class="alt1">{vb:rawphrase helpfulanswer_top {vb:raw postid},{vb:raw userid}} <a href="./showthread.php?p={vb:raw postid}#post{vb:raw postid}">{vb:raw title}</a></td>
                                <td class="alt1" align="center">{vb:raw ftitle}</td>
                                <td class="alt1" align="center">{vb:raw goodrank} ({vb:raw goodpercent}%)</td>                               
                                <td class="alt1" align="center">{vb:raw totalrank}</td>
                                <td class="alt1" align="center">{vb:raw lastvote}</td>
                        </tr>                       
                       
                ]]></template>

Ted, can you please verify and incorporate my fixes?

FractalizeR 06-25-2010 07:04 AM

Another fix:

Problem:
Uncached templates when displaying http://www.example.com/helpfulanswers.php (if $_REQUEST['do'] is empty - templates were not cached).

Fix:
Add the $actiontemplates['none'] to the $actitontemplates section like below:
PHP Code:

// pre-cache templates used by specific actions
$actiontemplates = array(    
    
'topanswers' => array(
        
'helpful_answers',
        
'helpful_answers_top',
        
'helpful_answers_top_bit',
        
'helpful_answers_topten_bit',
        
'forumdisplay_sortarrow',
    )
);

$actiontemplates['none'] = & $actiontemplates['topanswers']; 


Ted S 06-25-2010 08:31 PM

Thanks FractalizeR. Ive been on the road but will get on this all this evening.

FractalizeR 06-26-2010 07:40 AM

Welcome ;)

linuxututs 06-27-2010 01:28 AM

Thanks Ted; Used this back with 3.8.x version and loved it.
subscribed...
Thanks,

Ted S 06-27-2010 11:30 PM

2.3.1 is a bug fix release thanks to the hard work of FractalizeR who found and posted solves for these issues. These are minor bugs but an update is required for anyone who wishes to use profile stats.

To update upload the new version of helpfulanswers.php and install the latest xml plugin.

You can modify the profile display through the template helpful_statsbit

What's coming next for HA:
- The ability to close posts based on votes (nightly cron)
- Moderation for voting and banning of abusive members
- Daily voting cap by usergroup
- Additional voting styles / displays
- Updated integration of Reputation System to accommodate weighted scale, limits

pc-forum.dk 06-28-2010 11:12 AM

As I can see, i'm not the only one who experience that nothing shows in the threads. I have both Bulk Enabled it, and checked under forum manager that every single one of them has it enabled. But still, nothing shows up. What to do? What have I missed? What should I be looking for? Sorry for the inconvenience :(

sticky 06-28-2010 12:53 PM

Quote:

Originally Posted by Ted S (Post 2060766)
2.3.1 is a bug fix release thanks to the hard work of FractalizeR who found and posted solves for these issues. These are minor bugs but an update is required for anyone who wishes to use profile stats.

To update upload the new version of helpfulanswers.php and install the latest xml plugin.

You can modify the profile display through the template helpful_statsbit

What's coming next for HA:
- The ability to close posts based on votes (nightly cron)
- Moderation for voting and banning of abusive members
- Daily voting cap by usergroup
- Additional voting styles / displays
- Updated integration of Reputation System to accommodate weighted scale, limits

These are excellent changes, thank you!

Would it be possible to add excluding certain usergroups from voting?

Also, add the ability to exclude negative reputations from voting?

Modertaion for voting and banning of abusive members is a great addition as is the ability to close posts! Is that close posts or close threads? As in, if it has too many negative ratings the post will no longer show?

vivamexico55 06-28-2010 07:29 PM

Quote:

Originally Posted by pc-forum.dk (Post 2061000)
As I can see, i'm not the only one who experience that nothing shows in the threads. I have both Bulk Enabled it, and checked under forum manager that every single one of them has it enabled. But still, nothing shows up. What to do? What have I missed? What should I be looking for? Sorry for the inconvenience :(

Do you use a custom skin? Also which VB4 version do you use?

Ted S 06-28-2010 11:22 PM

Quote:

Originally Posted by pc-forum.dk (Post 2061000)
As I can see, i'm not the only one who experience that nothing shows in the threads. I have both Bulk Enabled it, and checked under forum manager that every single one of them has it enabled. But still, nothing shows up. What to do? What have I missed? What should I be looking for? Sorry for the inconvenience :(

Are you using a customized or default template?

What version of vb?

anupam_luv 06-29-2010 12:50 AM

Quote:

Originally Posted by Ted S (Post 2061403)
Are you using a customized or default template?

What version of vb?

I'm also facing this problem, I cant see any message or thumbs up pic to rate .... Im using custom template with only some style vars changed to get custom colors...

Plz help...

Ted S 06-29-2010 02:43 AM

Quote:

Originally Posted by anupam_luv (Post 2061432)
I'm also facing this problem, I cant see any message or thumbs up pic to rate .... Im using custom template with only some style vars changed to get custom colors...

Plz help...

First check that you have the mod turned on and enabled for the forum you are viewing threads in.

Copy the postbit / postbit legacy template and try reverting it. If that fixes it you'll know why.

FractalizeR 06-29-2010 06:32 AM

Quote:

Originally Posted by pc-forum.dk (Post 2061000)
As I can see, i'm not the only one who experience that nothing shows in the threads. I have both Bulk Enabled it, and checked under forum manager that every single one of them has it enabled. But still, nothing shows up. What to do? What have I missed? What should I be looking for? Sorry for the inconvenience :(

The first thing you need to check is if your style templates are original or at least if default template hooks are in place there.

pc-forum.dk 06-29-2010 07:08 AM

I have tried with both the default skin and with a customized, neither works. I am pretty sure I have enabled it, but again - I might have misunderstood how to enable it. As I said in my post, I have enabled it under all of my forums under Forum Manager and by Bulk enabling.

Ted S 06-30-2010 04:07 AM

Quote:

Originally Posted by pc-forum.dk (Post 2061549)
I have tried with both the default skin and with a customized, neither works. I am pretty sure I have enabled it, but again - I might have misunderstood how to enable it. As I said in my post, I have enabled it under all of my forums under Forum Manager and by Bulk enabling.

Check an individual forum to make sure the setting 'stuck'. Also check your overall settings to be sure the modifcation is on and not set to hide its self on the post you are viewing.

pc-forum.dk 06-30-2010 07:40 AM

I have checked it under every single forum - and it is on. And if you mean Bulk by overal settings, then yes. So I'm actually not sure what you mean by "not set to hide its self on the post you are viewing."

vicelover 06-30-2010 12:47 PM

Hi, Ted S

Can I use this mod for Blog Entries and CMS articles? If no, can we add this feature. In that way, not only can user rate the thread/post, but also blog entries and CMS articles.

Best Regards.

Ted S 06-30-2010 04:38 PM

Quote:

Originally Posted by vicelover (Post 2062221)
Hi, Ted S

Can I use this mod for Blog Entries and CMS articles? If no, can we add this feature. In that way, not only can user rate the thread/post, but also blog entries and CMS articles.

Best Regards.

You would need a seperate mod to do this.

vivamexico55 06-30-2010 07:03 PM

Ted, do you think uninstalling and reinstalling would fix the fact that it doesn't show on my forum?

FractalizeR 07-01-2010 06:19 PM

BUG:
With "Hide Negative Posts" enabled and "Hide Negative Posts - Count" > 0 all unvoted posts are hidden.

The cause:
Code:

Line 954 in xml:
if($vbulletin->options['helpans_hidelow'] AND (($post['goodrank'] - $post['totalrank']) < $vbulletin->options['helpans_hidelownum']) ){

The solution:
Change the above line to:
Code:

if($vbulletin->options['helpans_hidelow'] AND (($post['totalrank'] - $post['goodrank']) > $vbulletin->options['helpans_hidelownum']) ){

FractalizeR 07-01-2010 07:28 PM

Phrasing bug:
Template helpful_statsbit:

There should be something like this:

HTML Code:

            <dl class="stats">
                <dt>{vb:rawphrase helpfulanswer_postshavebeen}</dt>
                <dd>{vb:raw helpfulanswer_goodranks} {vb:rawphrase helpfulanswer_from} {vb:raw helpfulanswer_totalranks}</dd>
            </dl>

Because current content is rendered incorrectly. This is not a fix, I am still looking into issue. Can you look also? I can't quite understand, what really should be there.

Ted S 07-02-2010 05:45 AM

Quote:

Originally Posted by FractalizeR (Post 2062886)
BUG:
With "Hide Negative Posts" enabled and "Hide Negative Posts - Count" > 0 all unvoted posts are hidden.

The cause:
Code:

Line 954 in xml:
if($vbulletin->options['helpans_hidelow'] AND (($post['goodrank'] - $post['totalrank']) < $vbulletin->options['helpans_hidelownum']) ){

The solution:
Change the above line to:
Code:

if($vbulletin->options['helpans_hidelow'] AND (($post['totalrank'] - $post['goodrank']) > $vbulletin->options['helpans_hidelownum']) ){

Good catch, although anyone sending this over 0 is setting themselves up for failure...

Ted S 07-02-2010 05:46 AM

Quote:

Originally Posted by vivamexico55 (Post 2062351)
Ted, do you think uninstalling and reinstalling would fix the fact that it doesn't show on my forum?

It's possible but unlikely to help. The only other solution I can offer is to take a look myself if you are comfertable with me logging in to your site.

Astyanax 07-03-2010 10:27 PM

I will use this MOD but I dont like the look of the thumb up and down. Can you update with more modern thumb icons?

FractalizeR 07-04-2010 06:53 AM

Have you checked options?

Astyanax 07-04-2010 07:44 AM

Quote:

Originally Posted by FractalizeR (Post 2064221)
Have you checked options?

Yes, but the thumbs are still ugly. Why not use something like this: http://www.psdgraphics.com/wp-conten...down-icons.jpg

or this: http://static-p3.fotolia.com/jpg/00/...kDrLbNxSJI.jpg

Search results on Google: http://www.google.se/images?um=1&hl=...=&oq=&gs_rfai=

Ted S 07-04-2010 09:20 AM

Quote:

Originally Posted by Astyanax (Post 2064235)
Yes, but the thumbs are still ugly. Why not use something like this: http://www.psdgraphics.com/wp-conten...down-icons.jpg

or this: http://static-p3.fotolia.com/jpg/00/...kDrLbNxSJI.jpg

Search results on Google: http://www.google.se/images?um=1&hl=...=&oq=&gs_rfai=

You can use whatever images you want for your site. The ones in this mod were created by users for public use; I can not include general images found on the web, they are copyrighted.

Astyanax 07-04-2010 09:23 AM

I thought icons available in icon archives on Internet were free to use? Anyway, I can change this myself I guess?

FractalizeR 07-04-2010 09:59 AM

If you find a good set of icons, please post them here

Astyanax 07-04-2010 10:19 AM

Quote:

Originally Posted by FractalizeR (Post 2064264)
If you find a good set of icons, please post them here

Ok!

http://www.freeiconsdownload.com/Fre...ads.asp?id=265

http://www.freeiconsdownload.com/Fre...ads.asp?id=307

Smaller icons:

http://www.freeiconsdownload.com/Fre...ads.asp?id=227

http://www.freeiconsdownload.com/Fre...ads.asp?id=608

marr 07-04-2010 12:08 PM

> I'm also facing this problem, I cant see any message or thumbs up pic to rate

same here. vb 4.0.4 Patch Level 1, double checked notice in red. unregistered users see links tho.
when user signed in - there is empty div per post:

HTML Code:

<div id="helpfulanswers_box_16" style="text-align:right;">               
  <br><hr size="1" style="color:$stylevar[tborder_bgcolor]">
</div>

thanks

Ted S 07-04-2010 09:49 PM

Quote:

Originally Posted by Astyanax (Post 2064254)
I thought icons available in icon archives on Internet were free to use? Anyway, I can change this myself I guess?

Not at all. An image is copyrighted unless stated otherwise. This mod includes a few sites that most people like; if you want to use your own, the mod fully supports that.

fulviods 07-05-2010 12:05 PM

I would like to use helpful answers only on some forums and not all. I also would like that this system increase reputation, but i dont want to activate/show the reputation system. It is possible? If I dont activate the reputation system in vb but inside the helpful answers setting i activate reputation will it work? Thanks!

TF4U 07-05-2010 01:41 PM

I am using vbulletin 4.0.4 and tried my level best to get this mod work for my forum. But I failed. For unregistered user it shows but not for registered users. I have enabled the helpful ans in vbulletin options as well as in forums.

bposner 07-06-2010 09:47 PM

Quote:

Originally Posted by TF4U (Post 2064808)
I am using vbulletin 4.0.4 and tried my level best to get this mod work for my forum. But I failed. For unregistered user it shows but not for registered users. I have enabled the helpful ans in vbulletin options as well as in forums.

I just tried this, and it works the same way for my install too (had the guest access on) which is as it should be and requests I register, but users that are logged in can't see the little question.

bposner 07-06-2010 10:24 PM

I had posted this in the wrong version of the forum.. (3.8) so I'll re post here in the correct version forum.

Installed this, see nothing.. ?? no errors on install, using version 2.3.1 of this product.
forum is enabled and went through the posts here and no suggestion seemed to work. simple install. I do see that if I check the ability for guests to see it, the question does show up, so I know the forum is activated, but other users, even ADMIN can't see it. I've tried different browsers sill no question, only guests and only if the guest option is checked.
Thanks

Ted S 07-07-2010 04:51 AM

Quote:

Originally Posted by bposner (Post 2065548)
I had posted this in the wrong version of the forum.. (3.8) so I'll re post here in the correct version forum.

Installed this, see nothing.. ?? no errors on install, using version 2.3.1 of this product.
forum is enabled and went through the posts here and no suggestion seemed to work. simple install. I do see that if I check the ability for guests to see it, the question does show up, so I know the forum is activated, but other users, even ADMIN can't see it. I've tried different browsers sill no question, only guests and only if the guest option is checked.
Thanks

What version of vBulletin are you running?

bposner 07-07-2010 02:39 PM

Quote:

Originally Posted by Ted S (Post 2065693)
What version of vBulletin are you running?

thank you for your reply.
4.0.4

bposner 07-07-2010 03:06 PM

Here are my settings
https://vborg.vbsupport.ru/external/2010/07/62.jpg
https://vborg.vbsupport.ru/external/2010/07/63.jpg
https://vborg.vbsupport.ru/external/2010/07/64.jpg

TF4U 07-07-2010 05:08 PM

@TED
have u tested ur mod in vbulletin 4.0.4? asking u this becoz..i have had a hell of time and energy in process of making this mod work for me..nothing happend..


All times are GMT. The time now is 12:15 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02802 seconds
  • Memory Usage 1,865KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete