vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=231666)

TimberFloorAu 02-01-2010 06:37 AM

We run the opposite version of this on our forums, in conjunction with Thanks. Called Spanks.

If anyone is interested, it could be used as we do, until the groan hack is implemented. Will happily post ( I am sure it doesnt conflict with Abes copyright, as we have just changed words, and filenames )

I.am 02-01-2010 07:14 AM

Someone know how to align blog entries?

https://vborg.vbsupport.ru/

RedTrinity 02-01-2010 07:28 AM

Quote:

Originally Posted by War.Frog (Post 1951658)
I'm hoping Abe can figure out why it's refreshing like that and why it's leaping back to the first page in the thread. Sigh.

I hope the same, our members are complaining about this issue as well.

Otherwise its a great hack :)

TimberFloorAu 02-01-2010 07:38 AM

Quote:

Originally Posted by I.am (Post 1971942)
Someone know how to align blog entries?

https://vborg.vbsupport.ru/

Have you got a link to your forum please

Aclikyano 02-01-2010 11:39 AM

Plugin & Products System
Importing Product, Please Wait...

[:]


why does it not want to install the xml????

nikosb 02-01-2010 04:54 PM

i have problem
Someone know how to align ?

https://vborg.vbsupport.ru/external/2010/02/105.jpg

I.am 02-01-2010 09:35 PM

Quote:

Originally Posted by nikosb (Post 1972325)
i have problem
Someone know how to align ?

https://vborg.vbsupport.ru/external/2010/02/105.jpg

check it out: https://vborg.vbsupport.ru/showpost....&postcount=334

nikosb 02-02-2010 04:57 AM

Quote:

Originally Posted by I.am (Post 1972570)

Thank you I.am

calvinnguyen 02-02-2010 06:41 AM

Quote:

Originally Posted by imagirlgeek (Post 1958396)
What I did to resolve this was to comment out these lines in post_thanks.php...

PHP Code:

        $db->query_write("
            REPLACE INTO " 
TABLE_PREFIX "search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
            VALUES (" 
$vbulletin->userinfo['userid'] . ", '" $db->escape_string(IPADDRESS) . "', 1, '" $db->escape_string($user['username']) . "', '" $db->escape_string($forumchoice) . "', 'post.dateline', 'DESC', $searchtime, 1, '" $db->escape_string(implode(','$orderedids)) . "', " TIMENOW ", '" $db->escape_string(serialize($display)) . "', '" $db->escape_string($searchhash) . "')
        "
);
        
$searchid $db->insert_id();
 
        
$vbulletin->url 'search.php?' $vbulletin->session->vars['sessionurl'] . "searchid=$searchid";
        eval(
print_standard_redirect('search')); 

I found this query on lines 278 - 285, 413 - 420, and 527 - 534. I commented out all of them 3 days ago and haven't received this error and also haven't seen any adverse effects.

Hope this helps!

It doesn't work. Everyday I received more than 2000 email error.
Hope next version he will fix it.

100 02-02-2010 12:49 PM

Quote:

Originally Posted by 100 (Post 1969075)
DEAR

ARE YOU MAKE "Moderator Statistics HAK" FOR VB4?


I NEED THIS


THANK YOU

Thanks
I have developed to comply with the vb4

struff 02-02-2010 03:04 PM

It frustrates me that my partners and I can't get this to work on our site (using the default vB 4.0.1 style). Our users really liked the old Thanks (and the No Thanks) on vB 3.8 but we get nothing in the postbit and no Thanks icon to click now. Our profiles all show "Thanked 0 Times in 0 Posts" but that's the only indication that this product exists at all on our site.

armthehomeless1 02-02-2010 10:50 PM

Quote:

Originally Posted by I.am (Post 1971942)
Someone know how to align blog entries?

https://vborg.vbsupport.ru/

I am having this problem also. Is this because it doesn't support legacy yet?? Anyone got a work around??

Had to disable postbit cause it looks terrible!

TimberFloorAu 02-03-2010 12:12 AM

We have Legacy , works fine.

crazyace 02-03-2010 05:11 AM

Quote:

Originally Posted by armthehomeless1 (Post 1973465)
I am having this problem also. Is this because it doesn't support legacy yet?? Anyone got a work around??

Had to disable postbit cause it looks terrible!

I had this issue also. I disabled the thank you mod.

mfbmike 02-04-2010 06:17 PM

Quote:

Originally Posted by RedTrinity (Post 1971947)
I hope the same, our members are complaining about this issue as well.

Otherwise its a great hack :)

