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)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=165673)

ETDC 07-28-2009 11:41 PM

:confused: Which problem does this refer to?

desperandos 08-02-2009 08:12 PM

Thanks a lot...

Dutch_Boy 08-04-2009 04:50 PM

Hey abe1,

I got a problem and i hope you can help me fix it:

Invalid SQL:
SELECT * FROM vb_post_thanks AS post_thanks INNER JOIN vb_user AS user USING (userid) WHERE post_thanks.postid IN (0,15812,15816,15821,15824,15825,15831,15832,15838 ,15847,15849,15850,15855,15935 ,15968,16052,16055,16064,16469,16471) ORDER BY post_thanks.username ASC;

MySQL Error : SELECT command denied to user 'iwsgamin_iwsvb'@'localhost' for column 'userid' in table 'post_thanks'
Error Number : 1143

Kind regards,

Dutch_Boy.

ETDC 08-04-2009 05:08 PM

Abe1 hasn't been here since 7th July.

mindfrost82 08-04-2009 06:48 PM

I just upgraded our forum to 3.8.3 and upgraded this hack from 7.4 to 7.7. With both versions of this hack, AJAX doesn't seem to be working. After hitting Thanks, the page has to refresh everytime.

AJAX is working with other features, and it is enabled in the AdminCP.

Any ideas?

EDIT: Nevermind, it looks like the Post Groan hack was the cause.

NTMID8 08-04-2009 08:45 PM

I apologize if this was covered but I have not read through all 100+ pages. Is there a way to have a post show up as a new post when it has been thanked?

verbs 08-05-2009 01:14 AM

I'm having all kinds of problems myself....

It's appearing as just a clickable hyperlink that says "Thanks" for some users, for others it's a red X for the image. Did I miss putting the IMG file in the buttons folder or something? I put it in 2 different buttons folders and couldn't find a third.

ITDarasgah 08-05-2009 06:41 PM

1 Attachment(s)
in my board from the last 4 days its stop work ......the Following User says Thank you is not show .....for more information see the attach picture
Attachment 102926

BostWick-x 08-05-2009 09:39 PM

Quote:

Originally Posted by SHER (Post 1862083)
in my board from the last 4 days its stop work ......the Following User says Thank you is not show .....for more information see the attach picture
Attachment 102926

It's funny because I'm trying to get it so it doesn't do that.

Does anybody know how to prevent it from showing who thanked the post? I just feel it clutters the page too much.

Otherwise, great mod.

ITDarasgah 08-06-2009 04:48 PM

still waiting......

Dutch_Boy 08-07-2009 02:12 PM

Quote:

Originally Posted by verbs (Post 1861551)
I'm having all kinds of problems myself....

It's appearing as just a clickable hyperlink that says "Thanks" for some users, for others it's a red X for the image. Did I miss putting the IMG file in the buttons folder or something? I put it in 2 different buttons folders and couldn't find a third.

Are you using a self made template? If you do plz put the thanks button in this file:

/public_html/styles/Your Template name here!/images/buttons

Put the thanks button in the buttons map.

The red X image is only show to the people using IE right? Thats because IE sucks. It allways shows a X images and firefox shows nothing or a link.

If your using IE right click on the image --> properties and check the the link in the new pop up. Put the images your missing in the map you see in the link.

I hope this will solve your problems.

And make sure the name of the thanks or groan button is post_groan.gif or post_thanks.gif

lurkerx 08-09-2009 06:21 PM

Im using v3.8.3

and the thanks button doesnt show up.

I am using postbit legacy and have looked at the code and there isnt even a reference to post thanks.

How can I manually plug this in?

ITDarasgah 08-09-2009 07:10 PM

Quote:

Originally Posted by SHER (Post 1862083)
in my board from the last 4 days its stop work ......the Following User says Thank you is not show .....for more information see the attach picture
Attachment 102926

any one know about that.......so please reply I am waiting .


Regards

ETDC 08-09-2009 08:59 PM

Quote:

Originally Posted by ETDC (Post 1861320)
Abe1 hasn't been here since 7th July.

....................

Skillz10 08-10-2009 07:19 PM

