vb.org Archive

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

Ted S 02-26-2009 03:14 AM

Quote:

Originally Posted by popowich (Post 1754783)
Is there a way to allow guests to rate posts?

I'd even be OK with a cookie check that only lets them rate up to 10 posts before registering.

My forum is mostly visitor traffic reading how-to information.

It would be great if this worked like a visit to Microsoft support sites and you get to rate the thread.

The simple thumbs up or down is fine, I just want guests to be able to rate the posts too.

Thank you for this product. :D

-Raymond

Sorry but guest ranking isn't possible with the feature currently but it wouldn't be that hard to make it work. Just remove the few places that check if someone is a user and you're all set (ok ok so that's not super easy either).

Regs 02-26-2009 03:31 AM

Quote:

Originally Posted by Ted S (Post 1754871)
That's a good spot or you can use it lower after the thank you hack. It just depends on where you want things to show.

Awesome mod Ted S!

The same issue appears for people with the blog mod installed (blog this post icon). Perhaps there is a better way to do the automatic template edits/insertions to take this into account?

Cheers,

Regs.

Ted S 02-26-2009 04:07 AM

Unfortunately automated is automated... there's one variable and a lot of plugins use it. I've done my best to try and make this addon execute after others but I can't make things automated without hooking in at the same place...

Thus the option exists for a manual override.

Regs 02-26-2009 04:01 PM

Thanks Ted, wasn't aware of the one variable thing.

Cheers,

Regs.

dooch 02-27-2009 08:06 AM

getting a mysql error on product import

Code:

Database error in vBulletin 3.8.1:

Invalid SQL:

                                REPLACE INTO setting
                                        (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, validationcode, blacklist, product)
                                VALUES
                                        (
                                        'helpans_manual',
                                        'helpfulanswers',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        10,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_hidefirst',
                                        'helpfulanswers',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        15,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_neg',
                                        'helpfulanswers',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        20,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_banned',
                                        'helpfulanswers',
                                        '',
                                        '',
                                        'text',
                                        '',
                                        30,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_top',
                                        'helpfulanswers',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        40,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_self',
                                        'helpfulanswers',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        45,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_min',
                                        'helpfulanswers',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        50,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_minnum',
                                        'helpfulanswers',
                                        '10',
                                        '10',
                                        'text',
                                        '',
                                        55,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_limit',
                                        'helpfulanswers',
                                        '',
                                        '',
                                        'text',
                                        '',
                                        60,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_stats_votes',
                                        'helpfulanswers',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        70,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_stats_ranks',
                                        'helpfulanswers',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        80,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_stats_ten',
                                        'helpfulanswers',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        85,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_gettop',
                                        'helpfulanswers',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        90,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_rank_ten',
                                        'helpfulanswers',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        100,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        ),
        (
                                        'helpans_report',
                                        'helpfulanswers',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        200,
                                        0,
                                        1,
                                        '',
                                        0,
                                        'helpful_answers'
        );

MySQL Error  : Data truncated for column 'datatype' at row 4
Error Number  : 1265
Request Date  : Friday, February 27th 2009 @ 10:02:24 AM
Error Date    : Friday, February 27th 2009 @ 10:02:25 AM
Script        : http://www.****.com/admincp/plugin.php?do=productimport
Referrer      : http://www.****.com/admincp/plugin.php?do=productadd
IP Address    : ****
Username      : ****
Classname    : vB_Database
MySQL Version : 5.0.51a-community-nt

EDIT - I think the error is at my end of things... ;(

dooch 02-27-2009 09:12 AM

Quote:

Originally Posted by Ted S (Post 1733465)
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="$threadinfo[toppost] == $post[postid]">This is the top rated post!</code>
To your postbit or postbig_legacy template

This can be changed around to add colors, an icon or anything else you want.

================================================== ==========================

This is the bit im most interested in. Unfortunatley I cant get this code to work, even if I alter it to this... any ideas?

Code:

<if condition="$threadinfo[toppost] == $post[postid]">This is the top rated post!</if>

star88 02-27-2009 12:21 PM

Quote:

Originally Posted by dooch (Post 1755865)
This is the bit im most interested in. Unfortunatley I cant get this code to work, even if I alter it to this... any ideas?

Code:

<if condition="$threadinfo[toppost] == $post[postid]">This is the top rated post!</if>

I enabled the top rated post feature from Helpful Answers settings. I added <if condition="$threadinfo[toppost] == $post[postid]">This is the top rated post!</if> in the postbit template. Unfortunatly, it does not work. :(

Ted S 02-27-2009 03:45 PM

I'm working on the top post right now and will get back with some answers on how to use it and examples in a minute.

Ted S 02-27-2009 04:02 PM

The correct variable for this feature is $thread[toppost] not $threadinfo. My appologies for the mistake.

I will be posting a code snippit to allow you to highlight the top post in a few minutes...

Ted S 02-27-2009 04:26 PM

Instructions for how to highlight the top rated post have been added to my examples post.

I hope to offer this as an automated feature in the future.


All times are GMT. The time now is 09:06 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02568 seconds
  • Memory Usage 1,805KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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