Version: 2.6.2, by Scandal
Developer Last Online: Nov 2023
Category: Mini Mods -
Version: 4.x.x
Rating:
Released: 03-14-2012
Last Update: 03-20-2012
Installs: 289
DB Changes Uses Plugins Auto-Templates
Additional Files
No support by the author.
Info:
This mod works with the hack "[AJAX] Post Thank You Hack" as an addon and a) provides a page with the latest X (default: 25) "Thank You" the user has received b) notify the user via vbulletin notification menu (on navbar)
Very useful for users who want to keep up with the "Thank You" votes on their posts.
System Requirements:
[AJAX] Post Thank You Hack - for vB4
vBulletin 4.x
Installation information on hack:
Files edited: 0
Templates edited: 0
Files to upload: 1
Time to install: 1 minute max
How to install:
Upload the file "recent_thanks.php" to your forum directory.
Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
(Optional if you enable the notifications) Add the link "http://www.yourforum.com/recent_thanks.php" where you want (for example to navbar).
Notice (not a bug): The system doesn't decrease the notifications' count for new "Thank you" when the admin push the "Remove all" of a post (rare but ok). So the user will notified but he will not see the removed votes on the page.
How to upgrade:
Upload the new file recent_thanks.php
Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product] with set of "Allow Overwrite" to YES
How to upgrade from vB3 version:
This hack developed from zero for vB4, so if you upgrade your forum from vB3 to vB4 with the vB3 version of this hack on it, you must uninstall first this older version and to do a clean install of this hack (product install and new file upload).
A few days ago, the recent_thankcnt in database is always zero for some users. I thanked for test and checked database, recent_thankcnt is again zero.
how to debug and find error??
please help me
---------------------
solved my problem. in user control panel must ticked notification recent thanks option box
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"));