PDA

View Full Version : Mini Mods - Recent Thanks for [AJAX] Post Thank You Hack


Scandal
03-14-2012, 11:00 PM
Info:

This mod works with the hack "[AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=231666)" 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).

Changelog:

v2.5 - First release for vB4
v2.6 - updated file, linkable usernames, admincp phrase changed, 1 bug fix
V2.6.2 - add: who's online location (thanks to Hippy), 1 css fix


Tested on: vBulletin 4.1.11 - Post Thank You Hack 7.83

-> Don't forget to click INSTALL!

sadiq6210
03-15-2012, 06:49 PM
Scandal, you are the best ^_^

Thank you very much for your effort to release it
I appreciate you

Installed + Nominated + 5 stars

Hippy
03-15-2012, 08:16 PM
I like the idead thanks .. will test it out ..

thanks

djbaxter
03-15-2012, 09:41 PM
In 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).

Scandal
03-16-2012, 08:37 AM
In 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).
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. :up:

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!

sadiq6210
03-16-2012, 08:53 AM
I suggest to make the username clickable in (from) column :)

djbaxter
03-16-2012, 12:54 PM
Maybe I should set the title of "Set to YES if you want to enable the page" to "Enable the hack?".

That would be more clear, yes.

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.

So if the member clicks the "new thanks" link on his own notifications, it takes him, to the page listing the last 25 or whatever thanks for the whole forum?

Scandal
03-16-2012, 01:20 PM
So if the member clicks the "new thanks" link on his own notifications, it takes him, to the page listing the last 25 or whatever thanks for the whole forum?
No no, the page doesn't listing the recent thanks for the whole forum. Watch the screenshot (https://vborg.vbsupport.ru/attachment.php?attachmentid=137072&d=1331836292): "Latest 25 "Thank you" on your posts"
Every user watch the latest Thanks on him posts. ;)

djbaxter
03-16-2012, 01:53 PM
Ah... thank you! :)

Scandal
03-16-2012, 02:00 PM
Ah... thank you! :)
v2.6 available! (I change the admincp phrase + 1 bug fix, see below)

Notice (bug): Also, if you have enable the "Allow poster to thank themself", the user will receive notification for him votes.
fixed!! ;)

AURFSCAN
03-16-2012, 02:05 PM
tagged but cant seem to download file.. 'Invalid Attachment specified'

anyone else? or just me?

AURFSCAN
03-16-2012, 02:08 PM
works ok now.. must have tryed when you were updating file

I'll check it out.. cheers

Gemma
03-16-2012, 04:52 PM
Nice idea. Thanks :)

temsamane
03-16-2012, 10:50 PM
i need a mod to show the top of most thanked posts

Hippy
03-16-2012, 11:33 PM
great addon..
suggestion.. when you pick the number of post thanks to show .. there should be a option to go to the next page on the recent_thanks.php page..

would be great

thanks again..
Regards
Hippy

AURFSCAN
03-17-2012, 04:37 PM
another suggestion if you want take a look..

Usergroup permissions to receive notification

:)

Scandal
03-19-2012, 07:59 AM
another suggestion if you want take a look..

Usergroup permissions to receive notification

:)
great addon..
suggestion.. when you pick the number of post thanks to show .. there should be a option to go to the next page on the recent_thanks.php page..

would be great

thanks again..
Regards
Hippy
These functions are not on my priorities, but I'll have them in mind. :up:

Emeralda
03-19-2012, 01:48 PM
It's a nice addition, but to be honest I was kinda hoping this would show all recently given thanks to everyone, not only you.

Furcal15
03-20-2012, 05:51 PM
I did some modification to this....If anyone is interested....In the user info panel, it shows "Thanked XX times in XXX post", well that phrase is now a link and it takes you to http://yoursite.com/recent_thanks.php

See demo here: http://baseballnation.net/showthread.php?4843-Want-to-see-who-thanked-your-post&p=57431&viewfull=1#post57431

Edit Templates > Post_Thanks_Postbit_Info and replace EVERYTHING will the following code:

<vb:if condition="$post['userid']">
<dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
<vb:if condition="$post['post_thanks_thanked_times'] == 1">
<dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};"><a href="/recent_thanks.php">{vb:rawphrase post_thanks_time_post}</a></dd>
<vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
<dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};"><a href="recent_thanks.php">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</a></dd>
<vb:else />
<dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};"><a href="recent_thanks.php">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</a></dd>
</vb:if>
</vb:if>

clutchthese
03-21-2012, 02:10 AM
After installing this, the /recent_thanks.php doesn't display my header!!!

Here is a screenshot of what it looks like.

https://vborg.vbsupport.ru/external/2012/03/18.png

Hippy
03-21-2012, 03:18 AM
only shows under notifications when your thanked like a pm ..

Hippy
03-21-2012, 04:53 AM
Here's a little something for you perfectionists :D

I can't stand to see unknown location in the who's online...

how about you ??

here is a little plugin I tossed together for you guys

Scandal feel free to add it to your next release..
Also your efforts are very much appreciated .. First for not letting Abe1's mod fiddle away...:up: And this Release of a Great Addon For Abe1's Post Thanks Mod

ok
go to your admincp then Plugins & Products - Download / upload plugins > go all the way to the bottom you'll see "Import Plugin Definitions XML File" click browse file find the product.xml on your pc and then click import.. DONE!

here is a screen shot of what it looks like... feel free to change the wording around
enjoy
Hippy

Scandal
03-21-2012, 12:57 PM
After installing this, the /recent_thanks.php doesn't display my header!!!

Here is a screenshot of what it looks like.

https://vborg.vbsupport.ru/external/2012/03/18.png
I talk with clutchthese via PM and the problem solved. The solution:
Open the template recent_thanks and find find the line:
{vb:raw headinclude}
add below:
{vb:raw headinclude_bottom}
:up:

Scandal
03-21-2012, 08:19 PM
Beta period has been passed. Enjoy! :D

v2.6.2 - add: who's online location (thanks to Hippy), 1 css fix

Hippy
03-21-2012, 09:34 PM
your Da Man Scandal
welcome

