View Full Version : Mini Mods - Recent Thanks for [AJAX] Post Thank You Hack
Scandal
03-10-2012, 11:00 PM
vB4 version of this hack here: https://vborg.vbsupport.ru/showthread.php?t=280109
Info:
This mod works with the hack "[AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=165673)" 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 vB3
vBulletin 3.8.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).
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
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.
Changelog:
v1.0 - first release
v1.1 - updated file, new: AdminCP environment/options, new: phrases
v1.2 - updated file, new: notification system
v2.0 - updated file, 2 bug fixes, add usercp option to allow users to turn off the notifications
v2.2 - updated file, improved appearance of the page, 1 bug fix
v2.3 - updated file, linkable usernames, admincp phrase changed, 1 bug fix
Tested on: vBulletin 3.8.7 - Post Thank You Hack 7.7
-> Don't forget to click INSTALL!
Scandal
03-11-2012, 07:04 PM
Reserved :up:
ishare
03-11-2012, 09:56 PM
I liked it.. I'll tag this for later use... Thanks a lot
ahmed-samara
03-11-2012, 10:46 PM
I liked it working ,
Want more development to control view ( header & footer & froumhome & showthread ) .....
www.vbulletin-arabic.net
sadiq6210
03-12-2012, 01:13 PM
Is it work with vb4?
Great work .. I suggest to put an option in admincp to make it as a tab in user profile
Also I suggest to add (notification) when the user receive new thank.
so we will end with perfect thanks system.
Scandal
03-13-2012, 02:30 PM
Is it work with vb4?
Great work .. I suggest to put an option in admincp to make it as a tab in user profile
Also I suggest to add (notification) when the user receive new thank.
Nice idea, I add notification system! :D
PS: It is my first hack! :)
djbaxter
03-13-2012, 03:51 PM
Any chance of updating this for 4.x?
Nook_Neformat
03-13-2012, 07:10 PM
it would be perfect, if any user can choose to receive notifications or not <3
awesome idea of mod though
Concha
03-14-2012, 05:16 AM
In recent_thanks.php, only shows the links when the user creates the topic.
But when I give thanks in messages do not see the link.
Greetings,
sadiq6210
03-14-2012, 06:25 AM
Nice idea, I add notification system! :D
PS: It is my first hack! :)
oh I can't believe :up:
very fast :D .. This is great mod
I need this but I am using vb4
Can we use it with vb4? My users will like this mod
https://vborg.vbsupport.ru/showthread.php?t=231666
Thanks dear
sadiq6210
03-14-2012, 03:51 PM
I tried to install it in vb4 just to know what is the type of error that I will face
- Notification is working perfect with vb4 :up:
- But only when I enter the page (recent_thanks.php) I got the page as shown
Scandal
03-14-2012, 04:01 PM
it would be perfect, if any user can choose to receive notifications or not <3
awesome idea of mod though
I add it on version 2.0 (you can download it).
In recent_thanks.php, only shows the links when the user creates the topic.
But when I give thanks in messages do not see the link.
Greetings,
It happens 'cause you have set the "Automatically Quote Post / Thread Title" to NO on AdminCP> vBulletin Options > Message Posting and Editing Options.
I make some changes and now you can see the titles as PostID: X
Any chance of updating this for 4.x?
oh I can't believe :up:
very fast :D .. This is great mod
I need this but I am using vb4
Can we use it with vb4? My users will like this mod
https://vborg.vbsupport.ru/showthread.php?t=231666
Thanks dear
After the beta "period" has been passed (some days), I'll try to publish a version for vB4 :up:
The hack is in beta stage, please post if you have any problem. :)
Concha
03-14-2012, 04:33 PM
I add it on version 2.0 (you can download it).
It happens 'cause you have set the "Automatically Quote Post / Thread Title" to NO on AdminCP> vBulletin Options > Message Posting and Editing Options.
I make some changes and now you can see the titles as PostID: X
The hack is in beta stage, please post if you have any problem. :)
Ideally, that is not necessary to put in yes "Automatically Quote Post / Thread Title".
Very good hack, though.
Scandal
03-14-2012, 08:00 PM
Ideally, that is not necessary to put in yes "Automatically Quote Post / Thread Title".
Very good hack, though.
Hope that fixed! (upload the new recent_thanks.php of v2.0) :up:
I based the system to thread title, not to post title. ;)
It's better to make link on the thanked post and not to the thread.
Nice mod, thanks!
Concha
03-14-2012, 08:10 PM
Hope that fixed! (upload the new recent_thanks.php of v2.0) :up:
I based the system to thread title, not to post title. ;)
All perfect.
Install and Nominate for MOTM
Concha
03-14-2012, 08:17 PM
Hope that fixed! (upload the new recent_thanks.php of v2.0) :up:
I based the system to thread title, not to post title. ;)
Notification for new "Thanks" on your posts?
The default is OFF.
How to make the default is yes?
Scandal
03-14-2012, 08:48 PM
It's better to make link on the thanked post and not to the thread.
Nice mod, thanks!
The hack make link to thanked post, just with the title of thread the post is. ;)
sadiq6210
03-15-2012, 05:49 AM
The hack make link to thanked post, just with the title of thread the post is. ;)
I suggest to make it like this
Thread title (post#12345)
So if I receive 50 thanks for one post I can know that without need to pass on each link.
Thanks
Nominated + 5 stars :up:
Scandal
03-15-2012, 07:27 AM
I suggest to make it like this
Thread title (post#12345)
So if I receive 50 thanks for one post I can know that without need to pass on each link.
Thanks
Nominated + 5 stars :up:
I'll add a new column with post IDs, cause the bold post#12345 is a little inelegant. ;)
Notification for new "Thanks" on your posts?
The default is OFF.
How to make the default is yes?
I have set the default value of this field to YES for all members. Very queer.
Has anyone this problem?
sadiq6210
03-15-2012, 08:00 AM
I have set the default value of this field to YES for all members. Very queer.
Has anyone this problem?
No, In my forum (vb4), the default value of this field is YES. :up:
BTW, I tried to convert it to vb4 because I like it and want to use it live as soon as possible:cool:, I changed some codes in php file and in the template to finish with this:
https://vborg.vbsupport.ru/attachment.php?attachmentid=137039&stc=1&d=1331798140
That errors is relating to (eval) in two lines:
eval('$recent_thank_bits .= "' . fetch_template('recent_thank_bit') . '";');
&
eval('print_output("' . fetch_template('recent_thanks') . '");');
I tried to update it based on this thread:
https://vborg.vbsupport.ru/showthread.php?t=228078
But failed !
so I decided to wait until you update it to vb4 :p
Scandal
03-15-2012, 08:07 AM
But failed !
so I decided to wait until you update it to vb4 :p
Yes, it is not so simple to convert a product to vB4!
Must be changes to the php file and to templates (variables, css etc).
Don't be so impatient :D I promise I'll try to publish a vb4 version of this hack in a few days, just I want to be sure with vB3 version before starts to develope it.
sadiq6210
03-15-2012, 08:11 AM
Thanks, I will be here until you open new thread in vb4 forum :D:D:D
Scandal
03-15-2012, 06:51 PM
vB4 Version here: https://vborg.vbsupport.ru/showthread.php?t=280109 :up:
Lacryma
03-15-2012, 07:22 PM
Hello, I have a Problem, When I see the notification, all the Style is gone, and I see a blank page with the link, look:
Scandal
03-15-2012, 07:37 PM
Hello, I have a Problem, When I see the notification, all the Style is gone, and I see a blank page with the link, look:
Your vBulletin version?
Lacryma
03-15-2012, 07:41 PM
Powered by : vBulletin® Versión 3.8.6
Scandal
03-15-2012, 07:50 PM
Powered by : vBulletin? Versi?n 3.8.6
I make a change on the file recent_thanks.php, re-download the Recent_Thanks_v2.2_vB3.zip and use the new one recent_thanks.php
Let me know if it fixed
Lacryma
03-15-2012, 07:59 PM
Work Perfect !
Thanksssssss
djbaxter
03-15-2012, 09:42 PM
Using the 4.x version and vBulletin 4.1.1, with the settings as follows:
Set to YES if you want to enable the page. = No
Enable notification system? = Yes
If enabled, user will recieve a notification (on vbulletin notification menu) each time a post has new "thanks" votes.
Notifications of a new Thanks do not occur. This feature, which was what I primarily wanted, only works if the "thanks page" option is enabled (which is okay but I don't particularly need it).
Don't know if this issue also affects the 3.x version.
Scandal
03-16-2012, 08:35 AM
Using the 4.x version and vBulletin 4.1.1, with the settings as follows:
Notifications of a new Thanks do not occur. This feature, which was what I primarily wanted, only works if the "thanks page" option is enabled (which is okay but I don't particularly need it).
Don't know if this issue also affects the 3.x version.
It is very necessary to enable the page, because the notifications' counter (Notifications: x) sets to 0 only when the user visit this page! So, if there wasn't this issue, the notifications' counter would be increase without cease. Also, on notifications there is the link to that page when a user has new thanks.
The page is the the main thing of this hack.
Maybe I should set the title of "Set to YES if you want to enable the page" to "Enable the hack?". The page was the first idea of this hack, so after a lot of improvements I don't change the phrase. If I publish any new version, I'll change it, thanks!
Scandal
03-16-2012, 02:00 PM
Notice (bug): Also, if you have enable the "Allow poster to thank themself", the user will receive notification for him votes.
fixed on v2.3!! ;)
Scandal
03-21-2012, 02:02 PM
The BETA period has been passed. Enjoy! :D
Crimdog
03-26-2012, 01:48 AM
Nevermind, all is working as intended.
viper357
04-13-2012, 12:25 PM
...
Zylantex
04-16-2012, 01:23 PM
Thanks for a great mod.
wangyu1314
09-15-2012, 02:37 AM
can't work in vb 3.6.8, cry.....
Kolektor
09-15-2012, 05:18 AM
works well with 3.8.x
For any user who seems to have issues with the date that displays on the recent_thanks.php page, open recent_thanks.php.
Then go to line 100 and 101, and comment out (/* */) those two lines. Below, add:
$rt_date = vbdate("M j, Y - h:i A", $recent_thank_content_fetcharray['date']);
Then your date should display in this format:
https://vborg.vbsupport.ru/external/2012/09/24.png
Enjoy :)
RSC17
03-05-2013, 04:53 PM
Where exactly do I put this in the template:
*3. (Optional if you enable the notifications) Add the link "http://www.yourforum.com/recent_thanks.php" where you want (for example to navbar).
mangmel
06-26-2014, 09:36 PM
please include thanked removal by admin. next update
Pisadam
01-11-2015, 10:31 PM
I getting an error, can you help me pls.
UPDATE user
SET recent_thankcnt = 0
WHERE userid = 1;
MySQL Error : Unknown column 'recent_thankcnt' in 'field list'
Error Number : 1054
Request Date : Sunday, January 11th 2015 @ 11:21:17 PM
Error Date : Sunday, January 11th 2015 @ 11:21:17 PM
Script : http://www.xxxxx.com/recent_thanks.php
Referrer :
IP Address : 88.234.234.20
Username : xxxxx
Classname : vB_Database
MySQL Version : 5.5.40-cll
Scandal
01-12-2015, 09:41 AM
I getting an error, can you help me pls.
Try to re-install it. Don't forget to import the *xml product! :)
VBFguy
05-17-2015, 04:31 AM
Just installed this on a 3.8.4 board.
When I go to UserCP > Options, this warning appears at the top of the options page:
Warning: mysql_num_rows() expects parameter 1 to be resource, object given in [path]/profile.php(1906) : eval()'d code on line 105
I know it's this hack causing it, as disabling this product eliminates it.
Any suggestions? TIA
Also noticed something else...Unlike what's mentioned above, The "Receive Notifications" userCP checkbox is unchecked by default. If I check it, save options....When I revisit the options page again, that box is not checked, like the setting wasn't saved. I don't know if it's really on or not?
Triky
12-16-2015, 09:22 PM
Same issue here like above. Let us know, @Scandal!
Triky
12-16-2015, 09:32 PM
Ok, solution that seems to work: plugin -> Recent Thanks - UserCP Field Part2:
change:
$isthere = mysql_num_rows($db->query_read("SELECT recent_thankact FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1"));to:
$isthere = mysqli_num_rows($db->query_read("SELECT recent_thankact FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1"));Problem: mysql_num_rows - Solution: mysqli_num_rows
OnlyTouch
12-19-2015, 01:55 PM
Everything is great, thanks, installed!
DCD.RB
05-13-2018, 03:01 AM
On the recent thanks page, the time is the server clock, is it possible to change it so it follows in everyone's time zone?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.