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

ezak 12-24-2016 04:13 PM

1 Attachment(s)
updated to latest, but I face some problem

sometimes when click thanks button , its refresh the page (No ajax)
and sometimes
its give me you don't have permission

from chrome console I get this error message
Code:

post_thanks.js:29 Uncaught ReferenceError: vB_Default_Timeout is not defined
    at post_thanks.js:29
(anonymous) @ post_thanks.js:29
vbulletin-ajax-reputation.js?v=423:11 Uncaught ReferenceError: vB_XHTML_Ready is not defined
    at vbulletin-ajax-reputation.js?v=423:11
(anonymous) @ vbulletin-ajax-reputation.js?v=423:11
vbulletin_multi_quote.js?v=423:11 Uncaught ReferenceError: vB_XHTML_Ready is not defined
    at vbulletin_multi_quote.js?v=423:11
(anonymous) @ vbulletin_multi_quote.js?v=423:11
vbulletin-editor.js?v=423:11 Uncaught ReferenceError: vB_XHTML_Ready is not defined
    at vbulletin-editor.js?v=423:11
(anonymous) @ vbulletin-editor.js?v=423:11
vbulletin_quick_edit.js?v=423:11 Uncaught ReferenceError: vBulletin is not defined
    at new vB_AJAX_QuickEditor (vbulletin_quick_edit.js?v=423:11)
    at vbulletin_quick_edit.js?v=423:11
vB_AJAX_QuickEditor @ vbulletin_quick_edit.js?v=423:11
(anonymous) @ vbulletin_quick_edit.js?v=423:11
vbulletin_ajax_taglist.js?v=423:11 Uncaught ReferenceError: vB_XHTML_Ready is not defined
    at vbulletin_ajax_taglist.js?v=423:11
(anonymous) @ vbulletin_ajax_taglist.js?v=423:11
vbulletin_ajax_suggest.js?v=423:11Uncaught ReferenceError: userAgent is not defined
    at vbulletin_ajax_suggest.js?v=423:11

https://vborg.vbsupport.ru/attachmen...1&d=1482603175


how to fix this problem ?

Simon Lloyd 01-03-2017 06:56 PM

Have you recently upgraded your forum software?, that looks like you've had a corrupt upload.

skydiver_001 01-05-2017 08:18 AM

Quote:

Originally Posted by Milance (Post 2575156)
I have a problem when I click the icon thanks not unlocked content until he gets a refresh the page (F5).

vbulletin 4.2.3

post_thanks_7_86 For 4.2.0 - 4.2.3 vb version_with_thanks_postbit_fix



Same issue here.
How to fix it?

Reaper1345 01-21-2017 11:57 AM

Quote:

Originally Posted by Seven Skins (Post 2577539)
This hack belongs to Abe1, all credit goes to him.


1 - Added search function fix provided by "channelfuse" in this post
2 - Redone postbit userinfo layout.
3 - Added "post_thanks_postbit_colors" class so you can make display of thanks in postbit stand out. This class can be edited by editing "post_thanks_javascript" template of every style.
4 - Added collapse and scroll feature to postbit box.
5 - Added hide postbit box from guests.
6 - Hide thank you button from guest posts.

Install instruction are in the install package.


PS. Please note like the original hack this is NOT supported.




.

why do I have my page reload the counters of the first updates the counter in post_thanks_postbit_info
is there a solution when I click on the thanks also the same as the counter is updated to

addamroy 01-29-2017 12:04 PM

Does this mod work with vb 4.2.4 ??

I need to update my forum to 4.2.4 to update the latest version of the mobile application, but I want to verify that this mod won't break before I do so.

Thanks!

LLent 02-09-2017 11:49 PM

I have a slight issue i am running 4.2.3 forum and i am attempting to delete a lot of threads on my forum and i get database error

Code:

Database error in vBulletin 4.2.3:

Invalid SQL:

            UPDATE speedway_user
            SET post_thanks_thanked_times = post_thanks_thanked_times -  2, post_thanks_thanked_posts = post_thanks_thanked_posts - 1
            WHERE userid = '140';

what can i do to stop this error from occuring

Hellendor 02-12-2017 10:21 PM

Thank you very much for your good work.
In my vB4.2.3 it works perfectly.

LLent 02-14-2017 10:34 AM

any idea on this db error and how to fix it ????

BlooD 02-19-2017 08:50 AM

Hello,

Would you be interested in knowing how to remove the thank you from a specific member or user group

Thank you very much and good day !

Gn_Snake 03-01-2017 09:01 PM

And 'possible to integrate the function of displaying the content by pressing the thanks button?