Scandal
03-28-2012, 10:52 AM
vB3.8.x version of this hack, here (https://vborg.vbsupport.ru/showthread.php?t=279907). :)

fai99al99
03-31-2012, 12:54 AM
great add thank you and for Furcal15

Hippy
03-31-2012, 02:07 AM
I did some modification to this....If anyone is interested....In the user info panel, it shows "Thanked XX times in XXX post", well that phrase is now a link and it takes you to http://yoursite.com/recent_thanks.php

See demo here: http://baseballnation.net/showthread.php?4843-Want-to-see-who-thanked-your-post&p=57431&viewfull=1#post57431

Edit Templates > Post_Thanks_Postbit_Info and replace EVERYTHING will the following code:

<vb:if condition="$post['userid']">
<dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
<vb:if condition="$post['post_thanks_thanked_times'] == 1">
<dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};"><a href="/recent_thanks.php">{vb:rawphrase post_thanks_time_post}</a></dd>
<vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
<dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};"><a href="recent_thanks.php">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</a></dd>
<vb:else />
<dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};"><a href="recent_thanks.php">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</a></dd>
</vb:if>
</vb:if>

revised it a little . added alt= for mouse over

<vb:if condition="$post['userid']">
<dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
<vb:if condition="$post['post_thanks_thanked_times'] == 1">
<dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};"><a href="/recent_thanks.php" alt="" title="View Your Recent Thanks">{vb:rawphrase post_thanks_time_post}</a></dd>
<vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
<dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};"><a href="recent_thanks.php" alt="" title="View Your Recent Thanks">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</a></dd>
<vb:else />
<dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};"><a href="recent_thanks.php" alt="" title="View Your Recent Thanks">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</a></dd>
</vb:if>
</vb:if>

Adam H
04-01-2012, 09:42 AM
Like it and good to see the better Post thanks hack being worked on still, However i wish coders would take a little more time and put classes on their tables and divs so that everyone can style the mod how they like with out having to edit the mod templates them selves and everything can be done with CSS.

Hippy
04-01-2012, 10:48 AM
Like it and good to see the better Post thanks hack being worked on still, However i wish coders would take a little more time and put classes on their tables and divs so that everyone can style the mod how they like with out having to edit the mod templates them selves and everything can be done with CSS.

there is enough work just feeking it working like it should
please if you made improvements
pot them so we can add them..
poke the link in my sig to see what was done to date

Adam H
04-01-2012, 11:51 AM
there is enough work just feeking it working like it should
please if you made improvements
pot them so we can add them..
poke the link in my sig to see what was done to date

Its not a matter of making improvements its a matter of creating something that is good enough for people to customise , currently the design aspects are less than standard VB layout. Its not eye catching , if there was just a simple blank unique class added which you could then style from it would make it much better. 90% of modifications are not built with design in mind, more of functionality.

For example if there was a unique div class wrapping the blockbody it would then allow the entire page to be styled in a much nicer for each forum owner to style if they need too.

Its easy enough to edit the plugins template our selves and do it but it could potentially mean redoing it if there is template edit in future versions where as if there was an existing class the only thing we would need to edit is the additional.css which is what its designed for.

Just a thought

Great mod though.

Scandal
04-03-2012, 12:06 PM
Recent Thanks for [AJAX] Post Thank You Hack is now on the poll for MOTM April 2012. Thanks to all for their choice! ;)

Hippy
04-03-2012, 03:25 PM
Recent Thanks for [AJAX] Post Thank You Hack is now on the poll for MOTM April 2012. Thanks to all for their choice! ;)
back @ you..

thanks for the great mod for abe1's mod .. helps keep it alive:up:

SeeLand
04-04-2012, 07:23 PM
Great addon, works fine in vbulletin 4.1.11

sadiq6210
04-05-2012, 05:09 AM
Voted. :up:

sivaganeshk
04-07-2012, 01:51 PM
Can I change the phrase to LIKE ?

Scandal
04-07-2012, 02:12 PM
Can I change the phrase to LIKE ?
Of course, this product uses the vbulletin phrases system, so you can change the relative phrase to "Likes". ;)

cashcash
04-08-2012, 04:06 PM
this hack cause me a problem with the general setting in the usercp see pic attach
i also see a warning before:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/profile.php(2087) : eval()'d code on line 3

i use vb4.1.10

Emeralda
04-08-2012, 06:34 PM
Of course, this product uses the vbulletin phrases system, so you can change the relative phrase to "Likes". ;)

I was looking before in phrases for this: http://prntscr.com/7wavx but I couldn't find it >.<

Scandal
04-10-2012, 01:01 PM
this hack cause me a problem with the general setting in the usercp see pic attach
i also see a warning before:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/profile.php(2087) : eval()'d code on line 3

i use vb4.1.10
Go to admincp > Plugins & Products > Plugin Manager, open the plugin "Recent Thanks - UserCP Field Part2" and replace its contents with:
if ($vbulletin->options['recent_thanks_notif'] AND $vbulletin->options['recent_thanks_on_off']){
$quer = "SELECT recent_thankact FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1";
$temp = $db->query_read($quer) or die("Error: ". mysql_error(). " with query ". $quer);
$isthere = mysql_num_rows($temp);
if($isthere){
$recent_thankact_checked = 'checked="checked"';
}
else {$recent_thankact_checked='';
}

$templater = vB_Template::create('recent_thanks_ufield');
$templater->register('recent_thankact_checked', $recent_thankact_checked);
$templater->register_page_templates();
$template_hook[usercp_options_messaging] .= $templater->render();

}
.. and post here the message you receive now on the usercp.

I was looking before in phrases for this: http://prntscr.com/7wavx but I couldn't find it >.<
wow you are right, this phrase in inside the file recent_thanks.php.
Open it and change the phrase Recent Thanks on the line:
$navbits = construct_navbits(array('' => 'Recent Thanks'));
with that you want.

cashcash
04-10-2012, 01:17 PM
Go to admincp > Plugins & Products > Plugin Manager, open the plugin "Recent Thanks - UserCP Field Part2" and replace its contents with:
if ($vbulletin->options['recent_thanks_notif'] AND $vbulletin->options['recent_thanks_on_off']){
$quer = "SELECT recent_thankact FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1";
$temp = $db->query_read($quer) or die("Error: ". mysql_error(). " with query ". $quer);
$isthere = mysql_num_rows($temp);
if($isthere){
$recent_thankact_checked = 'checked="checked"';
}
else {$recent_thankact_checked='';
}

$templater = vB_Template::create('recent_thanks_ufield');
$templater->register('recent_thankact_checked', $recent_thankact_checked);
$templater->register_page_templates();
$template_hook[usercp_options_messaging] .= $templater->render();

}
.. and post here the message you receive now on the usercp.



