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)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=165673)

viper357 01-15-2013 01:50 PM

Quote:

Originally Posted by viper357 (Post 2397009)
Does anybody know how to allow moderators to delete thanks from a post? The link is visible to them and when they click it to delete the thanks it is removed, but when the page is refreshed the thanks comes back? Currently it only works for Admins. Thanks.

I found this code in the /includes/functions_post_thanks.php file and changed the 6 to a 5, it half worked because admin can no longer delete the thanks, but it's still the same for supermods, when the page is refreshed the thanks comes back, I'm lost as to what else I can do to allow mods to delete the thanks. Can anyone help?

Code:

if ($vbulletin->userinfo['usergroupid'] == '6')

Simon Lloyd 01-15-2013 03:42 PM

Change that for this
PHP Code:

if (is_member_of($vbulletin->userinfo567)) 


dpnow 02-04-2013 05:13 PM

Quote:

Originally Posted by Chris-777 (Post 1444398)
Got it all working, huzzah!

For those of you having the button not show up, revert your postbit or postbit_legacy.

That worked for me!

Ian

Chase 02-04-2013 08:45 PM

Is there a mod or a template edit that will notify you of a new thank you received (where the private message link is in the navbar) and when you click that "Thanks Received" link it will list the thread/post thanked and how many thanks you received?

That would be a really cool addition.

Chase 02-04-2013 08:55 PM

Nevermind, I found just what I was looking for.

https://vborg.vbsupport.ru/showthread.php?t=279907

Gizmo99 02-11-2013 02:41 PM

Fixed my problem with who had thanked not showing up

Had to Change Postid from INT to BIGINT in the post_thanks table :)

So uninstall then re install change INT to BIGINT off you go

Giz

RSC17 03-05-2013 04:35 PM

Works well, thank you. INSTALLED!

Gabe505 03-13-2013 02:37 AM

Im getting the following error every time the thanks button is clicked.

Deprecated: Assigning the return value of new by reference is deprecated in /Server info hidden/vb/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /Server info hidden/vb/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /Server info hidden/vb/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /Server info hidden/vb/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /Server info hidden/vb/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /Server info hidden/vb/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /Server info hidden/vb/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /Server info hidden/vb/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /Server info hidden/vb/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /Server info hidden/vb/includes/class_core.php on line 2552

what could be causing this problem?

Simon Lloyd 03-13-2013 04:05 AM

You need to turn off the errors in your php, you're using a version of php that has deprocated coding conventions, they're just warnings, turn the errors off and you'll be fine.

mykkal 03-13-2013 11:03 AM

Your using old version of the mod with a newer version of php.

Gabe505 03-13-2013 05:24 PM

Gotcha, thanks for the help.

The Mrs 03-21-2013 08:35 AM

Would someone be able to tell me if I can create a new post thanks table and how?

I installed this mod (7.7 on 3.8.0) briefly, but rec'd user permission errors, so uninstalled/reinstalled xml w/overwrite in the product manager. But that caused fatal errors showing that no post thanks table exists.

Should I have uninstalled/reinstalled from the server level also? Should I try to uninstall/reinstall xml in product manager again? Which file creates the table, and will it create another one with another install?

No backup available, and have since upgraded the forum to 3.8.5 after breaking this mod. :D

Thanks so much for any help!!!

Simon Lloyd 03-21-2013 07:43 PM

Firstly uninstall everything including any files you uploaded, drop any post_thanks tables fromyour database.

Re-upload any files via ftp in ascii mode, re-import the xml, if you have a large board this is going to take some time and may make your board unresponsive, if you find that it crashes during installation you'll have to get your hosts to "up" the wait_timeout (this is the wait time that your server allows for scripts to complete), then do all the above again.

mixrya 04-08-2013 08:29 AM

Hey guys. Could anybody show me how to get count of thanks on the specific post with php script?

Gladius2007 04-17-2013 09:09 PM

We're having problems with the Thanks button now showing up for some users for some reason... and they're not above the daily thanks limit. Anyone experiencing the same?

Protium 04-17-2013 10:35 PM

Has anyone tested on VB 4.2.1?

