PDA

View Full Version : Show Thread Enhancements - [AJAX] Post Thank You Hack


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16]

gnrx
06-25-2019, 09:16 AM
Is it possible to post_thanks ?

I have this table but I just think thats, When I import this table to my new DB,will it keep my new like record or, only old likes stay there ?

I mean I have 500 like last one month, 5000 like last 3 years, when I import it is it going to save all of them

Yes, is this table "post_thanks".

When you import, I think deleted new thanks, only have the thanks you have in the table it does not increase, but it rewrites.

You do not lose anything doing the test if you previously make a backup of said table.

tbellik
06-25-2019, 05:47 PM
Yes, is this table "post_thanks".

When you import, I think deleted new thanks, only have the thanks you have in the table it does not increase, but it rewrites.

You do not lose anything doing the test if you previously make a backup of said table.

Now I have old thanks table and new tables, is it possible to combine them ?

like insert into ....... code should I use ?

gnrx
06-25-2019, 05:55 PM
Now I have old thanks table and new tables, is it possible to combine them ?

like insert into ....... code should I use ?

In this case, I don't know how combine / merge 2 tables for have all thanks.

I can made some tests, but I need the tables...but I'm not sure If I can set this.

exploringnh
07-17-2019, 12:03 AM
There are 7 files. Do I need to download all of them to make it work? If not, which file do I need for VB4.2.2? Thank you.

matheus21
08-30-2019, 10:59 PM
how i translate to my language ?

lange
08-31-2019, 02:27 PM
how i translate to my language ?

I'm using the version 3.x of this mod but the answer is probably the same :

Languages & Phrases > Search in Phrases ...

matheus21
09-01-2019, 11:07 PM
I'm using the version 3.x of this mod but the answer is probably the same :

Languages & Phrases > Search in Phrases ...

I translate but has not changed in profile
Thanks giving
Thanks Received

lange
09-02-2019, 03:03 AM
Sorry, I don't have these phrases on vB 3.8.11.

I have this:
https://vborg.vbsupport.ru/external/2019/09/1.jpg (https://postimg.cc/TLcrJbGj)

https://vborg.vbsupport.ru/external/2019/09/2.jpg (https://postimg.cc/dknyyKm4)

https://vborg.vbsupport.ru/external/2019/09/4.jpg (https://postimg.cc/gLrv8Fby)

matheus21
09-02-2019, 10:52 AM
Sorry, I don't have these phrases on vB 3.8.11.

I have this:
https://vborg.vbsupport.ru/external/2019/09/1.jpg (https://postimg.cc/TLcrJbGj)

https://vborg.vbsupport.ru/external/2019/09/2.jpg (https://postimg.cc/dknyyKm4)

https://vborg.vbsupport.ru/external/2019/09/4.jpg (https://postimg.cc/gLrv8Fby)

see this translated but in the profile there is no change

https://vborg.vbsupport.ru/external/2019/09/2.png

lange
09-02-2019, 11:14 AM
Try to find the variables in the templates, create new phrases and translate these phrases.

I don't use vB 4.x, I prefer to use version vB 3.x, easier to customize (with tables) for my needs.

@++

shka
09-02-2019, 11:51 AM
"post_thanks_given" and "post_thanks_received" are only the tooltips for the arrows.

I think you mean phrase "post_thanks_thanks".

matheus21
09-02-2019, 04:48 PM
"post_thanks_given" and "post_thanks_received" are only the tooltips for the arrows.

I think you mean phrase "post_thanks_thanks".


this but where do i translate?:

lange
09-02-2019, 07:57 PM
Languages & Phrases > Search in Phrases > post_thanks_thanks > $vbphrase[post_thanks_thanks]

Translation in your language

@++

gnrx
09-02-2019, 08:21 PM
Languages & Phrases > Search in Phrases > post_thanks_thanks > $vbphrase[post_thanks_thanks]

Translation in your language

@++

I don't use this mod since few months ago, but when I was used, I translate the phrases just on you indicate.

matheus21
09-03-2019, 09:00 AM
I don't use this mod since few months ago, but when I was used, I translate the phrases just on you indicate.


BUT IT HAS TWO PHRASES THAT IS

thanks given e thanks received

