Quote:
Originally Posted by sub_ubi
This plugin is broken in PHP7+ (vbulletin 4.2.5 and higher)
profile.php?do=editoptions
Returns with:
Code:
Call to undefined function mysql_num_rows() on line 2 in /var/www/forums/profile.php(2086) : eval()'d code
#0 /var/www/forums/profile.php(2086): eval()
#1 {main}
To fix, change the mysql_ call to mysqli_. This can be found in Plugin Manager -> Recent Thanks - UserCP Field Part2
Change
Code:
$isthere = mysql_num_rows($db->query_read("SELECT recent_thankact FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1"));
To
Code:
$isthere = mysqli_num_rows($db->query_read("SELECT recent_thankact FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1"));
|
Thank you! This worked for me,