viper357 04-18-2013 05:18 AM

Quote:

Originally Posted by Simon Lloyd (Post 2409645)
You need to turn off the errors in your php, you're using a version of php that has deprocated coding conventions, they're just warnings, turn the errors off and you'll be fine.

How do you do that? :)

Simon Lloyd 04-18-2013 06:54 PM

You'd do it in your php.ini

egexperiment626 05-13-2013 11:21 PM

I LOVE this mod, however, I wish it was LIKE instead of THANKS. I see there is a version for GROAN, no chance there is a LIKE version I'm not seeing is there?

Kwikms 07-07-2013 12:21 PM

Howto change this into "LIKES" - https://vborg.vbsupport.ru/showthread.php?t=266358

SKREETS.NET 07-31-2013 07:07 PM

how do i move where the thanks count is located in the postbit?

Simon Lloyd 08-01-2013 05:21 AM

you'd have to change the hook location in the mod's plugin, it will be set to show after $posts.

sweptwingnut 08-07-2013 03:34 AM

Quote:

Originally Posted by mdawg (Post 1804124)
My mistake - and for all those with issues - I had not uploaded the post_thanks.php file into the forums folder.

This instruction:
post_thanks.php -> \
must not have made sense to me at the time. I didn't understand what \ meant now I do!

Works! Thanks. I'd thank you for this post - if I could!

I learned something new today. Thank YOU!!

majidmozaffari 09-09-2013 10:52 AM

error post thanks :
PHP Code:

DeprecatedAssigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 55

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 107

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 111

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 119

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 130

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 134

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 142

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 211

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 389

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/class_core.php on line 2552 

help me...

shakirulqadree 09-10-2013 05:53 PM

Quote:

Originally Posted by majidmozaffari (Post 2444373)
error post thanks :
PHP Code:

DeprecatedAssigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 55

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 107

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 111

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 119

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 130

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 134

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 142

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 211

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/init.php on line 389

Deprecated
Assigning the return value of new by reference is deprecated in /home/***/public_html/includes/class_core.php on line 2552 

help me...

I have also same problem pleas help us
http://www.urduhiurdu.com/forum/showthread.php?p=12500

arashebaabaa 09-19-2013 03:44 AM

Is there any way to recount the thanks after merging two users?

shakirulqadree 09-29-2013 12:24 AM

PHP Code:

DeprecatedAssigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 53

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 105

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 109

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 117

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 128

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 132

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 140

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 209

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 387

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/class_core.php on line 2553 



pliz hellp for mi

ozzy47 09-29-2013 12:32 AM

Quote:

Originally Posted by shakirulqadree (Post 2448697)
PHP Code:

DeprecatedAssigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 53

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 105

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 109

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 117

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 128

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 132

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 140

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 209

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/init.php on line 387

Deprecated
Assigning the return value of new by reference is deprecated in /home/urduhi/public_html/forum/includes/class_core.php on line 2553 

pliz hellp for mi

This has been addressed before, this may help you.

Quote:

Originally Posted by R*NightOwl (Post 1988580)
I was able to fix the depreciated errors, open "post_thanks.php",
replace

PHP Code:

error_reporting(E_ALL & ~E_NOTICE); 

with

PHP Code:

error_reporting(E_ALL E_DEPRECATED); 

doesn't really replace or fix the depreciated code, but, at least it works.


testerv 10-08-2013 05:19 PM

Quote:

Originally Posted by Simon Lloyd (Post 2409645)
You need to turn off the errors in your php, you're using a version of php that has deprocated coding conventions, they're just warnings, turn the errors off and you'll be fine.

Is that something I would need my host to do for me or how do I do it? Thanks.

testerv 10-08-2013 05:56 PM

I just installed this hack and this appears at the top of my forum home page:

Code:

hanks_post_count'] && ($remove_users_thanks_count == true || $vbulletin->options['post_thanks_delete_remove_thanks_count'])) { $set_user_gave .= ', posts = posts - 1'; } $vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "user SET $set_user_gave WHERE userid = '$userid' "); $vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "user SET $set_user_got WHERE userid = '$postinfo[userid]' "); $vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "post SET $set_post WHERE postid = '$postinfo[postid]' "); ($hook = vBulletinHook::fetch_hook('post_thanks_function_delete_thanks_end')) ? eval($hook) : false; return true; } function post_thanks_in_array($number = 0, $array = 0) { $array_split = explode("|", $array); foreach ($array_split AS $array_number) { if ($number == $array_number) { return true; } } return false; } function post_thanks_check_security($securitytoken = '') { global $vbulletin; if ($securitytoken !== $vbulletin->userinfo['securitytoken']) { } } ?>
Any idea what I did wrong?

Simon Lloyd 10-08-2013 06:00 PM

How did you install it? as for the php errors it depends whether you have a dedicated box or not.

testerv 10-08-2013 06:18 PM

I tried to follow these instructions when installing it:

Quote:

Post Thank You Hack version 7.7

FOR UPGRADE AND FRESH INSTALLATIONS!

1) upload the 'upload via ftp' folder
--------------------------------------------------------------------
post_thanks.php -> \
post_thanks_admin.php -> \admincp\
post_thanks.js -> \clientscript\
functions_post_thanks.php -> \includes\
cpnav_post_thanks.xml -> \includes\xml\
hooks_post_thanks.xml -> \includes\xml\
post_thanks.gif -> \images\buttons\ (and into EVERY "buttons" folder in every style you have)
--------------------------------------------------------------------

2) Import product-post_thanks.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

I think I uploaded everything in the correct folder.

I don't know what a dedicated box is. My host put me on a shared server, if that is what you are talking about.

Simon Lloyd 10-08-2013 07:49 PM

Ok for the php errors you'd have to get your hosts to disable php errors. The reason i asked how you added the mod is because it's very odd to have the entire plugin shown in your forum header, it looks like the whole php output.

Can we have a url to check..etc

testerv 10-08-2013 08:29 PM

Is it odd that the code I posted in post #2314 didn't include the letter "T" for the word "Thanks"? Could that be part of the problem?

Does it look like I installed something in the wrong folder?

The code that I posted in 2314 only displays when I enable the hack. I have it disabled now.

Simon Lloyd 10-08-2013 11:15 PM

i'd need to be able to see where the hack is installed ....etc to be able to answer properly or it could be that another mod is interfering with it, however it rarely gets it to dump the entire plugin to the page.

PM me admincp login details with permissions to administer plugins if you want me to take a look.

testerv 10-09-2013 02:19 AM

MY MISTAKE (unless something has changed).

The code I posted in post #2314 only shows up on the show thread page. Does that happen to give you more clues?

Simon Lloyd 10-09-2013 02:34 AM

No it still points to either a corrupt file or another mod conflicting!

testerv 10-09-2013 01:37 PM

I deleted the product then I deleted the files via ftp. Then I reuploaded the files then I imported the product again.


Now I don't have the code in the header INSTEAD I am now getting about 40 of these errors via email every minute:

Quote:

Database error in vBulletin 3.8.7:

Invalid SQL:
SELECT * FROM post_thanks WHERE postid IN (0,344955) ORDER BY username ASC;

MySQL Error : Table '.********._forum.post_thanks' doesn't exist
Error Number : 1146
Request Date : Wednesday, October 9th 2013 @ 09:41:32 AM
Error Date : Wednesday, October 9th 2013 @ 09:41:32 AM
Script : http://www.********.com/forum/showthread.php?t=568556
Referrer :
IP Address : *************
Username : Unregistered
Classname : vB_Database
MySQL Version :
I have since uninstalled the .xml product but am still getting those emails...maybe there is a lag between the error occurring and me receiving the email. Hopefully the emails will stop soon.

Any idea why I am getting an error about the table not existing?

thanks.

testerv 10-09-2013 02:11 PM

I'm still getting the 'table not existing' emails so I will delete the files and see if that helps.

Simon Lloyd 10-09-2013 03:19 PM

Hmmmm, I did offer you help!!


All times are GMT. The time now is 03:24 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.03368 seconds
  • Memory Usage 1,909KB
  • 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_code_printable
  • (7)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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