Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Recent Thanks for [AJAX] Post Thank You Hack Details »
Recent Thanks for [AJAX] Post Thank You Hack
Mod Version: 2.6.2, by Scandal (Coder/Designer) Scandal is offline
Developer Last Online: Jul 2018 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (30 votes - 4.83 average) Installs: 282
Released: 15 Mar 2012 Last Update: 21 Mar 2012 Downloads: 1897
Not Supported DB Changes Uses Plugins Auto-Template Additional Files  

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:
  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]
  3. (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:
  1. Upload the new file recent_thanks.php
  2. 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!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	screen_notifications.JPG
Views:	3513
Size:	11.9 KB
ID:	137071   Click image for larger version

Name:	screen_page.JPG
Views:	3499
Size:	117.7 KB
ID:	137072   Click image for larger version

Name:	screen_usercp.JPG
Views:	2912
Size:	9.9 KB
ID:	137073   Click image for larger version

Name:	screen_admincp.jpg
Views:	2135
Size:	38.4 KB
ID:	137089  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods Recent Thanks for [AJAX] Post Thank You Hack Scandal vBulletin 3.8 Add-ons 47 13 May 2018 05:01
Forum Home Enhancements BF-Recent Topics Ajax zbahadir vBulletin 4.x Add-ons 66 11 May 2013 00:08
How to create a Ajax Sidebar with Recent Posts Mauu vBulletin 3.6 Template Modifications 22 29 Aug 2008 17:25

  #121  
Old 17 Oct 2013, 00:15
stevieb stevieb is offline
 
Join Date: Apr 2005
Lol yea I know but can we make an option in user cp that is individual choice and not forum wide?
Reply With Quote
  #122  
Old 17 Oct 2013, 00:30
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
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.
Reply With Quote
  #123  
Old 17 Oct 2013, 00:40
stevieb stevieb is offline
 
Join Date: Apr 2005
Fair enough. Thanks mate
Reply With Quote
  #124  
Old 27 Nov 2013, 12:56
Zoul Zoul is offline
 
Join Date: Nov 2012
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:



it several times I got the xml file without success.
Do you have an idea please?
Reply With Quote
  #125  
Old 29 Nov 2013, 19:34
evelynpriscilla evelynpriscilla is offline
 
Join Date: Sep 2013
General setting error message

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


Originally Posted by Scandal View Post
Try another one replace to the plugin with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
Reply With Quote
  #126  
Old 06 Dec 2013, 15:43
jimnyc jimnyc is offline
 
Join Date: Aug 2003
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!!


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #127  
Old 06 Dec 2013, 15:53
jimnyc jimnyc is offline
 
Join Date: Aug 2003
^^ 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.
Reply With Quote
  #128  
Old 06 Dec 2013, 16:42
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
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
Reply With Quote
  #129  
Old 06 Dec 2013, 16:56
jimnyc jimnyc is offline
 
Join Date: Aug 2003
Originally Posted by Hippy View Post
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!!
Reply With Quote
  #130  
Old 06 Dec 2013, 16:59
jimnyc jimnyc is offline
 
Join Date: Aug 2003
I found it, doing the recounter now...
Reply With Quote
  #131  
Old 06 Dec 2013, 17:02
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
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.
Reply With Quote
  #132  
Old 06 Dec 2013, 17:24
jimnyc jimnyc is offline
 
Join Date: Aug 2003
Originally Posted by Hippy View Post
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!
Reply With Quote
  #133  
Old 06 Dec 2013, 17:44
jimnyc jimnyc is offline
 
Join Date: Aug 2003
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!
Reply With Quote
  #134  
Old 06 Dec 2013, 17:55
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
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
Reply With Quote
  #135  
Old 06 Dec 2013, 23:52
jimnyc jimnyc is offline
 
Join Date: Aug 2003
Originally Posted by Hippy View Post
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!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 00:29.

Layout Options | Width: Wide Color: