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)

Abe1 07-28-2006 03:29 PM

Quote:

Originally Posted by Amaranth
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:

I'll see what I can do. I'm not looking realy into added new features until I release the version for vb 3.6.

ohgenki 07-29-2006 09:06 AM

is it possible if i do not want the users to be shown below the post bit? it is making the post browsing page longer.

what if:

- the user says thanks to the post
- there is a "your thanks has been accepted" alert
- the button changed from thanks to remove thanks?

is the above possible?

ohgenki 07-29-2006 09:26 AM

btw, i think this will be useful:

to allow the users to find thanked post by a particular user from the postbit/postbit_legacy, find:

Code:

        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>

and add:

Code:

                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=findthanks&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[post_thanks_search_user]</phrase></a></td></tr>
below it

mml770 07-30-2006 04:56 PM

It's not showing on 3.6 after installation, I have version 2.0 Gold, is there a new version for 3.6 or this should also work for 3.6?

TygerTyger 07-30-2006 06:36 PM

Quote:

Originally Posted by Abe1
Not sure what you want. Please explain more.

Hello there! Thank you for picking up on my request.

What I mean is, in the feature list at the top it says:
- Counts how many thanks a post gets

However, there is no way to display this. I would really, really love it if this could be phrased so it can be shown with a post. And the same with the post groan function, as they are husband and wife.

Abe1 07-30-2006 11:39 PM

Quote:

Originally Posted by TygerTyger
Hello there! Thank you for picking up on my request.

What I mean is, in the feature list at the top it says:
- Counts how many thanks a post gets

However, there is no way to display this. I would really, really love it if this could be phrased so it can be shown with a post. And the same with the post groan function, as they are husband and wife.

It does already. Right above all the thanks it was the number of thanks the post has. If it is one or zero, it does not have a number.

Abe1 07-30-2006 11:40 PM

Quote:

Originally Posted by mml770
It's not showing on 3.6 after installation, I have version 2.0 Gold, is there a new version for 3.6 or this should also work for 3.6?

Try the current version. 2.0 is VERY old.

TygerTyger 07-31-2006 07:18 AM

Quote:

Originally Posted by Abe1
It does already. Right above all the thanks it was the number of thanks the post has. If it is one or zero, it does not have a number.

Hm, perhaps this is not working as it should for some reason. Probably because of me. Or is it because it's 3.6RC3? Seems to be working fine though.

Right above all the thanks, according to your instructions, I have:

Code:

$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
This is currently displaying how many posts that user has given in total across the whole forum. Below that I have:

Code:

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

Which is currently showing how many thanks that user has received in total from across the whole forum, and how many posts they received the thanks from.

Nothing is allowing me to show how many thanks an individual post has received.

Abe1 07-31-2006 12:10 PM

Quote:

Originally Posted by TygerTyger
Hm, perhaps this is not working as it should for some reason. Probably because of me. Or is it because it's 3.6RC3? Seems to be working fine though.

Right above all the thanks, according to your instructions, I have:

Code:

$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
This is currently displaying how many posts that user has given in total across the whole forum. Below that I have:

Code:

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

Which is currently showing how many thanks that user has received in total from across the whole forum, and how many posts they received the thanks from.

Nothing is allowing me to show how many thanks an individual post has received.

The second one.

The first is showing how many this user gave.

Jesus05uk 08-01-2006 12:39 PM

Will this for for 3.6?

Abe1 08-01-2006 07:53 PM

Quote:

Originally Posted by Jesus05uk
Will this for for 3.6?

Yes.

Abe1 08-03-2006 08:55 PM

A new version for vB 3.6 was released here: https://vborg.vbsupport.ru/showthread.php?t=122944

eilrahC 08-04-2006 02:07 AM

Awsome, thanks so much :) ill be installing it on my Arcade forum!

Spinball 08-04-2006 08:15 AM

Getting this error on some theads in showthread.php:

Quote:

Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(251) : eval()'d code on line 149

Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(251) : eval()'d code on line 159
Disabled for now. Any ideas?

Abe1 08-04-2006 07:53 PM

Quote:

Originally Posted by Spinball
Getting this error on some theads in showthread.php:



Disabled for now. Any ideas?

Use the recounters for this hack.

Muellmann 08-04-2006 08:38 PM

I have this hack already installed and it works perfect!
Thank you for sharing, I pressed "Installed"! :cool:

Yet another question: In the ACP-options I can select, if a user
get something added to his/her postcount, if he/she pressed Thanks!

Now would I need, that an additional ACP-option exists, to add to user's reputation if he pressed Thanks!
Is it heavy to implement? I want let you know, that I would pay for it,
if you would add such feature for me, cause I need it in a project urgently.

