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...

Abe1 07-10-2006 04:52 PM

Quote:

Originally Posted by ntock
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...

Delete:
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />

Also, edit the phrases post_thanks_time_post, post_thanks_times_post, and post_thanks_times_posts and remove the part you dont want.

hilfe-forum 07-10-2006 06:16 PM

install Thanks!

My Users Love it

almqdad 07-11-2006 07:48 PM

hello

is there away to make thanking possible on first post and all post

thanks

almqdad 07-12-2006 02:44 PM

hello

getting a serious error

Quote:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/alhawzan/public_html/forum/includes/class_postbit.php(283) : eval()'d code on line 2

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/alhawzan/public_html/forum/includes/class_postbit.php(283) : eval()'d code on line 2
this error comes only when I use Legacy (Vertical) Postbit Template

please help

thanks

Abe1 07-12-2006 05:18 PM

Quote:

Originally Posted by almqdad
hello

getting a serious error



this error comes only when I use Legacy (Vertical) Postbit Template

please help

thanks

Did you try to re-count the thanks. You will find them in your ACP by the recounters.

almqdad 07-13-2006 12:35 AM

hello


Quote:

Did you try to re-count the thanks. You will find them in your ACP by the recounters
no


as I said
this error comes only when I use Legacy (Vertical) Postbit Template

Uninstall for now until a solution found

thanks

Abe1 07-13-2006 01:55 AM

Quote:

Originally Posted by almqdad
hello




no


as I said
this error comes only when I use Legacy (Vertical) Postbit Template

Uninstall for now until a solution found

thanks

Try the recount.

Tulsa 07-16-2006 06:49 PM

Abe, on this one and the groan hack, (still my personal favorite), when we updgrade to 3.6 once it goes gold, are we going to be able to port this hack and the thanks/groans received/given? Or are we simply going to lose those?

-=Sniper=- 07-16-2006 08:00 PM

3.6 RC1 I'm using it, not had any problems reported yet!

Hornstar 07-17-2006 11:41 PM

Request

Currently I am also using the warning system, if anyone abuses the thanks button by thanking everyone for no reason they get warned.

Then here is the problem/request

I now have to click on the users profile, find all thanks they have given, and delete them 1 by 1. Very painful.


I would find it much easier if there was an option in the admincp that would allow you to prune all thanked posts / all thanks given by username.


Also, When a user has been thanked many times, Sometime I would like to remove someones thanks, but currently you can only remove yours or ALL. It would be handy to remove a selected thanks.

Hopefully you will consider these ideas for the next update.

I'm sure everyone would find them really handy to have for this already great release.

Thanks

Abe1 07-19-2006 01:46 AM

Quote:

Originally Posted by Tulsa
Abe, on this one and the groan hack, (still my personal favorite), when we updgrade to 3.6 once it goes gold, are we going to be able to port this hack and the thanks/groans received/given? Or are we simply going to lose those?

Everything will stay. You can even upgrade with this hack installed. After you can upload the new version to be released.

Schahab 07-19-2006 09:39 AM

Hello,

for me the Show all Thanks Link in the Memberprofiles don't work:

Example: http://www.worldofhiphop.de/communit...h.php?do=Suche nachthanks&u=15775

I use the German Edition, what can I do?

tvsf 07-20-2006 02:32 AM

is there a way to make it so that members won't be able to see post content before pressing thanks?

bashy 07-20-2006 07:27 AM

How would they know what there thanking?

Quote:

Originally Posted by tvsf
is there a way to make it so that members won't be able to see post content before pressing thanks?


camuca 07-21-2006 05:24 AM

nice hack - installed and work well...

mix_boy 07-21-2006 02:09 PM

http://foto.uploader.pl/images/2122ssss.JPG

Pleas Help me.
why I do not know not work.

cheekymonkey2 07-22-2006 05:36 PM

Thanks a lot for this.

Installed very easily and all is ok.

unitedpunjab 07-23-2006 01:53 PM

anyone using it on 3.6 rc2

TygerTyger 07-23-2006 04:44 PM

I am using it on RC2, not explored it fully yet but there are no obvious problems that I can see. No guarantees though. ;)

Quote:

Originally Posted by hornstar1337
Also, When a user has been thanked many times, Sometime I would like to remove someones thanks, but currently you can only remove yours or ALL. It would be handy to remove a selected thanks.

That would be wonderful indeed to have. :)

TygerTyger 07-24-2006 10:12 AM

Ok, I do have a small problem. What is the $post_thanks string to show how many thanks a post has received? Just the post, not the overall total. No matter what I do I seem to end up with a user's total thanks and I can't see the correct phrase in the XML file either. If you could name the $post_groan string that does the same thing for groans, I would be very grateful. :)

And thank you for an exceptionally useful hack.

Abe1 07-26-2006 02:53 AM

Quote:

Originally Posted by unitedpunjab
anyone using it on 3.6 rc2

I have a new version ready to release when 3.6GOLD is released. It only contains a template edit. I dont recall needing any php edits.

TygerTyger 07-26-2006 06:08 AM

Ohhhhhhhhh wait a second, I misread it. It only counts how many thanks a post gets but you can't actually show how many thanks a post gets? It's not phrased. Or if it's not good for the database to be able to use per-post counts instead of over-all counts.

Would it be outrageous to promise that you will be showered with a thousand young maidens and the people will line the streets with rose petals wherever you walk from this point onwards if you phrased thanks/growls per post? That would be absolutely fantastic, on mah knees beggin'. :D :D :D :D :D

Amaranth 07-26-2006 08:26 PM

This is really impressive stuff! :D *presses Thanks button*

If I could make a big wish for this mod, it would be to be able to show all the post a member has Thanked. "Find all posts thanked by Abe1."

Secondly, it would be fun to be able to "Find all posts thanked by my buddies."


What do you think, Abe1? Do you think this would be hard?

laskos 07-27-2006 10:15 AM

i have read all this thread and still cannot get the button to show no matter what i do :(

RFViet 07-27-2006 02:44 PM

How to allow guests to post Thanks ??

Amaranth 07-27-2006 04:54 PM

One of my members also suggested that it would be cool to be able to set a minimum number of Thanks to qualify for display on the "Thanked" search page. And it would be great to display the number of thanks for each post, and be able to sort by the quantity of posts on this search/display page.

Abe1 07-28-2006 02:24 PM

Quote:

Originally Posted by Amaranth
This is really impressive stuff! :D *presses Thanks button*

If I could make a big wish for this mod, it would be to be able to show all the post a member has Thanked. "Find all posts thanked by Abe1."

Secondly, it would be fun to be able to "Find all posts thanked by my buddies."


What do you think, Abe1? Do you think this would be hard?

You should have a button in a members profile to view all of his thanks now.

Abe1 07-28-2006 02:25 PM

Quote:

Originally Posted by TygerTyger
Ohhhhhhhhh wait a second, I misread it. It only counts how many thanks a post gets but you can't actually show how many thanks a post gets? It's not phrased. Or if it's not good for the database to be able to use per-post counts instead of over-all counts.

Would it be outrageous to promise that you will be showered with a thousand young maidens and the people will line the streets with rose petals wherever you walk from this point onwards if you phrased thanks/growls per post? That would be absolutely fantastic, on mah knees beggin'. :D :D :D :D :D

Not sure what you want. Please explain more.

Abe1 07-28-2006 02:25 PM

Quote:

Originally Posted by RFViet
How to allow guests to post Thanks ??

Guests are not allowed to thank posts.

Amaranth 07-28-2006 02:37 PM

Thank you for your reply, Abe1! :) There is a link in every members profile that will display all the posts he/she has written, that have later been thanked by other members... But what we would love to have is a link that displays all the posts she herself has thanked, letting us find the posts that this member has found useful.

I also had another feature request from one of my members:
Quote:

Originally Posted by Amaranth
One of my members also suggested that it would be cool to be able to set a minimum number of Thanks to qualify for display on the "Thanked" search page. And it would be great to display the number of thanks for each post, and be able to sort by the quantity of posts on this search/display page.



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