the message i get :

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/profile.php(2087) : eval()'d code on line 5

Emeralda
04-10-2012, 01:44 PM
=^.^=

http://img198.imageshack.us/img198/245/595fad285e34478da7ca366.png

Scandal
04-10-2012, 02:15 PM
the message i get :

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/profile.php(2087) : eval()'d code on line 5
Try another one replace to the plugin with:
if ($vbulletin->options['recent_thanks_notif'] AND $vbulletin->options['recent_thanks_on_off']){
$isthere = $db->num_rows($db->query_read("SELECT recent_thankact FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1"));
if($isthere){
$recent_thankact_checked = 'checked="checked"';
}
else {$recent_thankact_checked='';
}

$templater = vB_Template::create('recent_thanks_ufield');
$templater->register('recent_thankact_checked', $recent_thankact_checked);
$templater->register_page_templates();
$template_hook[usercp_options_messaging] .= $templater->render();

}
Hope it will fix the problem.

cashcash
04-10-2012, 02:27 PM
Yes, it did.

Thank you.

CouponWCents
04-10-2012, 11:53 PM
Thanks soooooooooo much!! Been waiting for this!

DontWannaName
04-12-2012, 10:59 PM
Is it just me or is the recent like page really slow?

jimnyc
04-17-2012, 03:50 PM
Excellent, I love it and it works perfectly on 4.1.12!

When a notification appears, you click on it and it brings you to the page with the last 25 thanks. Can someone tell me how to place a link on the lower portion of the navbar, the one that has "new posts" and "private messages" - so members can click on the link at anytime and see the most recent thanks? It seems that once you wander away from viewing the thanks, there is no way to get back to that page, but I can't figure out how to post a permanent link on the navbar.

Thanks!

-Jim

Scandal
04-17-2012, 04:09 PM
Excellent, I love it and it works perfectly on 4.1.12!

When a notification appears, you click on it and it brings you to the page with the last 25 thanks. Can someone tell me how to place a link on the lower portion of the navbar, the one that has "new posts" and "private messages" - so members can click on the link at anytime and see the most recent thanks? It seems that once you wander away from viewing the thanks, there is no way to get back to that page, but I can't figure out how to post a permanent link on the navbar.

Thanks!

-Jim
Go to admincp > Styles & Templates > Search in templates >
... find and open the template "navbar"

find
{vb:raw template_hook.navbar_after_pm}
add below
<li><a href="recent_thanks.php" rel="nofollow">Recent Thanks</a></li>

The result:
137840

:up:

jimnyc
04-17-2012, 04:43 PM
Worked perfectly, thanks much for the code and such a quick response!

-Jim

ywwz
04-22-2012, 04:21 AM
I am running 4.1.11, and I cannot install Post Thank You Hack, so this one is not a option for me:( I need a thank you hack...

Hippy
04-22-2012, 01:07 PM
post thanks mod is perfect ... peek at the link in my sig..

Emeralda
05-02-2012, 10:18 AM
How to fix the time on the page? It's really bugging me, I think it shows the server time, not the user's one. The clock next to ava is a "live clock" showing my current time. The last like given was done almost exactly 16 minutes prior to taking the screenie.

https://vborg.vbsupport.ru/

Hippy
05-02-2012, 09:16 PM
your forum may be set to 24-Hour Format Time

admincp options
Date and Time Options
Format For Time
should be h:i A
Might be set to H:i

Emeralda
05-03-2012, 10:23 AM
Nope, it was already in the AM/PM h:i A format, I just double checked.

Hippy
05-03-2012, 11:11 AM
Then there might be a conflict with another mod did u try to turn off all your other mods ,leave this one on and that clock, to see, and test it wit a stock default style

Emeralda
05-03-2012, 11:37 AM
It's not the clock thing, I removed both js files and it still was off. And the mods, uhm, there's quite a lot of them. Could you browse through the list, maybe it would save me the effort of turning all of them one by one >.<

http://prntscr.com/8t8dm
http://prntscr.com/8t8e4

Hippy
05-03-2012, 11:48 PM
dunno I would have to test..
if you like pm me details and I'll drop by

Hippy
05-05-2012, 01:09 PM
upload this file to your root dir ...

snipped

Emeralda
05-05-2012, 02:06 PM
It's still 6 hours behind my local time.

Hippy
05-05-2012, 02:31 PM
I don't under stand .. I only changed it from 24 format to 12 ..
the dates don't match when the thanks where given..
thank me at your place so I can view something..

Hippy
05-05-2012, 02:38 PM
try this one,...

added this fix

Try this:
1. Open the recent_thanks.php
2. Find the line 101:
$rt_date = date("d-m-Y - H:i", $date_timestamp);
3. Replace it with:
$rt_date = vbdate("d-m-Y - H:i", $date_timestamp);

Emeralda
05-05-2012, 04:05 PM
Still shows server time >.<

djbaxter
05-05-2012, 04:23 PM
What kind of hosting are you on? How is it set in WHM or cPanel?

Hippy
05-05-2012, 04:41 PM
Still shows server time >.<

That file might not have the time change I had to rush out..bbl the first one didn't right?

Emeralda
05-05-2012, 05:52 PM
That file might not have the time change I had to rush out..bbl the first one didn't right?

What first one and what does bbl mean?

Hippy
05-05-2012, 06:05 PM
I added 2 files , bbl = be back later

Emeralda
05-05-2012, 06:36 PM
I tried both the you've uploaded today.

Hippy
05-05-2012, 07:35 PM
you have the correct one in ...
I see the issue now .. all is good for me because my time zone..
but it's not using the vb code for the time..

it's coded into the recent_thanks.php
Scandal would you lok into it please thanks

Scandal
05-06-2012, 01:10 PM
How to fix the time on the page? It's really bugging me, I think it shows the server time, not the user's one. The clock next to ava is a "live clock" showing my current time. The last like given was done almost exactly 16 minutes prior to taking the screenie.

http://img825.imageshack.us/img825/7272/2afee91d2aa04fa78c1461e.png
Try this:
1. Open the recent_thanks.php
2. Find the line 101:
$rt_date = date("d-m-Y - H:i", $date_timestamp);
3. Replace it with:
$rt_date = vbdate("d-m-Y - H:i", $date_timestamp);

Emeralda
05-06-2012, 02:26 PM
That one worked, or at least I think that's the one that Hippy sent me on the forum. Rawr, great thankies to both of you~

That file might not have the time change I had to rush out..bbl the first one didn't right?

By the way, I haven't not noticed that you've edited the second upload before, I was totally sure you meant something else when you said it, silly me >.<

Hippy
05-06-2012, 02:31 PM
That one worked, or at least I think that's the one that Hippy sent me on the forum. Rawr, great thankies to both of you~



By the way, I haven't not noticed that you've edited the second upload before, I was totally sure you meant something else when you said it, silly me >.<

it's his fix vbdate and the time and date format I posted for you..
I also updated my last attachment for everyone else..

enjoy

sadiq6210
05-16-2012, 07:34 AM
If you use vBadvanced Links Directory you will get wrong url for recent thanks when you try to open it from Links Directory pages.

To solve this, admincp >> plugin >> open plugin (Recent Thanks - Notifications Plugin)
search for:
'link' => $vbulletin->options[bburl] . '/recent_thanks.php',

Replace it with:

'link' => 'recent_thanks.php',

:)

