vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Recent Thanks for [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=280109)

Scandal 03-14-2012 11:00 PM

Recent Thanks for [AJAX] Post Thank You Hack
 
1 Attachment(s)
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!

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:

Quote:

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

Quote:

Originally Posted by djbaxter (Post 2309875)
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

Quote:

Originally Posted by Scandal (Post 2309973)
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.

Quote:

Originally Posted by Scandal (Post 2309973)
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

Quote:

Originally Posted by djbaxter (Post 2310021)
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: "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

Quote:

Originally Posted by djbaxter (Post 2310050)
Ah... thank you! :)

v2.6 available! (I change the admincp phrase + 1 bug fix, see below)

Quote:

Originally Posted by Scandal
Notice (bug): Also, if you have enable the "Allow poster to thank themself", the user will receive notification for him votes.

fixed!! ;)


All times are GMT. The time now is 09:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01135 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete