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)

mangmel 06-26-2014 09:36 PM

please include thanked removal by admin. next update

Pisadam 01-11-2015 10:31 PM

I getting an error, can you help me pls.

Quote:

UPDATE user
SET recent_thankcnt = 0
WHERE userid = 1;

MySQL Error : Unknown column 'recent_thankcnt' in 'field list'
Error Number : 1054
Request Date : Sunday, January 11th 2015 @ 11:21:17 PM
Error Date : Sunday, January 11th 2015 @ 11:21:17 PM
Script : http://www.xxxxx.com/recent_thanks.php
Referrer :
IP Address : 88.234.234.20
Username : xxxxx
Classname : vB_Database
MySQL Version : 5.5.40-cll

Scandal 01-12-2015 09:41 AM

Quote:

Originally Posted by Pisadam (Post 2531987)
I getting an error, can you help me pls.

Try to re-install it. Don't forget to import the *xml product! :)

VBFguy 05-17-2015 04:31 AM

Just installed this on a 3.8.4 board.

When I go to UserCP > Options, this warning appears at the top of the options page:

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

I know it's this hack causing it, as disabling this product eliminates it.

Any suggestions? TIA

Also noticed something else...Unlike what's mentioned above, The "Receive Notifications" userCP checkbox is unchecked by default. If I check it, save options....When I revisit the options page again, that box is not checked, like the setting wasn't saved. I don't know if it's really on or not?

Triky 12-16-2015 09:22 PM

Same issue here like above. Let us know, @Scandal!

Triky 12-16-2015 09:32 PM

Ok, solution that seems to work: plugin -> Recent Thanks - UserCP Field Part2:

change:

PHP Code:

    $isthere mysql_num_rows($db->query_read("SELECT recent_thankact FROM " TABLE_PREFIX "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1")); 

to:

PHP Code:

    $isthere mysqli_num_rows($db->query_read("SELECT recent_thankact FROM " TABLE_PREFIX "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1")); 

Problem: mysql_num_rows - Solution: mysqli_num_rows

OnlyTouch 12-19-2015 01:55 PM

Everything is great, thanks, installed!

DCD.RB 05-13-2018 03:01 AM

On the recent thanks page, the time is the server clock, is it possible to change it so it follows in everyone's time zone?


All times are GMT. The time now is 06:11 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.01197 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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