vb.org Archive

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

Scandal 03-10-2012 11:00 PM

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

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

Quote:

Originally Posted by sadiq6210 (Post 2308842)
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

Quote:

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

1 Attachment(s)
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

Quote:

Originally Posted by Nook_Neformat (Post 2309162)
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).
Quote:

Originally Posted by Concha (Post 2309285)
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

Quote:

Originally Posted by djbaxter (Post 2309116)
Any chance of updating this for 4.x?

Quote:

Originally Posted by sadiq6210 (Post 2309296)
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

Quote:

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

Quote:

Originally Posted by Concha (Post 2309419)
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. ;)

Abu2 03-14-2012 08:05 PM

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

Quote:

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

Quote:

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

Quote:

Originally Posted by Abu2 (Post 2309464)
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

Quote:

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

Quote:

Originally Posted by sadiq6210 (Post 2309583)
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. ;)

Quote:

Originally Posted by Concha (Post 2309468)
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

1 Attachment(s)
Quote:

Originally Posted by Scandal (Post 2309596)
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/attachmen...1&d=1331798140


That errors is relating to (eval) in two lines:

PHP Code:

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

Quote:

Originally Posted by sadiq6210 (Post 2309602)
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

1 Attachment(s)
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

Quote:

Originally Posted by Lacryma (Post 2309821)
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

Quote:

Originally Posted by Lacryma (Post 2309828)
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:

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).

Don't know if this issue also affects the 3.x version.

Scandal 03-16-2012 08:35 AM

Quote:

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

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 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

Mko 09-16-2012 03:51 PM

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:
Code:

$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).


All times are GMT. The time now is 06:35 AM.

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.01643 seconds
  • Memory Usage 1,837KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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