I know this hack isn't supported any longer, but I'm hoping someone might know a fix for a problem that cropped up when I updated to a newer PHP (v 7.1). I'm told on the main vBulletin forum that PHP 7.1 is the latest version of PHPP that vB 4.2.5 will work with. So, I recently moved from PHP5.7 to 7.1. So far the basic forum seems to function fine, but I did run into an issue with this hack (which I really like). When someone clicks the "Thanks" icon in a post, it now throws the following error:
PHP Code:
[] operator not supported for strings on line 182 in /home/bcf/public_html/bcf/includes/functions_post_thanks.php
#0 /home/bcf/public_html/bcf/includes/functions_post_thanks.php(137): fetch_thanks('1120562', '', false)
#1 /home/bcf/public_html/bcf/post_thanks.php(64): thanked_already(Array)
#2 {main}
I backed off to PHP 7.0 and the error goes away. I tried looking at the differences between 7.0 and 7.1 in the PHP manual, but didn't see anything that jumped out as something that might cause this.
The code at or around like 182 in the script is:
PHP Code:
180 if (empty($postids))
181 {
182 $postids[] = $postid;
183 }
Any ideas how I might modify this script to work with PHP 7.1? Thanks in advance.