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)

moledj 03-23-2018 04:58 PM

change includes/functions_post_thanks.php line 180 from:

$post_ids = "0$postids";

to

$post_ids = is_array($postids) ? implode(',',$postids) : "0$postids";

mehedimw 07-28-2018 12:11 PM

Quote:

Originally Posted by moledj (Post 2593709)
change includes/functions_post_thanks.php line 180 from:

$post_ids = "0$postids";

to

$post_ids = is_array($postids) ? implode(',',$postids) : "0$postids";

Problem solved thx bro

Mandushi 06-19-2019 03:42 AM

Quote:

Originally Posted by moledj (Post 2593709)
change includes/functions_post_thanks.php line 180 from:

$post_ids = "0$postids";

to

$post_ids = is_array($postids) ? implode(',',$postids) : "0$postids";

Thnx brother

oldengine 08-25-2019 09:54 PM

Database error in vBulletin 3.8.11 on PHP 7.1.30 MySQL 5.6.45
Invalid SQL:
SELECT * FROM post_thanks WHERE postid IN (0Array) ORDER BY username ASC;

MySQL Error : Unknown column '0Array' in 'where clause'
Error Number : 1054
Request Date : Sunday, August 25th 2019 @ 11:41:49 PM
Error Date : Sunday, August 25th 2019 @ 11:41:49 PM
Script : http://www.smokstak.com/forum/showth...99237&posted=1
Referrer : https://www.smokstak.com/forum/newre...eply&p=1599222
IP Address : 47.199.66.226
Username : Harry
Classname : vB_Database_MySQLi
MySQL Version : 5.6.45-log
Server : 192.252.219.187
User Agent :

Dave 08-25-2019 10:02 PM

Quote:

Originally Posted by oldengine (Post 2600385)
Database error in vBulletin 3.8.11 on PHP 7.1.30 MySQL 5.6.45
Invalid SQL:
SELECT * FROM post_thanks WHERE postid IN (0Array) ORDER BY username ASC;

MySQL Error : Unknown column '0Array' in 'where clause'
Error Number : 1054
Request Date : Sunday, August 25th 2019 @ 11:41:49 PM
Error Date : Sunday, August 25th 2019 @ 11:41:49 PM
Script : http://www.smokstak.com/forum/showth...99237&posted=1
Referrer : https://www.smokstak.com/forum/newre...eply&p=1599222
IP Address : 47.199.66.226
Username : Harry
Classname : vB_Database_MySQLi
MySQL Version : 5.6.45-log
Server : 192.252.219.187
User Agent :

Fix is posted 3 posts above you.
https://vbulletin.org/forum/showpost...postcount=2381

lange 08-26-2019 09:04 AM

12 years later, this mod still works.

oldengine 08-27-2019 04:19 AM

Quote:

Originally Posted by Dave (Post 2600386)

ABSOLUTELY FANTASTIC! Thank you moledj - a lot of users really appreciate this hack!

Thank you, Dave, for opening my eyes!

ShikiSuen 01-02-2020 12:40 PM

Folks, this plugin supports PHP 7.4 as long as you follow PHP warnings to fix constant names to make sure they are quoted.

lange 01-02-2020 02:49 PM

Quote:

Originally Posted by ShikiSuen (Post 2601646)
Folks, this plugin supports PHP 7.4 as long as you follow PHP warnings to fix constant names to make sure they are quoted.

Right ! :up:

Including the following plugins/addons :
[hide] hack incl post thank you "addon" : https://vborg.vbsupport.ru/showthread.php?t=130887

Recent Thanks for [AJAX] Post Thank You Hack : https://vborg.vbsupport.ru/showthread.php?t=279907

AKadoorah 03-28-2020 03:35 AM

Hello folks,

I've switched my PHP from 5.3 to 7.1, after doing so, I've faced an issue:
Code:

Error: [] operator not supported for strings in ..../includes/functions_post_thanks.php on line 180
Trace Data:
#1 : vbstop() called in ..../includes/class_core.php on line 3834
#2 : vbulletin_exception_handler() called in  on line

Var Type:
[ NULL ]

Var Data:
null

For ur information I'm running vb 3.8.11, so is there any solution for this issue?


All times are GMT. The time now is 04:52 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.04400 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (3)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