kamran_dotnet
05-25-2012, 08:31 AM
anyone test "Recent Thanks" in vbulletin 4.2 ?

edytwinky
05-26-2012, 11:13 PM
Yep. It works!

edytwinky
06-07-2012, 01:52 PM
So this just shows likes for your posts.

Is there a way to show the most liked posts for the entire forum?

del Drago
06-09-2012, 04:39 PM
Thanks for this excellent mod!

After upgrading to 4.2, users were no longer notified of thanks received. This mod corrects that problem beautifully!!

Streamcentral
06-22-2012, 05:26 PM
Hi

ive downloaded and uploaded this hack and its installed correctly because i can see the option for "enable recent thanks hack " however i cant see the option to thank users anywhere on the forum is their something i need to change in the templates in order for this to appear?

Hippy
06-22-2012, 05:47 PM
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)

kamrandahir
06-28-2012, 06:21 PM
The following dependencies were not met:

This product is not compatible with version 4.2.0 of vBulletin. (Compatible starting with 4.0.0 beta 4 / Incompatible with 4.1.0 alpha 1 and greater)

Jerit2012
07-08-2012, 07:04 AM
I am using vb4.1.12 and my Total no of thanks received by user is not increasing after pressing thanks. It will increase only after refresh the page.

I am also using [AJAX] Post Thank You Hack

Kindly advise how i can fix this.

Mark.B
07-08-2012, 11:10 AM
I am using vb4.1.12 and my Total no of thanks received by user is not increasing after pressing thanks. It will increase only after refresh the page.

I am also using [AJAX] Post Thank You Hack

Kindly advise how i can fix this.
If you mean in the postbit, that's how the mod works I'm afraid.

However that is related to the thanks mod itself, not this mod.

yjeanrenaud
07-10-2012, 02:25 PM
great mod. it works in postbit, but only shows the thanks you got and not the one another user received. so it'd be pretty nice to have it using $post variables in postbit_legacy.

Dondxon
07-19-2012, 08:50 PM
how can i install this right? instructions wont help me.

Hippy
07-19-2012, 09:02 PM
upload all files to your forums root dir
then in admincp import the xml file..
under manager products
at the bottom youll see
[Add/Import Product] < import xml on that page

DFish
08-16-2012, 12:59 AM
Great mod, a definite "must have" in my opinion. I've been using this (although inactive) for quite some time due to an issue I've been experiencing. I thought I'd finally ask for some help so here it is:

I put a link on my navbar so members could see their recent thanks. However, every time I (or anyone else) clicks on it, it asks me to log in even though I was logged in previously. It doesn't affect my current log in on the forum though.

Anyone know what I'm doing wrong? Appreciate the help.

Hippy
08-18-2012, 05:57 PM
are you using this recent_thanks.php{session.sessionurl_q}
for your target url ?
and
Product = vBulletin ?

deltahawk5
09-25-2012, 03:05 AM
How can I give thanks to users? I'm trying to manually re-add them from the old platform at user's request.

Black Snow
10-07-2012, 02:25 PM
When I install this on 4.2.0 and go to recent_thanks.php, it just shows as a blank page. Anyone have any ideas?

jimnyc
11-16-2012, 04:21 PM
Confirmed members posting thanks have right time on their side, but all the thanks are showing up under "recent thanks" as 1 hour behind right now. Any idea what can be causing this?

jimnyc
11-16-2012, 04:33 PM
Try this:
1. Open the recent_thanks.php
2. Find the line 101:
$rt_date = date("d-m-Y - H:i", $date_timestamp);
3. Replace it with:
$rt_date = vbdate("d-m-Y - H:i", $date_timestamp);

Disregard my prior post, I changed "date" to "vbdate" as per the above reply and that solved my issue.

Many thanks!!

deltahawk5
11-18-2012, 06:23 AM
Love this! My members had been begging for it since we moved to vBulletin!

Cheers!

sirtrojan
11-20-2012, 05:00 PM
I see no change after this mode installation :/
Can somebody help me
http://www.ifans.pl/forum.php

I veen follow the manual and see no change at all. I see the mode in CP and is marked Yes - twice.

Hippy
11-20-2012, 09:34 PM
I see no change after this mode installation :/
Can somebody help me
http://www.ifans.pl/forum.php

I veen follow the manual and see no change at all. I see the mode in CP and is marked Yes - twice.

Im unsure of what you mean ,..
can you elaborate a little more
you can pm me details and I can come by to fix it or see whats wrong

sadiq6210
12-22-2012, 09:59 AM
Peter, is it possible to make the new thanks in "Bold" font when the user open the "Recent thanks page"?

d1alaccom
12-23-2012, 07:18 PM
thank you very much!!

pasta186
03-03-2013, 06:20 PM
Which directory? Where do I upload the " Recent thanks php " ?

RedFoxy
04-20-2013, 06:26 PM
there is a way to have a setting to "Individual Forums to Turn Post Thank You Hack Off" and not off, I want that hack to be active only in few sub forums not in whole board

smile2me
04-22-2013, 08:17 PM
I got that error when i click on general settings placed under my account tab.

Warning: mysql_num_rows() expects parameter 1 to be resource, object given in [path]/profile.php(2083) : eval()'d code on line 3