blue7 03-04-2017 02:14 PM

Any fix for php 7.1 ?

Code:

[] operator not supported for strings on line 182 in forum/includes/functions_post_thanks.php
#0 forum/includes/functions_post_thanks.php(137): fetch_thanks('35701955', '', false)
#1 forum/post_thanks.php(64): thanked_already(Array)
#2 {main}


Gn_Snake 03-07-2017 07:00 PM

Quote:

Originally Posted by Gn_Snake (Post 2583100)
And 'possible to integrate the function of displaying the content by pressing the thanks button?

Any idea? ;)

Flipfloptrader 03-27-2017 07:30 AM

Quote:

Originally Posted by addamroy (Post 2581485)
Does this mod work with vb 4.2.4 ??

I need to update my forum to 4.2.4 to update the latest version of the mobile application, but I want to verify that this mod won't break before I do so.

Thanks!

I can't get it to work on 4.2.4. Says incompatible.

Thr33 03-28-2017 12:52 PM

How can add "thanked: XX" in the forumdisplay below replies & views?

Mellow 04-06-2017 04:31 PM

has anyone bypassed the compatibility check to see if it works on 4.2.4? Yeah, I'm afraid...

Flipfloptrader 04-07-2017 07:04 AM

Quote:

Originally Posted by Mellow (Post 2584902)
has anyone bypassed the compatibility check to see if it works on 4.2.4? Yeah, I'm afraid...

How do you do that?

Flipfloptrader 04-09-2017 09:59 AM

1 Attachment(s)
Used 7.84+ and worked on my 4.2.4

lgnd 04-17-2017 11:04 AM

Updated my forum to 4.2.4 and I had 7.86 installed and the 7.88 won't install "not compatible with 4.2.4" any ideas? Thanks!
removed the 7.86 tried to install 7.88 without any success.

Flipfloptrader 04-17-2017 11:48 AM

Quote:

Originally Posted by lgnd (Post 2585493)
Updated my forum to 4.2.4 and I had 7.86 installed and the 7.88 won't install "not compatible with 4.2.4" any ideas? Thanks!
removed the 7.86 tried to install 7.88 without any success.

See my post.

https://vborg.vbsupport.ru/showpost....postcount=3660

lgnd 04-17-2017 12:21 PM

Quote:

Originally Posted by AutoFx (Post 2585498)

Thanks it's working! :up:

Mellow 04-20-2017 05:04 PM

Quote:

Originally Posted by Flipfloptrader (Post 2585498)

Working great now... I do wish there was a top stats type page like the thumbs up hack but this is good for now, very good actually. Thanks!

StormBreaker 04-26-2017 09:52 AM

The button show only in the first post, not other posts in the thread.

Flipfloptrader 05-11-2017 03:45 AM

1 Attachment(s)
Any coders know what needs to be changed to make this work with PHP 7? I'm getting this error:

Line 182:

Code:

                $postids[] = $postid;
Checking my error log shows this also:

operator not supported for strings on line 182 in /home/flipflop/public_html/includes/functions_post_thanks.php
in /home/flipflop/public_html/vb/vb.php on line 286

Line 286:

Code:

        trigger_error($exception->getMessage() . ' on line ' . $exception->getLine() . ' in ' . $exception->getFile() . "\n", $code);

MarkFL 05-11-2017 03:54 AM

Normally, I refrain from promoting a competing product in a product's support thread, but this product was released 9 years ago, and the developer hasn't been online for almost 7 years.

I highly recommend using DBTech's thanks product instead...this product is simply not written for vB 4.2.x, much less for PHP 7.x. DBTech's product is currently actively supported, particularly for the latest version of vB 4.2.x and PHP. ;)

Flipfloptrader 05-11-2017 04:17 AM

Appreciate the heads up, Mark, just not a fan of that product unfortunately. I'll keep scratching round trying to see if I can solve it with some good old fashioned investigating.

TiKu 05-11-2017 05:00 AM

Quote:

Originally Posted by Flipfloptrader (Post 2586370)
Any coders know what needs to be changed to make this work with PHP 7? I'm getting this error:

Line 182:

Code:

                $postids[] = $postid;

Try this:
Code:

$postids = array($postid);

Flipfloptrader 05-11-2017 05:09 AM

Quote:

Originally Posted by TiKu (Post 2586374)
Try this:
Code:

$postids = array($postid);

Doesn't work, seems to break the threads and can't open a thread.

Flipfloptrader 05-11-2017 10:17 AM

1 Attachment(s)
I have no idea what I did different but I was having another attempt at this and that code worked and now I'm running PHP 7.1.