gnrx
09-03-2019, 09:10 AM
BUT IT HAS TWO PHRASES THAT IS

thanks given e thanks received

You can create the phrases and insert in template.

shka
09-03-2019, 09:25 AM
BUT IT HAS TWO PHRASES THAT IS

thanks given e thanks received

No. The mod has more than two phrases. These two "thanks given" and "thanks received" have nothing to do with the "Thanks" you've showed in your screen shot. Like I wrote these phrases are used only by tooltip f?r blue and green arrow.

I don't know why you are not searching for the phrases. Don't use your translation for search, search for english original phrase. If you don't have an existing translation in your language you can't find the phrase

In search form uses as search text "post_thanks" and below the option "in phrase name and phrase text". Then you'll get a list of phrases for this mod and see a phrase called "post_thanks_thanks" (with or without a translation). This phrase (and only this phrase) is used for both marked Thanks.

And there put your translation in.

----------------------------------------------
Addition:
If you are interested in different text phrases in shown position - (not a portugese Thanks twice) - then you can't do it only with phrase translation cause on both positions the same phase is used. Then you have to change the template for this.

1. Search for template (sorry, I have only german version), then double click on marked template.
2. Change marked phrases (first to post_thanks_given, last three to post_thanks_received) and save.

matheus21
09-03-2019, 06:40 PM
No. The mod has more than two phrases. These two "thanks given" and "thanks received" have nothing to do with the "Thanks" you've showed in your screen shot. Like I wrote these phrases are used only by tooltip f?r blue and green arrow.

I don't know why you are not searching for the phrases. Don't use your translation for search, search for english original phrase. If you don't have an existing translation in your language you can't find the phrase

In search form uses as search text "post_thanks" and below the option "in phrase name and phrase text". Then you'll get a list of phrases for this mod and see a phrase called "post_thanks_thanks" (with or without a translation). This phrase (and only this phrase) is used for both marked Thanks.

And there put your translation in.

----------------------------------------------
Addition:
If you are interested in different text phrases in shown position - (not a portugese Thanks twice) - then you can't do it only with phrase translation cause on both positions the same phase is used. Then you have to change the template for this.

1. Search for template (sorry, I have only german version), then double click on marked template.
2. Change marked phrases (first to post_thanks_given, last three to post_thanks_received) and save.




I tried to edit but the name does not appear?

the names will disappear

shka
09-03-2019, 06:54 PM
You don't have to replace the phrase name (this is a placeholder for the language specific phrase text) with your translation. You have to replace it with another phrase name.

I wrote - replace first "post_thanks_thanks" with "post_thanks_given", not with cuba libre or any other.

matheus21
09-03-2019, 07:17 PM
You don't have to replace the phrase name (this is a placeholder for the language specific phrase text) with your translation. You have to replace it with another phrase name.

I wrote - replace first "post_thanks_thanks" with "post_thanks_given", not with cuba libre or any other.


thank you very much now it's beautiful

BasilFawlty
09-11-2019, 10:11 PM
I know this hack isn't supported any longer, but I'm hoping someone might know a fix for a problem that cropped up when I updated to a newer PHP (v 7.1). I'm told on the main vBulletin forum that PHP 7.1 is the latest version of PHPP that vB 4.2.5 will work with. So, I recently moved from PHP5.7 to 7.1. So far the basic forum seems to function fine, but I did run into an issue with this hack (which I really like). When someone clicks the "Thanks" icon in a post, it now throws the following error:

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

I backed off to PHP 7.0 and the error goes away. I tried looking at the differences between 7.0 and 7.1 in the PHP manual, but didn't see anything that jumped out as something that might cause this.

The code at or around like 182 in the script is:


180 if (empty($postids))
181 {
182 $postids[] = $postid;
183 }

Any ideas how I might modify this script to work with PHP 7.1? Thanks in advance.

Dave
09-11-2019, 10:16 PM
Just insert
$postids = array();
before line 182.

BasilFawlty
09-13-2019, 01:23 PM
Thank you! I added that just before the "if statement" on line 180 and that solved the problem! Thanks you thank you thank you!

BasilFawlty
10-05-2019, 12:28 AM
Just insert
$postids = array();
before line 182.