Abe1 08-04-2006 09:42 PM

Quote:

Originally Posted by Muellmann
I have this hack already installed and it works perfect!
Thank you for sharing, I pressed "Installed"! :cool:

Yet another question: In the ACP-options I can select, if a user
get something added to his/her postcount, if he/she pressed Thanks!

Now would I need, that an additional ACP-option exists, to add to user's reputation if he pressed Thanks!
Is it heavy to implement? I want let you know, that I would pay for it,
if you would add such feature for me, cause I need it in a project urgently.

The option is there already.

Spinball 08-05-2006 06:47 PM

Quote:

Originally Posted by Abe1
Use the recounters for this hack.

Thanks. Ran the first 3 recounters - made no difference. Running the last one and with 121,000 members, it's still going after about 10 hours.
2 questions. First, is this the recounter which will make the difference?
And second, is it possible to speed up the counter? Or do something else to fix this? Would hate to have to uninstall.

Abe1 08-06-2006 12:50 AM

Quote:

Originally Posted by Spinball
Thanks. Ran the first 3 recounters - made no difference. Running the last one and with 121,000 members, it's still going after about 10 hours.
2 questions. First, is this the recounter which will make the difference?
And second, is it possible to speed up the counter? Or do something else to fix this? Would hate to have to uninstall.

I think the first 3 should have done it. The user one would make that error. Did you run them on order? Does the error show an every page?

Spinball 08-06-2006 07:10 AM

Quote:

Originally Posted by Abe1
I think the first 3 should have done it. The user one would make that error. Did you run them on order? Does the error show an every page?

I ran them in order, the error does not show up on every page.

My server is rebooted daily in the early hours. The 4th recounter had been running for over 16 hours before it hung because of the reboot. And the problem persists. It's definitely the Thank You hack cos when I disable it the problem goes away.

Update : I re-ran the first three and again it made no difference.
I have switched off the thank you hack for now.
One example of where we are having problems is on the last page of this thread.

Spinball 08-13-2006 08:13 AM

Bump? Any help?

bryanb 08-15-2006 09:04 AM

I've just upgraded to vBulletin 3.6 and upgraded the Thanks hack as well. The problem that I'm having is that the table row (The Following x Users Say Thank You to x_member For This Useful Post:) is not as wide as the posting itself.

What can I do to fix this? Thanks in advance!

Schahab 08-15-2006 09:06 AM

Search in templates for postbit thank and edit the file with width 100%

IrPr 08-15-2006 10:15 AM

Abe1 would u please code for showpost.php script ?

bryanb 08-15-2006 10:40 AM

Quote:

Originally Posted by Schahab
Search in templates for postbit thank and edit the file with width 100%

Could you indicate exactly what I should edit and where? Thanks! :)

Abe1 08-16-2006 03:53 AM

Quote:

Originally Posted by bryanb
I've just upgraded to vBulletin 3.6 and upgraded the Thanks hack as well. The problem that I'm having is that the table row (The Following x Users Say Thank You to x_member For This Useful Post:) is not as wide as the posting itself.

What can I do to fix this? Thanks in advance!

Just update to the vb 3.6 version.

bryanb 08-16-2006 10:45 AM

Quote:

Originally Posted by Abe1
Just update to the vb 3.6 version.

I'm running vB 3.6 and Thank You Hack hack 4.5. I've reinstalled the hack just a few minutes ago and still the same thing. Here is an example:
http://www.casinomeister.com/forums/...bentley-2.html

I know I should place width=100% somewhere in a template, but I don't know exactly where.

Abe1 08-16-2006 11:46 AM

Quote:

Originally Posted by bryanb
I'm running vB 3.6 and Thank You Hack hack 4.5. I've reinstalled the hack just a few minutes ago and still the same thing. Here is an example:
http://www.casinomeister.com/forums/...bentley-2.html

I know I should place width=100% somewhere in a template, but I don't know exactly where.

Look in my sig for the vb3.6 version. It's version 5.0 of this hack.

Intocable 09-03-2006 08:37 PM

For some reason, the icon for the Thanks in every post is not showing up. Anyone know what it could be?

Abe1 09-05-2006 11:15 PM

Quote:

Originally Posted by Intocable
For some reason, the icon for the Thanks in every post is not showing up. Anyone know what it could be?

You have more then one style. You have to put the thanks button in each style's button folder.

Amaranth 09-06-2006 08:33 AM

Hi Abe1. Thanks for this great feature, it is very popular on my board.

One thing we have noticed, is that the restriction on giving reputation is not always taken into account in relation to this mod... If I post a Thank you, I am not able to give the author of the post further reputation points for that post. (Until I have given reputation to someone else, as I have configured my vBulletin) But if I give the author reputation points, and then try to post a Thank you - then the restriction is not taken into consideration, and I am able to give the author rep two times

... I hope this isnt't too vague..? Not a BIG problem, but I think you like to know about these things...

Thanks again!

Abe1 09-13-2006 09:46 PM

Quote:

Originally Posted by Amaranth
Hi Abe1. Thanks for this great feature, it is very popular on my board.

One thing we have noticed, is that the restriction on giving reputation is not always taken into account in relation to this mod... If I post a Thank you, I am not able to give the author of the post further reputation points for that post. (Until I have given reputation to someone else, as I have configured my vBulletin) But if I give the author reputation points, and then try to post a Thank you - then the restriction is not taken into consideration, and I am able to give the author rep two times

... I hope this isnt't too vague..? Not a BIG problem, but I think you like to know about these things...

Thanks again!

I hope to work on the rep system for this hack soon. But it will only be released to the version for vb3.6.

iamnofear 10-06-2006 08:37 AM

I received a blank page when I tried to import new product. May u help me ?

magic168 10-14-2006 06:42 AM

Something is majorly wrong and I can't figure it out. I had this working perfectly on my old forum, but then when I had to reinstall fresh, it doesn't work anymore on the new installation.

First off, no button appears. I viewed source and saw that it was not printing the $post_thanks_button_image variable. It starts off with an a href and ends with an /a with NO IMG SRC in between.

So I tried just copying the code for $post_thanjs_button_image into the $post_thanks_button variable...and the button shows up.

But the AJAX is all messed up for some reason.

Can you PM me for some help?

Abe1 10-16-2006 12:18 AM

Quote:

Originally Posted by magic168
Something is majorly wrong and I can't figure it out. I had this working perfectly on my old forum, but then when I had to reinstall fresh, it doesn't work anymore on the new installation.

First off, no button appears. I viewed source and saw that it was not printing the $post_thanks_button_image variable. It starts off with an a href and ends with an /a with NO IMG SRC in between.

So I tried just copying the code for $post_thanjs_button_image into the $post_thanks_button variable...and the button shows up.

But the AJAX is all messed up for some reason.

Can you PM me for some help?

Are you looking at a post you made? or at someone elses post?

JohnBee 10-20-2006 06:40 PM

Quote:

Originally Posted by magic168
Something is majorly wrong and I can't figure it out. I had this working perfectly on my old forum, but then when I had to reinstall fresh, it doesn't work anymore on the new installation.

First off, no button appears. I viewed source and saw that it was not printing the $post_thanks_button_image variable. It starts off with an a href and ends with an /a with NO IMG SRC in between.

So I tried just copying the code for $post_thanjs_button_image into the $post_thanks_button variable...and the button shows up.

But the AJAX is all messed up for some reason.

Can you PM me for some help?

Same here... very odd.
I have installed and ran this hack on my board since it was intro'd.
I installed a fresh vBB 3.55, installed the hack made the edits and uploaded the product.... no button :(

Is it possible this is a 3.5.5 issue?
Is it possible to hard code the button into the postbit template instead?

magic168 10-20-2006 06:43 PM

Actually, it is working now. I have no idea why but I:

1) Uninstalled the product.
2) cleared ALL the remaining templates (there seemed to be about three leftover...search for thanks in your templates)
3) Redownloaded the zip install file.
4) Reinstalled (making sure to keep "yes" to overwrite checked)

Now it is working...very odd.

JohnBee 10-21-2006 09:52 AM

Quote:

Originally Posted by magic168
Actually, it is working now. I have no idea why but I:

1) Uninstalled the product.
2) cleared ALL the remaining templates (there seemed to be about three leftover...search for thanks in your templates)
3) Redownloaded the zip install file.
4) Reinstalled (making sure to keep "yes" to overwrite checked)

Now it is working...very odd.

Wow! I will follow your advice, hope it works!

Carl Anderson 10-28-2006 10:45 PM

I really like this hack but it took up too much space on the pages and my users ended up not liking it...

If it just had a thanked 20 times and user could click on the 20 and then see who thanked him if he wanted.. It took too much space up as some would get 50 or more thx...

Oh well cool hack and well done.

djwins 10-29-2006 02:10 AM

Quote:

Originally Posted by Carl Anderson
I really like this hack but it took up too much space on the pages and my users ended up not liking it...

If it just had a thanked 20 times and user could click on the 20 and then see who thanked him if he wanted.. It took too much space up as some would get 50 or more thx...

Oh well cool hack and well done.

Yeah, I could see this being an issue on large forums.


All times are GMT. The time now is 04:29 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.02378 seconds
  • Memory Usage 1,851KB
  • 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
  • (6)bbcode_code_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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