any help will be much appreciated

root2012
05-14-2013, 01:38 AM
can you get such a list in the back usercp ?????

https://vborg.vbsupport.ru/external/2013/05/40.png

root2012
05-20-2013, 02:23 AM
Unfortunately, no support here more or ??????

Hippy
05-20-2013, 09:36 AM
If it can be done some will answer.

sub_ubi
06-03-2013, 12:17 AM
I'd like a mod to be able to see all recent thanks, rather than just yours.

As an admin it would help me keep an eye on how many people are using the thanks system.

ForceHSS
06-03-2013, 12:29 AM
I'd like a mod to be able to see all recent thanks, rather than just yours.

As an admin it would help me keep an eye on how many people are using the thanks system.

have you tested this one (https://vborg.vbsupport.ru/showthread.php?t=243510)

djbaxter
07-20-2013, 06:35 PM
I've just been made aware that if you have thanks enabled in private forums any user will be able to see thanks for threads in those forums with of course the title of the thread exposed. Thjey cannot get access to read the thread or post but even revealing the title may be undesirable in a moderators or administrators forum, for example.

I've now disabled thanks in all private forums. Can anyone provide me with an SQL query to now delete any thanks currently existing for those specific forum IDs?

dlewisr
07-31-2013, 11:33 AM
Great add on. A big thumbs up from me. Thank you very much.

Marked as installed, rated and liked.

stevieb
09-28-2013, 10:49 AM
Can this hack be separated so that the user can determine whether to show notifications on an individual basis as opposed to forum-wide?

Some users like the notification pop-up whilst others hate it. Is there any way to add a tick box option in the user settings?

ForceHSS
09-28-2013, 11:23 AM
What pop up are u talking about

Bubble #5
09-29-2013, 04:32 AM
are you using this recent_thanks.php{session.sessionurl_q}


This brings us to a empty form. Was working a second ago, but when you refresh the form it's empty.

Benedicte
09-29-2013, 05:45 PM
How do I do this? :
3. (Optional if you enable the notifications) Add the link "http://www.yourforum.com/recent_thanks.php" where you want (for example to navbar).

Hippy
09-29-2013, 06:16 PM
This brings us to a empty form. Was working a second ago, but when you refresh the form it's empty.

Adding that to make a tab or sudtab will not cause it to be blank..
Install the xml again overwriting it and see if it helps

Bubble #5
09-29-2013, 11:16 PM
Adding that to make a tab or sudtab will not cause it to be blank..
Install the xml again overwriting it and see if it helps

THANKS Hippy :)

Benedicte
09-30-2013, 05:21 AM
When I click on the line "New Thanks in your post" = nothing happends!
So I don't get to a page where I can see the thanks...
What did I do wrong? :o

Benedicte
09-30-2013, 06:29 PM
When I click on the line "New Thanks in your post" = nothing happends!
So I don't get to a page where I can see the thanks...
What did I do wrong? :o

Anybody? :)

Bubble #5
09-30-2013, 06:34 PM
When I click on the line "New Thanks in your post" = nothing happends!

Where do you see this? :confused:

I had to manually put my link in the Quick Links drop down menu.

Benedicte
09-30-2013, 08:04 PM
Where do you see this? :confused:

I had to manually put my link in the Quick Links drop down menu.
Where can I find that?

Under my notifications it says 21 New Thanks to your posts
and when I click on the link I come to this (http://www.juleglede.net/forum/recent_thanks.php) page

Thank you! :)

Bubble #5
09-30-2013, 09:33 PM
Where can I find that?

If you have 4.2.1 you have to add it manually through the ACP Navigation Manager.

ForceHSS
09-30-2013, 11:40 PM
Where can I find that?

Under my notifications it says 21 New Thanks to your posts
and when I click on the link I come to this (http://www.juleglede.net/forum/recent_thanks.php) page

Thank you! :)

Looks like you have messed something up there try installing all files and xml again
Try this one https://vborg.vbsupport.ru/showthread.php?t=243510

Benedicte
10-01-2013, 07:22 AM
If you have 4.2.1 you have to add it manually through the ACP Navigation Manager.

I have 4.0.7 :)

stevieb
10-16-2013, 10:48 PM
What pop up are u talking about sorry for the delay.

I mean the notifications icon (top right). It usually glows up if you get a new pm. When I activate notifications to this hack it annoys certain users as they only have notifications for PM's and when they get say 20 thanks they think they have 20 new PM's lol.

You can't please everyone hence in order to do so I was asking if it's possible to have a tick box option in userCp that allows thanks notifications like we do in admin to enable/disable forum wide.

Hippy
10-16-2013, 11:07 PM
sorry for the delay.

I mean the notifications icon (top right). It usually glows up if you get a new pm. When I activate notifications to this hack it annoys certain users as they only have notifications for PM's and when they get say 20 thanks they think they have 20 new PM's lol.

You can't please everyone hence in order to do so I was asking if it's possible to have a tick box option in userCp that allows thanks notifications like we do in admin to enable/disable forum wide.

Ones it's poked they will see there pms thanks etc
It's a notification.
If they think it's a pm they will be surprised when it drops down. ;D

stevieb
10-16-2013, 11:15 PM
Lol yea I know but can we make an option in user cp that is individual choice and not forum wide?

Hippy
10-16-2013, 11:30 PM
I'm sure you can be but there was no demand for it it was never done.
Sorry if scandal likes the idea he may.

stevieb
10-16-2013, 11:40 PM
Fair enough. Thanks mate :)

Zoul
11-27-2013, 12:56 PM
Hello
a little help please

I am running vb 4.2.1
and I use Post Thank You Hack 7.82 (I did not find the 7.83 version marked test above)

I have no Recent_Thanks that appears in the party while I made two actions.
Yet the addon is enabled

My navbar is completely created and I introduced them the link to the page: recent_thanks.php

I let you look:

https://vborg.vbsupport.ru/external/2013/11/10.png

it several times I got the xml file without success.
Do you have an idea please?

evelynpriscilla
11-29-2013, 07:34 PM
if ($vbulletin->options['recent_thanks_notif'] AND $vbulletin->options['recent_thanks_on_off']){
$quer = "SELECT recent_thankact FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1";
$temp = $db->query_read($quer) or die("Error: ". mysql_error(). " with query ". $quer);
$isthere = mysql_num_rows($temp);
if($isthere){
$recent_thankact_checked = 'checked="checked"';
}
else {$recent_thankact_checked='';
}

$templater = vB_Template::create('recent_thanks_ufield');
$templater->register('recent_thankact_checked', $recent_thankact_checked);
$templater->register_page_templates();
$template_hook[usercp_options_messaging] .= $templater->render();

}