Thanks! That did fix the error problem, but another weird issue persists. When I "Thank" someone in a post, at first I see the names of myself and any others who have added thanks to that post. But if I leave at the forum in question, then come back and look at that same post, the names are no longer listed.

Any ideas or help would be appreciated.

See this for example of issue: https://youtu.be/krg5TExY79Q

shka
10-05-2019, 06:34 PM
Thank you! I added that just before the "if statement" on line 180 and that solved the problem! Thanks you thank you thank you!

Before if statement on line 180 is wrong position. Dave wrote "before line 182".

So correct is

180 if (empty($postids))
181 {
181a $postids = array();
182 $postids[] = $postid;
183 }

Alternative for line new + 182 is
182 $postids = array($postid);



But what is your used mod version? On top in version 7.88 this backward incompatibility was removed (running here with vB4.2.5 and php7.1.32)

BasilFawlty
10-05-2019, 10:35 PM
Thank's shka (and Dave). I had misplaced the statement and put it to early. I have placed it exactly before line 182 and now it seems to be working with PHP 7.1. A million thanks to you both.

dnikola
12-20-2019, 09:54 PM
Hi ppl,

can you tell me which version works with 4.2.5 version?
Tried to install post_thanks_7_88_for_vB_423_with_collapse_scroll_p ostbit_fix_and_added_features. zip
but get error
This product is not compatible with version 4.2.5 of vBulletin. (Compatible starting with 4.2.0 / Incompatible with 4.2.4 and greater)

Regards

chudvs
02-03-2020, 04:39 PM
Working in v4.2.5

with

post_thanks_7_88_for_vB_423_with_collapse_scroll_p ostbit_fix_and_added_features. zip

chudvs
02-03-2020, 04:47 PM
Hi ppl,

can you tell me which version works with 4.2.5 version?
Tried to install post_thanks_7_88_for_vB_423_with_collapse_scroll_p ostbit_fix_and_added_features.zip
but get error
This product is not compatible with version 4.2.5 of vBulletin. (Compatible starting with 4.2.0 / Incompatible with 4.2.4 and greater)



Regards

remove the <dependencies> xxxx </dependencies> code completely in the product xml

GhostHunter2010
04-20-2020, 02:45 PM
doesnt work vb 4.2.5

Hawk7173
04-20-2020, 03:16 PM
We have 4.2.5 and it is not needed.

john7911
04-29-2020, 06:47 AM
Doesnt work vb 4.2.5 :erm:

shka
04-29-2020, 08:00 AM
Doesnt work vb 4.2.5 :erm:

Not correct. Here it works (Addon V7.88 with vB4.2.5 and PHP7.1.33)

What is your problem? Installation? Problems after upgrade vB or PHP? Which version of PHP?
Error messages? Log messages? White/black/green/yellow/blue screen? Other symptoms?

The more information, the greater the likelihood of help. ;)

john7911
04-30-2020, 09:05 AM
Hi shka,
I removed the old one and installed the 7.88 , but now I have this message:
http://www.faous.net/images/vb-thanks.png

shka
04-30-2020, 09:12 AM
Go to post 3782 (five posts above).

Edit: The img-link is not shown in your post. I get it only with quoting your post.

john7911
04-30-2020, 09:16 AM
Go to post 3782 (five posts above).

Edit: The img-link is not shown in your post. I get it only with quoting your post.

http://www.faous.net/images/vb-thanks.png

---
The following dependencies were not met:
This product is not compatible with version 4.2.5 of vBulletin. (Compatible starting with 4.2.0 / Incompatible with 4.2.4 and greater)

john7911
04-30-2020, 09:21 AM
Ok I insttaled it :-)
But when I clic on the thumb I have these code bellow:

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

shka
04-30-2020, 09:26 AM
Post 3774-3778 on page 252 :)

john7911
04-30-2020, 09:33 AM
Post 3774-3778 on page 252 :)
:D :D :D :D :D
Thank you very much ;)

puertoblack2003
04-30-2020, 07:13 PM
Ok I insttaled it :-)
But when I clic on the thumb I have these code bellow:

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

In includes/functions_post_thanks.php

look for this line:

if (empty($postids))
{
$postids[] = $postid;
}

replace with this:

if (empty($postids))
{
$postids = array(); $postids[] = $postid;
}


