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 03-02-2009 08:46 PM

1 Attachment(s)
Attached is a simple import script which will import voting history from the Thank You Post system into Helpful Answers updating the voting log and each post.

To use this script simply upload the file to your admincp folder, login to your admincp and manually enter the url (i.e. www.yoursite.com/admincp/ha_import.php). Once you've finished the script delete the file and DO NOT rerun it or you'll end up with duplicate votes.

A few important notes about the script:

- This script will add an entry into the log for each thank you vote prohibiting the user who said "thanks" from voting again.
- This script will maintain existing helpful answer votes and will allow duplicates if a user has used both systems in the past.
- This script treats every Thank You as a helpful rating and does not look for negativs.
- Your Thank You Post votes will be left as is in case you wish to run both systems or for back.
- This script is not fully tested so use at your own risk.

Of course if you are not using the Thank You Post addon there is no reason to run this script and doing so will give you an error.

maidos 03-02-2009 08:52 PM

any advice how i can do that and exactly which phrase to remove and replace with my own image path.

Im not fully understand you by switching to manual mode exactly what do youmean

also i pm u the double icons that appears randomely any help on that? i followed the sample codes u posted earlier on

Ted S 03-02-2009 08:59 PM

Quote:

Originally Posted by maidos (Post 1758801)
any advice how i can do that and exactly which phrase to remove and replace with my own image path.

No phrases for this, you'll want to edit the template helpful_answersFind $helpfulanswer_yes and $helpfulanswer_no and replace them with your yes and no images (i.e. <img src="../yes.gif" width="20" height="20" border="0" alt="Yes!" />

Quote:

Originally Posted by maidos (Post 1758801)
Im not fully understand you by switching to manual mode exactly what do youmean

In the Helpful Answers Settings there's an option to disable the auto template inclusion. Turn that off and the $helpful_answers variable gets activated for you to place where you want.

maidos 03-02-2009 09:55 PM

thanks it helped me, my another question is
can i use this <if condition="$post['totalrank']"> to display the votes that appears before voting by only showing the votes and not the images?

imkind of confused why the images doesnt display on some replies and other replies does in the same thread
and some threads it appears double icons

Ted S 03-02-2009 09:57 PM

<if condition="$post['totalrank']"> is a condition that will check to see if their are votes. If you use that to wrap around your voting buttons they would never show as there could never be a vote.

maidos 03-03-2009 11:49 AM

so could you advice me how i can show the votes for the members before user votes themself?

Ted S 03-03-2009 12:04 PM

Quote:

Originally Posted by maidos (Post 1759217)
so could you advice me how i can show the votes for the members before user votes themself?

Just use the goodrank and totalrank variables as you see fit. They will show the votes.

maidos 03-03-2009 01:18 PM

thanks, now i have one last issue and that is the screenshot i pmed you.

Good 1 Bad 0 Did you find this post helpful? 1 Yes | 0 Yes
the double icons appears when someone other already has voted when members themself personally havent voted yet any idea to fix this?

Ted S 03-03-2009 05:26 PM

I'm not able to follow your question. Please rephrase it.

-=Sniper=- 03-03-2009 05:32 PM

Quote:

Originally Posted by Ted S (Post 1758800)
Attached is a simple import script which will import voting history from the Thank You Post system into Helpful Answers updating the voting log and each post.

To use this script simply upload the file to your admincp folder, login to your admincp and manually enter the url (i.e. www.yoursite.com/admincp/ha_import.php). Once you've finished the script delete the file and DO NOT rerun it or you'll end up with duplicate votes.

A few important notes about the script:

- This script will add an entry into the log for each thank you vote prohibiting the user who said "thanks" from voting again.
- This script will maintain existing helpful answer votes and will allow duplicates if a user has used both systems in the past.
- This script treats every Thank You as a helpful rating and does not look for negativs.
- Your Thank You Post votes will be left as is in case you wish to run both systems or for back.
- This script is not fully tested so use at your own risk.

Of course if you are not using the Thank You Post addon there is no reason to run this script and doing so will give you an error.

Thanks Ted, I can work with that :)


All times are GMT. The time now is 12:04 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.02152 seconds
  • Memory Usage 1,747KB
  • 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_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