Getting this error message in vb4.2.1

Warning: mysql_num_rows() expects parameter 1 to be resource, object given in [path]/profile.php(2083) : eval()'d code on line 4


Try another one replace to the plugin with:
if ($vbulletin->options['recent_thanks_notif'] AND $vbulletin->options['recent_thanks_on_off']){
$isthere = $db->num_rows($db->query_read("SELECT recent_thankact FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1"));
if($isthere){
$recent_thankact_checked = 'checked="checked"';
}
else {$recent_thankact_checked='';
}

$templater = vB_Template::create('recent_thanks_ufield');
$templater->register('recent_thankact_checked', $recent_thankact_checked);
$templater->register_page_templates();
$template_hook[usercp_options_messaging] .= $templater->render();

}
Hope it will fix the problem.

Parse error: syntax error, unexpected '<' in /home1/******************/profile.php(2083) : eval()'d code on line 15

Thanks for the mod and support.

jimnyc
12-06-2013, 03:43 PM
I am running version 4.2.0 and am using this with version 7.83 of the thank you hack, with all the updates through the thread. All was fine until a few days ago, of course with 0 changes to my site or this hack.

Anyway, when someone clicks on "recent_thanks", much of the time it hangs or takes forever. Then while it's hanging, I get a SQL database error emailed to me that the "server has gone away". Nothing else on my site causes this to happen.

I assume when someone click on this, it does a query for the last 25 thanks received and displays them. Somehow this script is causing the SQL server to hang. I did recently move between providers.

Could this be a database problem? Or maybe something with a file? This is the email I receive, with personal stuff redacted. Thanks to anyone that can point me in right direction!!

Database error in vBulletin 4.2.0:

Invalid SQL:

SELECT post_thanks.postid, post_thanks.date, post_thanks.username, post_thanks.userid, thread.title
FROM post_thanks AS post_thanks
LEFT JOIN post AS post
ON post_thanks.postid = post.postid
LEFT JOIN thread AS thread
ON thread.threadid = post.threadid
WHERE post.userid = '23'
ORDER BY post_thanks.id DESC
LIMIT 25;

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Friday, December 6th 2013 @ 09:15:16 AM
Error Date : Friday, December 6th 2013 @ 09:16:18 AM
Script : http://www.***.com/recent_thanks.php
Referrer : http://www.***.com/forum.php
IP Address : 208.102.*.*

jimnyc
12-06-2013, 03:53 PM
^^ In addition to the above, I just uninstalled this hack, re-uploaded all of the PHP files and re-installed the XML. I also changed the results page from 25 thanks to 15. The results are the same, very, very slow. Everything else on my site loads quickly.

Hippy
12-06-2013, 04:42 PM
Changing host is definitely the cause.

Did you try optimizing the database from phpmyadmin?

Did you try the recounter in the admincp for post thanks?

Something is screwy with the count causing the errors and slowing sql (database) searching.

Install post thanks xml from the admincp. Overwriting.
Don't uninstall, you'll lose at data

jimnyc
12-06-2013, 04:56 PM
Changing host is definitely the cause.

Did you try optimizing the database from phpmyadmin?

Did you try the recounter in the admincp for post thanks?

Something is screwy with the count causing the errors and slowing sql (database) searching.

Install post thanks xml from the admincp. Overwriting.
Don't uninstall, you'll lose at data

I did the optimize earlier, and I did the overwrites. Where in the admincp will I find the option to recounter the post thanks? I looked under maintenance so far and can't locate it.

Thanks!!

jimnyc
12-06-2013, 04:59 PM
I found it, doing the recounter now...

Hippy
12-06-2013, 05:02 PM
Is on the right side of your abnincp under post thanks.
Did you optimize through your board or phpmyadmin?

If the board do it from phpmyadmin.

jimnyc
12-06-2013, 05:24 PM
Is on the right side of your abnincp under post thanks.
Did you optimize through your board or phpmyadmin?

If the board do it from phpmyadmin.