You probably still have the old post groan hack still installed but disabled.

I had the same issue. You need to completely uninstall the old post groan hack.

TimberFloorAu 02-04-2010 07:35 PM

I suspect Mike is correct.

When we upgraded we removed all old products, uninstalling. And then removing all files "that were uploaded" via ftp from each product.

Then started a fresh, with new versions.

ddaybofb 02-05-2010 04:12 PM

Any word on post groan hack?

s0lidgr0und 02-06-2010 10:32 AM

You guys should read this thread and/or the support forum before posting in here.

Quote:

Originally Posted by armthehomeless1 (Post 1973465)
I am having this problem also. Is this because it doesn't support legacy yet?? Anyone got a work around??

Had to disable postbit cause it looks terrible!

https://vborg.vbsupport.ru/showpost....&postcount=373

djbaxter 02-06-2010 03:10 PM

My apologies if this has already been addressed.

vBulletin 4.01

This version of the Thank you hack.

Groans not installed.

The buttons show up correctly.

Clicking on the button updates the thanks count for a mmmber in the User CP and the thanks count in the postbit, but doers NOT display the "Thanked by" informatiion under the post.

Added: Happens in both IE8 and Firefox 3.6.

djbaxter 02-06-2010 04:28 PM

Quote:

Originally Posted by djbaxter (Post 1976072)
My apologies if this has already been addressed.

vBulletin 4.01

This version of the Thank you hack.

Groans not installed.

The buttons show up correctly.

Clicking on the button updates the thanks count for a mamber, but there is no display in postbit.

More information: When I click on "Thanks", in IE8 I get this error:

Code:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Sat, 6 Feb 2010 18:27:47 UTC


Message: Object required
Line: 48
Char: 2
Code: 0
URI: http://myforum.com/clientscript/post_thanks.js


Message: 'null' is null or not an object
Line: 12
Char: 4
Code: 0
URI: http://myforum.com/clientscript/post_thanks.js

And here's the portions of that file referenced.

Around line 12:

Code:

var post_thanks_handleSuccess = function(o)
{
        if(o.responseText !== undefined)
        {
                if (post_thanks_callback.object_name[o.tId] !== undefined)
                {
                        fetch_object(post_thanks_callback.object_name[o.tId]).innerHTML = o.responseText;
                }
        }
}

Around line 48:

Code:

function post_thanks_give(postid, integrate)
{
        fetch_object('post_thanks_button_' + postid).style.display = 'none';
        fetch_object('post_thanks_separator_' + postid).style.display = 'none';

        if (integrate == true)
        {
                fetch_object('post_groan_button_' + postid).style.display = 'none';
        }

        var sUrl = 'post_thanks.php';
        var postData = 'do=post_thanks_add&using_ajax=1&p=' + postid + '&securitytoken=' + SECURITYTOKEN;

        var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, post_thanks_callback, postData);

        post_thanks_callback.object_name[request.tId] = 'post_thanks_box_' + postid;

        fetch_object('post_thanks_box_' + postid).style.display = '';

        return false;
}


TimberFloorAu 02-06-2010 08:00 PM

Code:

if (integrate == true)
        {
                fetch_object('post_groan_button_' + postid).style.display = 'none';
        }

Looks like you have groan hack installed.

We have Thanks hack, and our own reworked groan hack, and no problems.

djbaxter 02-06-2010 08:17 PM

