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)

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

Quote:

Originally Posted by shka (Post 2600493)
"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

Quote:

Originally Posted by lange (Post 2600505)
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

Quote:

Originally Posted by gnrx (Post 2600507)
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

Quote:

Originally Posted by matheus21 (Post 2600511)
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

1 Attachment(s)
Quote:

Originally Posted by matheus21 (Post 2600511)
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

1 Attachment(s)
Quote:

Originally Posted by shka (Post 2600513)
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

1 Attachment(s)
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

Quote:

Originally Posted by shka (Post 2600521)
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:

PHP Code:

[] 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:

PHP Code:

    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
PHP Code:

$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

Quote:

Originally Posted by Dave (Post 2600621)
Just insert
PHP Code:

$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

Quote:

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

    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

Quote:

Originally Posted by dnikola (Post 2601526)
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

Quote:

Originally Posted by john7911 (Post 2602731)
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

Quote:

Originally Posted by shka (Post 2602746)
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

Quote:

Originally Posted by shka (Post 2602749)
Post 3774-3778 on page 252 :)

:D :D :D :D :D
Thank you very much ;)

puertoblack2003 04-30-2020 07:13 PM

Quote:

Originally Posted by john7911 (Post 2602748)
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:

Quote:

if (empty($postids))
{
$postids[] = $postid;
}
replace with this:

Quote:

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

thanks to dave for the fix.

Raptor 05-10-2020 11:34 PM

Quote:

Originally Posted by puertoblack2003 (Post 2602754)
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

Quote:

Originally Posted by Prince (Post 2605912)
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

Quote:

Originally Posted by Hostboard (Post 2605913)
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

Quote:

Originally Posted by Hostboard (Post 2605913)
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 ...

Quote:

Originally Posted by Prince (Post 2605914)
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

Quote:

Originally Posted by Hostboard (Post 2605920)
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.


All times are GMT. The time now is 12:58 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.06798 seconds
  • Memory Usage 1,859KB
  • 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
  • (5)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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