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)

Qatif 04-01-2010 07:45 AM

A wonderful addition

Regards

desirulez 04-01-2010 01:57 PM

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/post_thanks.php on line 57

i got this error couple of times is it because im using 4.0.2?

Gursimran 04-01-2010 02:16 PM

it is giving me this error whenever someone hits thanks
Quote:

Database error in vBulletin 4.0.2:

Invalid SQL:

REPLACE INTO vb_search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
VALUES (0, '216.129.119.44', 1, 'kamena', '', 'post.dateline', 'DESC', 0.02024, 1, '68244,67192,65715,65241,64400,63989,63672,63579,6 3461,63445,63440,63356', 1270133814, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{} s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:7721;s:6 :\"kamena\";}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\";}}', 'b670002f01f717b90617aa618d41fef3');

MySQL Error : Table '*****.vb_search' doesn't exist
Error Number : 1146
Request Date : Thursday, April 1st 2010 @ 08:26:54 PM
Error Date : Thursday, April 1st 2010 @ 08:26:54 PM
Script : http://******/forum/post_thanks.php?...dthanks&u=7721
Referrer :
IP Address : 216.129.119.44
Username : Unregistered
Classname : vB_Database
MySQL Version :

badawidollah 04-01-2010 02:25 PM

you here to bro gursimran

buontaiviem 04-01-2010 02:27 PM

Quote:

Originally Posted by Gursimran (Post 2014055)
it is giving me this error whenever someone hits thanks

got this error too :(

Gursimran 04-01-2010 03:18 PM

Quote:

Originally Posted by badawidollah (Post 2014063)
you here to bro gursimran

yep :P

Julie 04-02-2010 04:39 PM

Thanks for upgrading this to 4.0! :) *upgrades*

bruschetta 04-02-2010 10:18 PM

Quote:

Originally Posted by Gursimran (Post 2014055)
it is giving me this error whenever someone hits thanks

I solved this mod:

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

using notepad++ you put a second

djbaxter 04-02-2010 11:05 PM

1 Attachment(s)
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!

Thank you. Trying this now.

To make it easier for others, if you want to try this fix, I've attached the the revised post_thanks.php file. Save a backup of the old one and upload this new one to the root directory for your forum.

Vaira 04-04-2010 11:23 AM

Abe1,

I would like to thank you for it. It's a really great addition to my forums!

I have installed it and running 4.0.2 PL4. There are no major issues.
I can confirm that it runs fine. I don't have another mod installed, so nothing could interfere with.

Some minor issues I could resolve with the useful info posted at this thread.

I know you are busy and I would like to use your hack all the time. Therefore I would like to know if you are still supporting this version and if you have planned to add a search function to it as well to make it complete.

A short reply about would be nice.

Thanks again. :)

Vaira (Yen)


All times are GMT. The time now is 09:12 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.07258 seconds
  • Memory Usage 1,762KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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