When I did it it was through PHPmyadmin. I am currently on the last recounter 'rebuild' right now. Hopefully that will help speed things up a tad. Weird that this would be the one thing affected during the move (that I'm aware of).

Thanks again!

jimnyc
12-06-2013, 05:44 PM
As it's going through the last counter - Update Post Thanks Post Amount - which I think is about 670k posts... It got to about 130k and really bogged down there, I got an email report that the SQL server has gone away, and then it picked back up and is very smooth since. Does it make sense that it would get to a certain portion of the counter and die down, and then get through it? Would that potentially point to an issue in that 'counted' area, or maybe now that it's doing its recounting it may have fixed what was wrong in the database?

Just rambling until it's done! I just love the thanks hack and the recent thanks, hoping not to lose either of them!

Hippy
12-06-2013, 05:55 PM
If it stumbled on something that wasn't right it will load sql.
It could of been a moved or deleted post or thread. Never know.
All you know atm is something isn't right
Hope it will correct any issue.
Trouble shooting after a move is time consuming.

Hood luck

jimnyc
12-06-2013, 11:52 PM
If it stumbled on something that wasn't right it will load sql.
It could of been a moved or deleted post or thread. Never know.
All you know atm is something isn't right
Hope it will correct any issue.
Trouble shooting after a move is time consuming.

Hood luck

I did all of the above earlier today and things seemed a little smoother for awhile. Now it's back to just hanging when I click on recent thanks, or taking an awfully long time, and getting sporadic emails with recent_thanks as the script and that the mysql server has gone away. But again, it's not the server, as everything else loads quickly and flawlessly.

Is my only option going to be to remove the post thanks 7.83? I've reuploaded and overwrote all files and reinstalled the xml, but I'm hoping to not have to uninstall and lose what took so long to accumulate. :(

Thanks!

jimnyc
12-06-2013, 11:55 PM
Just to add, which is odd, but this seems to happen each time now... Once the issue starts, then it gets worse, then it worsens until the SQL server hangs and I get the error. Often, after that, it miraculously starts working for awhile again, and flawlessly, until it starts again. But through it all, nothing else is affected. And what I mean by that is every automated email I get is in reference to recent_thanks, and nothing else ever hangs up when clicked on.

jimnyc
12-07-2013, 11:39 AM
I'm in a little bit of distress mode now! LOL

I decided this morning to uninstall the post thanks 7.83 hack and start over. But when I click on uninstall, it just sits there forever. Something must be screwy in the database. Tried like 10x and can't uninstall. But now, opening ANY thread on the board (where a thanks must have been made), the thread won't open and I get a SQL error as noted below. Anyway to fix this and uninstall the post thanks and recent thanks hack manually?

Thanks!

jimnyc
12-07-2013, 11:58 AM
For future readers in a similar situation, at least I figured out my uninstall problem. I first went into "plugin manager" and deactivated all "post thank you" references. Then I uninstalled the "recent thanks" hack first. Then it let me uninstall the post thanks hack finally. I don't know if removing the other hack allowed me to uninstall the other, or if it was deactivating plugins, or just sheer luck.

I completelt reinstalled everything from scratch again, just like I did from the get go. Hopefully that will put and end to my issue!

:crossing finger smiley:

Thanks!

viliksar1
02-16-2014, 06:33 PM
4.2.2 does not work on how to make it work?

ForceHSS
02-16-2014, 07:41 PM
4.2.2 does not work on how to make it work?

Maybe posting any error logs or something to show us its not working for you as its hard to guess

viliksar1
02-17-2014, 07:39 AM
Maybe posting any error logs or something to show us its not working for you as its hard to guess


I found this:
1. Uploaded to the site root file "recent_thanks.php"
2 Import XML file AdminCP > Plugin System > Manage Products > [Add/Import Product]
Established modes - http://i58.fastpic.ru/big/2014/0217/dd/dcbc75f6ddce21b1f26a16176307f9dd.png
But in the admin panel, I can not see him. And no buttons on the forum "Thanks"

Barcham
02-17-2014, 11:13 PM
Installed on 4.2.2 and everything tests out fine.

Thanks!

viliksar1
02-18-2014, 04:49 AM
Installed on 4.2.2 and everything tests out fine.

Thanks!

Tell us how you installed this mod on 4.2.2? Please! Give detailed instructions, I'm new, I do not understand everything in this regard.

Barcham
02-18-2014, 02:00 PM
I installed it exactly according to the instructions.

1.Upload the file "recent_thanks.php" to your forum directory.
2.Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]

I did not bother with step 3 as all I was looking for was to have members informed that they received new thanks and really don't need anything on the navbar.

viliksar1
02-18-2014, 03:07 PM
I installed it exactly according to the instructions.

1.Upload the file "recent_thanks.php" to your forum directory.
2.Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]

I did not bother with step 3 as all I was looking for was to have members informed that they received new thanks and really don't need anything on the navbar.

In forum after installation appeared the "Thank you"?

I'm trying to understand how it should look for a successful installation.

Barcham
02-18-2014, 05:04 PM
This is just to notify you if you have received new thanks to a post you made. You must already have the Thank You Hack installed for this to do anything. On it's own, this hack will do nothing at all.

If you have the Thank You Hack installed and you install this addition, every time you receive a new Thanks on one of your posts, you will see a notification in the same way as if you received a new PM, as indicated here...

https://vborg.vbsupport.ru/attachment.php?attachmentid=137071&d=1331836283

viliksar1
02-18-2014, 06:22 PM
You must already have the Thank You Hack installed for this to do anything.

Please tell me the link that you have installed, the main hack "Thank you" for 4.2.2

Barcham
02-18-2014, 06:26 PM
This is the one I installed. It worked like a charm first time with no problems at all.

https://vborg.vbsupport.ru/showpost.php?p=2264681&postcount=1941

viliksar1
02-18-2014, 07:13 PM
This is the one I installed. It worked like a charm first time with no problems at all.

https://vborg.vbsupport.ru/showpost.php?p=2264681&postcount=1941

Which of the two versions is better to put?

post_thanks_7_82.fixed.zip

post_groans_4.1.2-fixed.zip

ForceHSS
02-18-2014, 07:18 PM
<a href="https://vborg.vbsupport.ru/showpost.php?p=2249550&postcount=1847" target="_blank">https://vborg.vbsupport.ru/showp...postcount=1847</a>

viliksar1
02-18-2014, 07:29 PM
https://vborg.vbsupport.ru/showpost.php?p=2249550&postcount=1847

Icon is not displayed:
https://vborg.vbsupport.ru/external/2014/02/15.png

There are only a button labeled "Thank You"

ForceHSS
02-18-2014, 08:23 PM
Icon is not displayed:
https://vborg.vbsupport.ru/external/2014/02/15.png

There is only a button labeled "Thank You"
I have not updated this in sometime so no idea what you are talking about

faisaly.com
02-18-2014, 08:45 PM
I think hes replying about the ajax post thank you hack which this is just and addon for that mod, anyways...

Icon is not displayed:

I recolored the button and used on my dark styles and it displays just fine.

Barcham
02-18-2014, 10:19 PM
Icon is not displayed:
https://vborg.vbsupport.ru/external/2014/02/15.png

There are only a button labeled "Thank You"

The button should be just to the left of the Thank You button. If you are using modified Style for your forum, you may also have to copy the icon to the image directory for the style you are using. I am using the BP-Brown style on my board and have to copy any icons or other image files to that style's image directory as well as the default.

viliksar1
02-19-2014, 07:38 AM
The button should be just to the left of the Thank You button. If you are using modified Style for your forum, you may also have to copy the icon to the image directory for the style you are using. I am using the BP-Brown style on my board and have to copy any icons or other image files to that style's image directory as well as the default.

It works. Thank you for your advice!

viliksar1
02-19-2014, 07:39 AM
I have not updated this in sometime so no idea what you are talking about
How to translate the admin panel to Russian, for easy management?

ForceHSS
02-19-2014, 09:55 PM
How to translate the admin panel to Russian, for easy management?

Open xml in notepad++ edit all in there then reinstall overwriting the other one would be the fastest way

viliksar1
02-20-2014, 08:37 AM
I installed Recent Thanks
Where can I find these in the admin settings? I do not see them.

https://vborg.vbsupport.ru/attachment.php?attachmentid=137089&d=1331906303

Barcham
02-20-2014, 01:37 PM
I installed Recent Thanks
Where can I find these in the admin settings? I do not see them.

https://vborg.vbsupport.ru/attachment.php?attachmentid=137089&d=1331906303

What settings are you looking for? If it has to do with translation, you will not find that in the acp. You will have to open the xml file in a text editor and make all the language changes and then re-import the xml file and overwrite the existing product.

viliksar1
02-20-2014, 03:57 PM
What settings are you looking for? If it has to do with translation, you will not find that in the acp. You will have to open the xml file in a text editor and make all the language changes and then re-import the xml file and overwrite the existing product.

Thanks I found it!

irantk
02-26-2014, 06:44 AM
How do I correct the time Recent Thanks? Recent Thanks, now all recorded on Greenwich and do not consider the local time.

findingpeace
09-19-2014, 04:03 PM
If you have a big board, I highly recommend indexing the date column, otherwise the lookups for this become extremely slow, sorting by millions of dates.

liorzaguri
09-29-2014, 04:59 PM
Hello,
I am using Recent Thanks 2.6.2, and I want to split my inbox, notifications and likes to have different buttons for them.

I already made the buttons: http://prntscr.com/4ri9kn

I just need to know how to split the Likes to be in different box

ramx
11-05-2014, 08:49 PM
is it available for 3.8.8

ForceHSS
11-05-2014, 09:15 PM
is it available for 3.8.8
https://vborg.vbsupport.ru/showthread.php?t=279907
checking under first post you will see Similar Mod

liorzaguri
12-19-2014, 06:40 PM
Hello,
I want to ask how can I "splet" the thanks notifications from the vb nofifications,
I want to make new popup menu that called "Thanks"(Or any other name)
And the thanks notifications will be there.
I try to search in the xml file and the php file but no idea...

wildheart
01-22-2015, 05:16 AM
This is just to notify you if you have received new thanks to a post you made. You must already have the Thank You Hack installed for this to do anything. On it's own, this hack will do nothing at all.

If you have the Thank You Hack installed and you install this addition, every time you receive a new Thanks on one of your posts, you will see a notification in the same way as if you received a new PM, as indicated here...

https://vborg.vbsupport.ru/attachment.php?attachmentid=137071&d=1331836283

I wonder if someone can help me please? The notifications just stopped working, I have been using it for years already with no problems. I re-installed it and it did not fix the problem. I have this installed: post_thanks_7_84.zip Thanks.

Marcin1
01-22-2015, 04:21 PM
Hello,
I want to ask how can I "splet" the thanks notifications from the vb nofifications,
I want to make new popup menu that called "Thanks"(Or any other name)
And the thanks notifications will be there.
I try to search in the xml file and the php file but no idea...

It's not exactly what you're asking but I created a new tab with target URL http://yourdomain/recent_thanks.php

The addon works good with 4.2.2 PL4.

irantk
06-01-2015, 02:31 PM
How can display the number of new thank of the user in the header ?
please help

ia7
01-01-2016, 07:49 PM
Got this working in vB 4.2.2 PL4 with ForceHSS's 7.86 (https://vborg.vbsupport.ru/showthread.php?t=231666) but I have noticed a minor problem. The user profile option to enable/disable notifications will not stay checked even though the option is updating correctly in the database and displaying the alerts in the Notifications menu.

As I said a small thing but I have had a number of people asking why it will not "stay on".

Found the Fix: This post by Scandal (https://vborg.vbsupport.ru/showpost.php?p=2318688&postcount=43) sorts it.

soccerman2015
02-08-2016, 09:28 AM
I wonder if someone can help me please? The notifications just stopped working, I have been using it for years already with no problems. I re-installed it and it did not fix the problem. I have this installed: post_thanks_7_84.zip Thanks.

Hello.


Our forum likenotice stopped, how we can get fixed that?

we want like notice back.

kylek
09-06-2016, 02:52 AM
Is there or has anyone done something like this for the groan hack? Would be nice to get notified of groans via pm.

Cem01
12-25-2016, 01:21 PM
Finally I found what i looking for :D

Thanks for addon, it works great on vb 4.2.3 but gives an php error in User Control Panel > General Settings :(

Silvio
01-08-2017, 12:38 PM
humm ...


...vB 4.2.4b3 running on php5.6.29 and mysqlnd 5.0.11-dev - 20120503;

...updated Abe1-hack from 7.82 to 7.88
...fresh Installed Recent Thanks hack Ver. 2.6.2.


The product is correctly enabled in admincp but i am not able to "save" the flag on preferences panel page.
eg. I add the flag, save, but if i re-open the preferences panel page the flag is again in Off state.
And No I can't receive any notification. :(


Thank you so much for any help.


***solved*** Hack uninstalled and re-installed now it works.... mysteries of faith lol!

sub_ubi
01-22-2017, 03:42 PM
This plugin is broken in PHP7+ (vbulletin 4.2.5 and higher)

profile.php?do=editoptions

Returns with:

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
$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"));

uysal027
02-03-2017, 05:14 PM
PHP Warning: mysql_num_rows() expects parameter 1 to be resource, object given in ..../profile.php(2083) : eval()'d code on line 2

Flipfloptrader
04-11-2017, 10:37 AM
Working on 4.2.4

Flipfloptrader
05-25-2017, 10:59 AM
This plugin is broken in PHP7+ (vbulletin 4.2.5 and higher)

profile.php?do=editoptions

Returns with:

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
$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"));

I was just about to post this, thanks very much.

Working correctly on 4.2.5.

Delfi_r
07-03-2017, 07:28 PM
On PHP 5,6 MySQL 5,6 the plugin was broken too and the proposed modification has solved it

Working on 4.24 php 5.6

DannyV
11-08-2017, 07:16 PM
Got 4.2.5 here, PHP 5.6.
Did abovve mentioned edit ti change from mysql to mysqli, but I don't get any notifications for new thanks.

Any idea?

iliarien
04-02-2018, 07:10 PM
Same thing in here, worked like charm but now nothing !

tbellik
02-17-2019, 03:40 AM
Wrong mod I wrote sorry.

irantk
02-18-2019, 07:41 AM
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

watchsteve
05-06-2019, 06:40 PM
This plugin is broken in PHP7+ (vbulletin 4.2.5 and higher)

profile.php?do=editoptions

Returns with:

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
$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"));

Thank you! This worked for me,

oldfan
04-21-2023, 06:49 PM
works 4.2.6. php 7.2