Many thanks.

I have attached the functions_post_thanks for anyone who may need it to get this mod working with 4.2.5 and PHP 7.

TiKu 05-11-2017 04:19 PM

Sorry, I must admit that I did not test it. I just had a look at the code and thought it should work.

blue7 05-13-2017 02:14 PM

Quote:

Originally Posted by Flipfloptrader (Post 2586386)
I have no idea what I did different but I was having another attempt at this and that code worked and now I'm running PHP 7.1.

Many thanks.


I have attached the functions_post_thanks for anyone who may need it to get this mod working with 4.2.5 and PHP 7.

Thank you very much, that was what i was looking for :up:

fightsol 06-04-2017 03:06 PM

Quote:

Originally Posted by Flipfloptrader (Post 2586386)
I have no idea what I did different but I was having another attempt at this and that code worked and now I'm running PHP 7.1.

Many thanks.


I have attached the functions_post_thanks for anyone who may need it to get this mod working with 4.2.5 and PHP 7.

It fixes the problem, thank you!

ScaffForum 06-07-2017 12:23 PM

Hi,

We have just updated our forum finally to version 4! However my colleague who actually created the forum and sorted out the plugins and add ons etc is no longer here. I understand and know all the basics and can usually read instructions but I am having a bit of trouble trying to get this add on back I was wondering if you guys would be able to help me?

I downloaded the post_thanks_ version_7.84+with_and-without-integrated_postbit_box_collapse.zip moved it over to the server it needs to be on and from what I took from the instructions I then just needed to add this as a plugin on vbulletin but I wasn't exactly sure how to upload the XML file as that wasn't in the folder that I was told to download.

This may seem so easy to you guys but any help will be very much appreciated.

Thanks!

Flipfloptrader 06-08-2017 03:51 AM

Quote:

Originally Posted by ScaffForum (Post 2587360)
Hi,

We have just updated our forum finally to version 4! However my colleague who actually created the forum and sorted out the plugins and add ons etc is no longer here. I understand and know all the basics and can usually read instructions but I am having a bit of trouble trying to get this add on back I was wondering if you guys would be able to help me?

I downloaded the post_thanks_ version_7.84+with_and-without-integrated_postbit_box_collapse.zip moved it over to the server it needs to be on and from what I took from the instructions I then just needed to add this as a plugin on vbulletin but I wasn't exactly sure how to upload the XML file as that wasn't in the folder that I was told to download.

This may seem so easy to you guys but any help will be very much appreciated.

Thanks!

AdminCP>Plugins&Products>Add new plugin.

Upload the XML from there.

ScaffForum 06-08-2017 05:43 AM

If I click on the add new plugin there is no where to add the XML however the XML can be added in add a product.

On the add new plugin page it asks me for some PHP code which I am not sure where to find.

Flipfloptrader 06-09-2017 03:45 AM

Quote:

Originally Posted by ScaffForum (Post 2587367)
If I click on the add new plugin there is no where to add the XML however the XML can be added in add a product.

On the add new plugin page it asks me for some PHP code which I am not sure where to find.

Try selecting manage products and down the bottom select 'add/import product' this takes you to the import page where you can select the XML file.

ScaffForum 06-09-2017 05:52 AM

Hi,

Yes I've done all that and now what seems to happen is the 'thanks' shows up under the posts but there isn't an image next to the text and once the button has been clicked it disappears and doesn't register the thanks. This makes me think somethings not linking up properly?

JARNAR 06-10-2017 07:04 AM

I can not import the product, what should I do?

(Error XML: Invalid document end line 577)

JARNAR 06-10-2017 08:53 AM

Which is the product "Post Thank" for version 4.2.4?

Flipfloptrader 06-12-2017 11:18 AM

Quote:

Originally Posted by JARNAR (Post 2587403)
Which is the product "Post Thank" for version 4.2.4?

Take a look here:

https://vborg.vbsupport.ru/showpost....postcount=3662

EliasAlucard 06-19-2017 04:22 PM

I keep geting this when trying to install 7.88:

Quote:

The following dependencies were not met:
This product is not compatible with version 4.2.5 of vBulletin. (Compatible starting with 4.1.12 / Incompatible with 4.2.4 and greater)
I tried changing it to:

<dependency dependencytype="vbulletin" minversion="4.2.0" maxversion="4.2.5" />

But it didn't work. Any solutions?


All times are GMT. The time now is 09:37 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.05058 seconds
  • Memory Usage 1,840KB
  • 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
  • (8)bbcode_code_printable
  • (16)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