vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=92410)

Polo 07-06-2006 12:48 PM

Hi,

As I have a christian website, I use this hack as a "praying" button.... you see, people at our website, have prayer requests and we always have users replying you know "praying" so with this button, instead of a "thank you" i modify it with a custom button that says "praying" and users find it really neat. :) (just wanted to share I we use this hack at our site)

I will definetly be installing this hack :)

mtha 07-07-2006 11:11 PM

very useful hack

I have some problem. My board has about 1,000,000 posts, and I am trying to "FIND ALL THANKS" (search.php?do=findallthanks), it takes very long (almost a minute) to generate the result (with only few thanks that I have)

Showing results 1 to 3 of 3
Search took 53.35 seconds; generated 1 minute(s) ago

Should that be improved? I think it's fairly easy (and fast) searching in post_thanks table, or index some of the information?

s3xt0y 07-08-2006 05:35 AM

to bad this forum dont use it id thank you for it!

lol im such a funny guy anyway good mod +install =P

mtha 07-09-2006 02:22 AM

Hello,

The hack is great, and I am trying to get the best use of it.

REQUEST:
I would like to have a confirmation before sending the thanks. Says when a user click on Thanks, there is a pop-up asking that you really want to thank, with some guideline on how the post should be, in order to get thanked.

This will reduce people from clicking thanks, without understanding meaning of the action => you have a better/qualify statistic.

Also, allow member to add some comments to go with the thanks, that'd be nice.

I also want to be able to get a list of thanked posts in some given forum (find thanks where forum = xxx)

How do you think?

Abe1 07-09-2006 02:33 AM

Quote:

Originally Posted by mtha
very useful hack

I have some problem. My board has about 1,000,000 posts, and I am trying to "FIND ALL THANKS" (search.php?do=findallthanks), it takes very long (almost a minute) to generate the result (with only few thanks that I have)


Showing results 1 to 3 of 3
Search took 53.35 seconds; generated 1 minute(s) ago


Should that be improved? I think it's fairly easy (and fast) searching in post_thanks table, or index some of the information?

I'll see what I can do.

Abe1 07-09-2006 02:36 AM

Quote:

Originally Posted by mtha
Hello,

The hack is great, and I am trying to get the best use of it.

REQUEST:
I would like to have a confirmation before sending the thanks. Says when a user click on Thanks, there is a pop-up asking that you really want to thank, with some guideline on how the post should be, in order to get thanked.

This will reduce people from clicking thanks, without understanding meaning of the action => you have a better/qualify statistic.


Also, allow member to add some comments to go with the thanks, that'd be nice.

I also want to be able to get a list of thanked posts in some given forum (find thanks where forum = xxx)

How do you think?

I dint think I'll do most of these. I'll see about the search though.

Almost one-one else would like the pop-up.

ntock 07-09-2006 12:15 PM

Abe, thanks for the great mod, love it. Is there anyway for board admins like myself who have already cluttered the user info to the left of the post and make it:

Thanked x Times

instead

Thanks: x
Thanked x Times in x Posts


Many thanks again for the mod :) Cheers

rogersnm 07-09-2006 12:17 PM

Just take away the info you don't need....

Abe1 07-09-2006 05:43 PM

just edit the template.

ntock 07-10-2006 03:09 PM

Unfortunately I don't know how to, assuming I need to delete some of these lines?:

Code:

<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->

Thank you for any help in advance...


All times are GMT. The time now is 02:26 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.02059 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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