Quote:

Originally Posted by TimberFloorAu (Post 1976233)
Code:

if (integrate == true)
        {
                fetch_object('post_groan_button_' + postid).style.display = 'none';
        }

Looks like you have groan hack installed.

We have Thanks hack, and our own reworked groan hack, and no problems.

No, I don't. That code is from the original .js file included in the download.

TimberFloorAu 02-06-2010 08:42 PM

Thats weird then huh.

TimberFloorAu 02-06-2010 09:23 PM

Yeah 3 instances of it in the js file.

Something to do with future Integration so that the groan hack dovetails in. That could be where the issue lies, if you have already had an installation of the groan hack.

djbaxter 02-06-2010 11:26 PM

Quote:

Originally Posted by TimberFloorAu (Post 1976279)
Yeah 3 instances of it in the js file.

Something to do with future Integration so that the groan hack dovetails in. That could be where the issue lies, if you have already had an installation of the groan hack.

Well, it may well be an issue even if you've never had the Groan hack installed.

TimberFloorAu 02-06-2010 11:51 PM

Quote:

Originally Posted by djbaxter (Post 1976339)
Well, it may well be an issue even if you've never had the Groan hack installed.


Have you tried commenting out the ELSE statements, for the groan calls. In the JS and reuploading to test ?

djbaxter 02-07-2010 12:22 AM

Quote:

Originally Posted by TimberFloorAu (Post 1976349)
Have you tried commenting out the ELSE statements, for the groan calls. In the JS and reuploading to test ?

No. But the code says it should be executed only if integrate is true.

By the way, the page refreshes after clicking on Thanks. I can't remember if it did that in the 3.x version or not.

abualk 02-07-2010 07:02 PM

<u>I've got this error when I tried to import the product :</u>

MySQL Error : MySQL server has gone away
Error Number : 2006

MedellinStyle 02-07-2010 10:35 PM

Any Idea How I Can See Post Thank Stats, For Example To Give Prizes To Most Thanked User Of The Week ????????????????

Kolbi 02-08-2010 09:52 AM

Got this:
Quote:

Datenbankfehler in vBulletin 4.0.1:

Invalid SQL:

REPLACE INTO search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
VALUES (0, '123.125.66.15', 1, 'News', '', 'post.dateline', 'DESC', 0.44188, 1, '12491', 1265627529, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{} s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:368;s:4: \"News\";}s:6:\"forums\";i:0;s:7:\"options\";a:3:{ s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1; s:6:\"action\";s:7:\"process\";}}', 'be4ccffe0560d6bc88402f1743ac06da');

MySQL-Fehler : Table 'search' doesn't exist
Fehler-Nr. : 1146
Fehler-Zeit : Monday, 08.02.2010 @ 12:12:09
Datum : Monday, 08.02.2010 @ 12:12:26
Skript : http://www.2-wheel-planet.de/post_th...ndthanks&u=368
Referrer :
IP-Adresse : 123....
Benutzername : Unregistriert
Klassenname : Database
MySQL-Version :

betty02 02-08-2010 10:06 AM

How come i get the word Thanks! could i not have the little images that are included in the .zip?

https://vborg.vbsupport.ru/external/2010/02/77.jpg

Kolbi 02-08-2010 02:33 PM

I got another 3 MySQL failure message with nr 1146....

x YNWA x 02-08-2010 03:07 PM

Is there a way to have it so it just shows something like "Recieved Thanks: 15", instead of what the user has given out?

cmeinck 02-08-2010 04:02 PM

I made the mistake of uninstalling the product. This removed all the data from the table post_thanks. I have an older backup of my forums with this table, which I then used to replace the emptied table on my live forums.

I'm still seeing 0 of 0 thanks, but there is data in the post_thanks table.

Are there any vBulletin Updates or database queries to get this data recognized?

djbaxter 02-09-2010 01:47 PM

1 Attachment(s)
Quote:

Originally Posted by djbaxter (Post 1976072)
My apologies if this has already been addressed.

vBulletin 4.01

This version of the Thank you hack.

Groans not installed.

The buttons show up correctly.

Clicking on the button updates the thanks count for a mmmber in the User CP and the thanks count in the postbit, but doers NOT display the "Thanked by" informatiion under the post.

Added: Happens in both IE8 and Firefox 3.6.

Quote:

Originally Posted by djbaxter (Post 1976110)
More information: When I click on "Thanks", in IE8 I get this error:

Code:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Sat, 6 Feb 2010 18:27:47 UTC


Message: Object required
Line: 48
Char: 2
Code: 0
URI: http://myforum.com/clientscript/post_thanks.js


Message: 'null' is null or not an object
Line: 12
Char: 4
Code: 0
URI: http://myforum.com/clientscript/post_thanks.js

And here's the portions of that file referenced.

Around line 12:

Code:

var post_thanks_handleSuccess = function(o)
{
        if(o.responseText !== undefined)
        {
                if (post_thanks_callback.object_name[o.tId] !== undefined)
                {
                        fetch_object(post_thanks_callback.object_name[o.tId]).innerHTML = o.responseText;
                }
        }
}

Around line 48:

Code:

function post_thanks_give(postid, integrate)
{
        fetch_object('post_thanks_button_' + postid).style.display = 'none';
        fetch_object('post_thanks_separator_' + postid).style.display = 'none';

        if (integrate == true)
        {
                fetch_object('post_groan_button_' + postid).style.display = 'none';
        }

        var sUrl = 'post_thanks.php';
        var postData = 'do=post_thanks_add&using_ajax=1&p=' + postid + '&securitytoken=' + SECURITYTOKEN;

        var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, post_thanks_callback, postData);

        post_thanks_callback.object_name[request.tId] = 'post_thanks_box_' + postid;

        fetch_object('post_thanks_box_' + postid).style.display = '';

        return false;
}


More information: I just clicked on the Thanks button for a member (I am the owner and admin) and received this:

HansMuenchen 02-10-2010 05:24 PM

Quote:

Originally Posted by Kolbi (Post 1977320)
Got this:
MySQL-Fehler : Table 'search' doesn't exist
Fehler-Nr. : 1146

Here it's the same, someone a idea how to fix it?

Thnx for the answer.

hans

MrKramer 02-10-2010 06:50 PM

Quote:

Originally Posted by HansMuenchen (Post 1979295)
Got this:
MySQL-Fehler : Table 'search' doesn't exist
Fehler-Nr. : 1146

i got this also, its updating the table search, but that table isnt in our DB... and shouldn't be there also.

please make a fix

kermekhaki 02-10-2010 09:25 PM

what is error ? problem db .When I click on the threads. Error occurs.

Database error in vBulletin 4.0.1:

Invalid SQL:
SELECT * FROM post_thanks AS post_thanks INNER JOIN user AS user USING (userid) WHERE post_thanks.postid IN (0Array) ORDER BY post_thanks.username ASC;

MySQL Error : Unknown column '0Array' in 'where clause'
Error Number : 1054
Request Date : Thursday, February 11th 2010 @ 12:22:43 AM
Error Date : Thursday, February 11th 2010 @ 12:22:44 AM
Script : ************
Referrer : *********
IP Address : ********
Username : *********
Classname : vB_Database
MySQL Version : 5.0.81-log

HansMuenchen 02-10-2010 09:51 PM

Quote:

Originally Posted by MrKramer (Post 1979368)
i got this also, its updating the table search, but that table isnt in our DB... and shouldn't be there also.

please make a fix

What you mean with fix? How can I do this?

Thank you for your answer.

Greetings
Hans

Bisha 02-10-2010 11:19 PM

1 Attachment(s)
here you have some nice small pics for Thank you Hack!


All times are GMT. The time now is 08:59 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.02667 seconds
  • Memory Usage 1,864KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_php_printable
  • (21)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
  • (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