Thread: Show Thread Enhancements - [AJAX] Post Thank You Hack
View Single Post
  #1361  
Old 01-03-2009, 10:17 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EntropiaPlanets View Post
Hi, and first of all, all the best wishes for the new year. Secondly, thanks for this mod. It's very useful.

Couple of questions for the author:

1) Would you feel that it is fair if somebody would customize your MOD to suit their needs? I love the idea of cutting back on useless drivel in my forum, but I have a few other ideas with it, rather than just a "thank you" (Think bug tracking. 1 version showing "Me too" to show other users experience the same bug, and another showing "not me" to indicate they do not see the same results). So far, I've been trying to work on replacing text strings in your code, but it's tedious at the best (due to "thanks", "thank", and "thank you" strings being mixed. If you feel me customizing the mod is not appropriate, please let me know).

2) What would you estimate performance impact to be if the mod would be installed numerous times on the same site? If I enable a speciic "flavour" of the mod for a specific subforum (sometimes twice for the same sub forum, as in "good" or" bad", etc), will the code be able to rely on a cached index of the specific subforums a mod applies to, or will say, 10 different uses of the mod each on their specific sub forum lead to 10 extra queries for every post made on the site as a whole?

Very sorry if this has been answered before. I just did not have the time to manually read through all the posts. I tried doing some generic searches, but did not find anything.

EDIT: Two more things.

3) If it's not cached yet, any chances to have that implemented soon? Please do. I'd gladly make it worth your while, financially (within limits, but feel free to PM me with a price quote).

4) One more thing that would really make this useful, and I'm not sure this is supported yet, would be the ability for users to sort threads based on the amount of times a user clicked an option. For instance, referring back to the support section, I'd love to be able to give users the ability to sort the number of times a bug has been registered, in order to find the most commonly logged problems. This, too, could be done as an extra, and paid for).

Thanks
1) Sure you customize this hack to your own liking.

2) The current hack adds one query to every showthread or showpost page load.

3) THe only cache that is current does is it stores the total times a post is thanked. and the stats.

4) This hack is based on posts and not threads.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01036 seconds
  • Memory Usage 1,770KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete