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)

cashcash 04-10-2012 01:17 PM

Quote:

Originally Posted by Scandal (Post 2318673)
Go to admincp > Plugins & Products > Plugin Manager, open the plugin "Recent Thanks - UserCP Field Part2" and replace its contents with:
PHP Code:

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/2...78da7ca366.png

Scandal 04-10-2012 02:15 PM

Quote:

Originally Posted by cashcash (Post 2318045)
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:
PHP Code:

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

1 Attachment(s)
Quote:

Originally Posted by jimnyc (Post 2320924)
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
Code:

{vb:raw template_hook.navbar_after_pm}
add below
Code:

<li><a href="recent_thanks.php" rel="nofollow">Recent Thanks</a></li>
The result:
Attachment 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

1 Attachment(s)
try this one,...

added this fix

Quote:

Originally Posted by Scandal (Post 2326724)
Try this:
1. Open the recent_thanks.php
2. Find the line 101:
PHP Code:

$rt_date date("d-m-Y - H:i"$date_timestamp); 

3. Replace it with:
PHP Code:

$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

Quote:

Originally Posted by Emeralda (Post 2326512)
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

Quote:

Originally Posted by Hippy (Post 2326519)
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

Quote:

Originally Posted by Emeralda (Post 2325461)
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/7...fa78c1461e.png

Try this:
1. Open the recent_thanks.php
2. Find the line 101:
PHP Code:

$rt_date date("d-m-Y - H:i"$date_timestamp); 

3. Replace it with:
PHP Code:

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

Quote:

Originally Posted by Hippy (Post 2326519)
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

Quote:

Originally Posted by Emeralda (Post 2326752)
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:
Code:

            'link'  => $vbulletin->options[bburl] . '/recent_thanks.php',
Replace it with:

Code:

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


All times are GMT. The time now is 05:46 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.01413 seconds
  • Memory Usage 1,844KB
  • 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
  • (4)bbcode_code_printable
  • (6)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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