Hello i am starting a website and to complete it i need this addon i have install the shoutout and the 5 stats but i am having problems installing this thank hack everthing went in import and everthing did it both ways did it upload and import after i install i go back to the forum and the thread and click thanks it shows me this

The Following User Says Thank You to newuser For This Useful Post: Remove All Remove Your Thanks

But the problem is i dont get no name....
Can someone plssssssssssss help me..

Makc666 08-11-2009 09:32 AM

Proposal

It will be nice to have a way to delete individual user's Thank You.

For now administrator can delete:
  1. His own Thank You
  2. All Thanks You at once

Proposal is to add one more way:
  1. His own Thank You
  2. Any other user Thank You
  3. All Thanks You at once

thepowerofnow 08-11-2009 10:39 AM

hi, anybody know why it does Not show the how many thanked posts & posts thanked by in the user statistic ? im using vbseo, vb 3.82 ?

its just a number, 1 or 0 . but No text at all ?

thanks :)

Makc666 08-12-2009 08:01 AM

BUG

There is a serious bug which has effect on forums which have several languages on them.

The problem is with actions:
  • Remove Your Thanks
  • Remove All

The effected file is:
Code:

./includes/functions_post_thanks.php
Function is:
PHP Code:

function delete_all_thanks($postinfo$remove_users_thanks_count true)
{
...


Code is:
PHP Code:

        if ($vbulletin->options['post_thanks_reputation'] && ($remove_users_thanks_count == true || $vbulletin->options['post_thanks_delete_remove_thanks_count']))
        {
            
$vbulletin->db->query_write("DELETE FROM "TABLE_PREFIX ."reputation WHERE postid = '$postinfo[postid]' AND reason = '$vbphrase[post_thanks_thanked_post]'");

            if (
$vbulletin->db->affected_rows() != 0)
            {
                
$total_rep_got $vbulletin->options['post_thanks_reputation'] * $nb;
                
$set_user_got .= ", reputation = reputation - $total_rep_got";
            }
        } 

Line:
PHP Code:

$vbulletin->db->query_write("DELETE FROM "TABLE_PREFIX ."reputation WHERE postid = '$postinfo[postid]' AND reason = '$vbphrase[post_thanks_thanked_post]'"); 

Problem part:
PHP Code:

AND reason '$vbphrase[post_thanks_thanked_post]' 

As you can see you use $vbphrase[post_thanks_thanked_post].

But for every language it has it's own "variable".

For English it will be "Thanked Post".
For German it will be "Dankte Post".
For Russian it will be "Сообщение с благодарностью".
etc.

So if Admin uses English and will hit 'Remove All' then only English reputation comments with points will be deleted. All other languages reputation comments with points will not be deleted.

The same for normal user.
If he will give Thanks You in one Language,
then switch to another language
and then will hit remove his thanks,
the reputation comment with points will not be deleted.

I am thinking for two days how to fix this one.

Of course we can try to search for all languages variables but the problem is that language variables can be changeable.
So this is not a clear decision.

We can also remove
PHP Code:

AND reason '$vbphrase[post_thanks_thanked_post]' 

But this will delete normal reputation comments.

The only "fix" for this one I see is to have another table with comments' IDs which where given by pressing "Thank You" button.

This will be the best and as I can see the only one correct variant.

P.S. The same for [AJAX] Post Groan Hack.

PHP Code:

function delete_all_groans($postinfo$remove_users_groan_count true)
{
...
$vbulletin->db->query_write("DELETE FROM "TABLE_PREFIX ."reputation WHERE postid = '$postinfo[postid]' AND reason = '$vbphrase[post_groan_groaned_post]'");
...



maxicep 08-12-2009 11:32 PM

Working correctly with vbulletin 3.8.4 ?

iTz Steve xX 08-13-2009 05:27 PM

yippie i o kai yay

ETDC 08-13-2009 07:31 PM

Anyone know how to completely uninstall this from 3.8.3 ?

rinkrat 08-14-2009 04:14 AM

My list of "People who thanked you for this informative post" is at the bottom of the page of messages while my Groans are at the top under the first message. How can I move this up next to the Groan info?

ajmboy 08-14-2009 10:53 PM

Is there a way I can just get the number of thanks a user received and place it somewhere else in my postbit_legacy template...I want to just grab the number with an <if> statement and put someting like....

Joined: ....
Member location: .....
Thanked: ...... Times

Is the total number in a certain database table?

alexchairman 08-15-2009 04:18 AM

1 Attachment(s)
Any one Please give me Post Thank error solution

Member total post 25 but thanks showing 4294967295

how to fix this error

sdavis2702 08-16-2009 03:07 PM

This is great.... thanks! (There's no thank you button on here lol). I'm sure I'm the millionth person to say that. I'm so lame...

ETDC 08-16-2009 06:20 PM

Is there an alternative to this (non-working) hack?

NTMID8 08-16-2009 08:09 PM

Quote:

Originally Posted by NTMID8 (Post 1861435)
I apologize if this was covered but I have not read through all 100+ pages. Is there a way to have a post show up as a new post when it has been thanked?

Anyone?

HastleGames 08-17-2009 02:42 AM

Quote:

Originally Posted by alexchairman (Post 1867689)
Any one Please give me Post Thank error solution

Member total post 25 but thanks showing 4294967295

how to fix this error

i have the same error

Simon Lloyd 08-17-2009 06:08 AM

Guys!, i followed the instructions here and installed this on vb3.8.2 i'm now using 3.8.4 with no problems everything installed as it should, i guess if you are having problems it must be a problem with another hack/mod you are using, all i changed for mine was a phrase to show more than "Thanks" in the postbit.

Dennis B 08-17-2009 11:07 AM

Hello

I've searched this thread but couldn't find an appropriate answer to what seems to be a bug in either my installation or the hack itself.

When a regular user deletes his/her own message, and the message contains one or more thanks (given by other members), the counters are not updated to reflect that, i.e. the total number of thanks received for that user remains unchanged. If a mod removes the message, though, the counters are updated accordingly.

Can anybody reproduce this?

Thanks for any help.

lurkerx 08-18-2009 12:18 AM

I really want to see what should be in the postbit legacy.

It seems I have brought everything back but the thanks button. I see all the previous thanks but the not button itself.

Simon Lloyd 08-18-2009 06:47 AM

why not just add the button image yourself?, you know
PHP Code:

<img src='images/buttons/post_thanks.gif' /> 


ImYourLady 08-18-2009 07:11 AM

Thank you! I have installed it on VB3.8.2

shaunceb 08-18-2009 07:47 AM

Installed this on 3.8.3 test server. Whenever I give a thanks and refresh the page, the thanks bar appears twice when using the Postbit Legacy template but is normal with the Postbit template.

Anybody have a solution???

roflchopper 08-18-2009 01:25 PM

It works fine on 3.8.4 (installed on 3.8.3).

I have a suggested feature which my users have requested: Is it possible to fix the sorting of how the users who thanked are shown? Now they are shown in alfabetic order of the user names, but I would like to sort it on the the date, (that is, first who thanked is shown first or last.

giu 08-18-2009 06:16 PM

ehm hello I have problems on 3.8.4 I have installed, enabled but I don't see on forum in no one place...
Please

giu 08-19-2009 08:21 AM

ok with other templates, it is a problem of my old template...

armthehomeless1 08-21-2009 02:39 AM

Hi, I had a quick look and couldn't really find an answer and I'm not going to read through 100 pages of comments.

Is there an add on to this, whether it be VBA or not that displays the Top 10 thanked users or similar??

Cheers :)

khena25 08-22-2009 05:03 AM

Hello. I've done everything correct, but the button will not show where it's supposed to. Can someone help me?

I'm using 3.8.4

CEO254 08-22-2009 06:44 AM

Quote:

Originally Posted by khena25 (Post 1871986)
Hello. I've done everything correct, but the button will not show where it's supposed to. Can someone help me?

I'm using 3.8.4

Im having the same problem


Also.....how do I get this to work with the Hide Hack?


All times are GMT. The time now is 10:50 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.03828 seconds
  • Memory Usage 1,849KB
  • 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
  • (7)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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