thanks to dave for the fix.

Raptor
05-10-2020, 11:34 PM
In includes/functions_post_thanks.php

look for this line:



replace with this:




thanks to dave for the fix.


Brilliant exactly what I was looking for - working on vb4.2.5

used this mod for years - its great that the community has kept it going.

Edumar
08-28-2020, 01:44 PM
Please, where di I find the phrase "Thanked" (under the avatar) to be translated? I found all the other phrases, except this one.
Thank you very much.

MentorBR
08-29-2020, 11:12 PM
Can someone teach me how to move the thanks button to the position as shown in the image?
https://i.imgur.com/uCNxkVI.png

Hostboard
09-05-2020, 01:35 PM
MentorBR, am I understanding correctly that you are trying to move the "Thanks" button within the WYSIWYG editor? While technically anything is possible, if this is the case, it would most likely will require core file edits.

My initial thought would be to somehow tie this into the signature line as an addition.

In thinking about this, there might be a modification that forces a default signature and then the code for the button could be substituted/added?

Maybe someone with a deeper understanding of the editor has another idea?

Prince
01-21-2021, 08:53 PM
Does this mod not work using PHP 7.3?

Hostboard
01-21-2021, 10:03 PM
Does this mod not work using PHP 7.3?

vBulletin 4.2.5 will only work up to PHP 7.1.33 which is the last release and EoL.
The only reason VB 4 even works with PHP 7.1 is because of the efforts of Paul M. Otherwise I would suspect IB would have laid it to rest much sooner leaving it forever on PHP 5. Many of the addons were written in the PHP 5 days which was when this place was actually bustling with activity. With the purchase of the platform and the release of VB5, much development for VB4 ceased leaving many addons abandoned and never upgraded. I believe DB addons will work with PHP 7.1 but beyond that, I highly doubt it with out some tinkering of the code.

In all honesty if your going to update VB and your addons to PHP 7.3 you really should just go to PHP 7.4 The only really good outcome is that you do not need a VB developer and any competent PHP developer/coder can easily adapt the code accordingly.

Prince
01-21-2021, 11:27 PM
vBulletin 4.2.5 will only work up to PHP 7.1.33 which is the last release and EoL.
The only reason VB 4 even works with PHP 7.1 is because of the efforts of Paul M. Otherwise I would suspect IB would have laid it to rest much sooner leaving it forever on PHP 5. Many of the addons were written in the PHP 5 days which was when this place was actually bustling with activity. With the purchase of the platform and the release of VB5, much development for VB4 ceased leaving many addons abandoned and never upgraded. I believe DB addons will work with PHP 7.1 but beyond that, I highly doubt it with out some tinkering of the code.

In all honesty if your going to update VB and your addons to PHP 7.3 you really should just go to PHP 7.4 The only really good outcome is that you do not need a VB developer and any competent PHP developer/coder can easily adapt the code accordingly.

Yeah it sucks cause I like vB 4.2

I am running this vB 4.2.5 on PHP 7.3 http://www.ironmaglabs.com/forums/

I don't even have the option for PHP 7.1 or 7.4 in cPanel, only 7.2 and 7.3?

gnrx
01-22-2021, 12:00 PM
In all honesty if your going to update VB and your addons to PHP 7.3 you really should just go to PHP 7.4 The only really good outcome is that you do not need a VB developer and any competent PHP developer/coder can easily adapt the code accordingly.
I'm really interested in that, I currently have my site with php 7.1.33 and addons, but my knowledge of php is not enough to make this change.
I'm going to see what I find ...

Yeah it sucks cause I like vB 4.2

I am running this vB 4.2.5 on PHP 7.3 http://www.ironmaglabs.com/forums/

I don't even have the option for PHP 7.1 or 7.4 in cPanel, only 7.2 and 7.3?

Contact with your hosting and indicate you need php 7.1, is easy install for cPanel.

Hostboard
01-22-2021, 12:21 PM
I highly doubt a hosting company is going to install a PHP version that is no longer supported after they updated their systems to remove it.

PHP: 5.6, 7.0, 7.1, and 7.2 are all EoL with no further updates.

PHP 7.3
Active Support until 12/2020
Security Support until 12/2021

PHP 7.4
Active Support until 11/2021
Security Support until 11/2022

PHP 8.0
Active Support until 11/2022
Security Support until 11/2023

gnrx
01-22-2021, 02:45 PM
I highly doubt a hosting company is going to install a PHP version that is no longer supported after they updated their systems to remove it.


Yes, you have a reasson, its possible, some hosting company is possible not install a PHP version that is no longer supported...

But he can ask for this possibility, if have cPanel, the hosting, via WHM-Easyapache, its quickly install 7.1.

Only is an option...

Regards.

edytwinky
02-22-2021, 04:39 PM
Is anybody able to get this to work with vb 4.25?

Prince
02-22-2021, 04:47 PM
Is anybody able to get this to work with vb 4.25?

I am using this mod on two vB 4.2.5 boards.

yilmaz
02-22-2021, 04:55 PM
Is anybody able to get this to work with vb 4.25?

vB4.2.5 installed, and php 7.3.27 works fine

boss22
03-13-2021, 01:05 PM
vB4.2.5 installed, and php 7.3.27 works fine

Please some help ? I installed your version above - and got errors in my error log file
Have PHP 7.3 and vb 4.2.5

[13-Mar-2021 08:51:27 America/New_York] PHP Warning: Use of undefined constant post_thanks - assumed 'post_thanks' (this will throw an Error in a future version of PHP) in /home/user/public_html/vb4/includes/class_bootstrap.php(1422) : eval()'d code on line 21

regards

Thr33
08-13-2021, 06:36 PM
I'm looking to hire a developer who can tweak this slightly for me. Please send me a private message if you can.

There is a global option "maximum THANKS per day" which i need to be in the usergroup manager options so each usergroup would have a different maximum thanks.

Most of the coders i've found and hired online aren't familiar with vBulletin.

geosharing
11-16-2021, 06:44 AM
vB4.2.5 installed, and php 7.3.27 works fine

not installed this
i got error

Please upload the files that came with this Hack before installing or upgrading!

system
vB4.2.5 installed, and php 7.3.30

glennybee
05-18-2022, 04:08 PM
vB4.2.5 installed, and php 7.3.27 works fine

Just tried this on PHP 7.4 and it appears to be working good. Thanks for the update.

MentorBR
06-19-2022, 12:27 PM
when i click thanks i get this error.
Does anyone know how to fix this?

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
webmaster@myweb.com. to inform them of the time this error occurred,
and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>

Hostboard
06-20-2022, 10:29 AM
when i click thanks i get this error.
Does anyone know how to fix this?

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
webmaster@myweb.com. to inform them of the time this error occurred,
and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>

My experience is when getting 500 errors, the file has been uploaded in the incorrect format. I would re-upload and try again.

MentorBR
06-28-2022, 12:25 AM
My experience is when getting 500 errors, the file has been uploaded in the incorrect format. I would re-upload and try again.

Upload the files again and the error persists. :(

MentorBR
06-28-2022, 06:50 PM
problem solved as I needed to fix the permission internal error :D

BillB1
08-12-2022, 07:54 PM
not installed this
i got error

Please upload the files that came with this Hack before installing or upgrading!

system
vB4.2.5 installed, and php 7.3.30


Tried to install this mod on vb4.2.5 php 5.6,
system refuses to import the xml file, got error: This is vb4.2.3 xml file, incompatible with vb4.2.5

Hostboard
08-12-2022, 10:18 PM
Tried to install this mod on vb4.2.5 php 5.6,
system refuses to import the xml file, got error: This is vb4.2.3 xml file, incompatible with vb4.2.5


Thanx to Yilmaz you can download from here:
https://vbulletin.org/forum/showpost.php?p=2606424&postcount=3803

The XML has been updated to work with the new VB version as well as tweaks to allow it to work with PHP 7.3.x

BillB1
08-14-2022, 08:45 AM
Hostboard: thank you so much, and thanx to Yilmaz as well, appreciate your help.
It works fine on vb4.2.5 / php 5.6 :up:

oldfan
04-09-2023, 08:50 PM
I get this error with your attached file...

The following dependencies were not met:
This product is not compatible with version 4.2.6 LTS of vBulletin. (Compatible starting with 4.2.0 / Incompatible with 4.2.6 and greater)