[3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

Seems any kind of weirdness with migration, not carrying old notifications.

Try, with latest version:

1) Disable extension
2) Execute this in database (SQL command):

Code: Select all

DELETE FROM phpbb_migrations where migration_name like '%naguissa%';
4) Re-enable extension
Schtorsch wrote: Wed Feb 16, 2022 12:57 pm I am updating the thanks-for-posts-plugin and now I have some problems with single users. They can´t login to my board! After login they see this:

2022-02-16 13_25_09.png

There are no way to login for these users. Nothing helps: Clearing the caches, the cookies and so on.
What is the problem? And why takes it effect only on some users - all the others have no problem... :?

EDIT: I have delete the plugin completely, clear the cache and test it again. Same problem. After the login searches the board for these old plugin-data and no login is possible. With the old plugin-data works the login - but I delete the plugin (V 3.x). Maybe some user can help me with the "old" plugin?
Schtorsch
Registered User
Posts: 52
Joined: Tue Aug 12, 2008 8:49 am

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Schtorsch »

Schtorsch wrote: Wed Feb 16, 2022 12:57 pm I am updating the thanks-for-posts-plugin and now I have some problems with single users. They can´t login to my board! After login they see this:

2022-02-16 13_25_09.png

There are no way to login for these users. Nothing helps: Clearing the caches, the cookies and so on.
What is the problem? And why takes it effect only on some users - all the others have no problem... :?

EDIT: I have delete the plugin completely, clear the cache and test it again. Same problem. After the login searches the board for these old plugin-data and no login is possible. With the old plugin-data works the login - but I delete the plugin (V 3.x). Maybe some user can help me with the "old" plugin?
Now I have searched the complete database for "gfksx" and delete all the entries. Now it seems to be okay... I hope so... Waiting for all users and their return messages.
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

Schtorsch wrote: Wed Feb 16, 2022 2:25 pm
Schtorsch wrote: Wed Feb 16, 2022 12:57 pm I am updating the thanks-for-posts-plugin and now I have some problems with single users. They can´t login to my board! After login they see this:

2022-02-16 13_25_09.png

There are no way to login for these users. Nothing helps: Clearing the caches, the cookies and so on.
What is the problem? And why takes it effect only on some users - all the others have no problem... :?

EDIT: I have delete the plugin completely, clear the cache and test it again. Same problem. After the login searches the board for these old plugin-data and no login is possible. With the old plugin-data works the login - but I delete the plugin (V 3.x). Maybe some user can help me with the "old" plugin?
Now I have searched the complete database for "gfksx" and delete all the entries. Now it seems to be okay... I hope so... Waiting for all users and their return messages.
Yes, it seems by error message. But migration file takes it into account and renames all occurrences (even very old MOD ones!), so that's why I suggested to re-execute migration.

If it's all fixed now then there's no point in doing so.
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

3Di wrote: Tue Feb 15, 2022 9:39 am
Naguissa wrote: Tue Feb 15, 2022 9:15 am Thanks, DSI! ...


:shock:
Image
Image
User avatar
Liam Davis
Registered User
Posts: 70
Joined: Sun Feb 02, 2020 5:36 am

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Liam Davis »

Naguissa wrote: Wed Feb 16, 2022 7:20 am
Liam Davis wrote: Tue Feb 15, 2022 4:42 pm Any way to have the thanks details below the signature in the post panel ?
It's possible to do so, but then it whould be only compatible with phpBB 3.3.5-RC1 and newer versions.

You can do it by yourself:

For AJAX support (default: on) you also need change a reference to that file:

Change it at: ext/naguissa/thanksforposts/controller/ajax.php [line 159]

Then, enter in ACP, upload changes and clear cache.
What do I need to change in ajax.php file please ?
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

Liam Davis wrote: Wed Feb 16, 2022 4:05 pm
Naguissa wrote: Wed Feb 16, 2022 7:20 am

It's possible to do so, but then it whould be only compatible with phpBB 3.3.5-RC1 and newer versions.

You can do it by yourself:

For AJAX support (default: on) you also need change a reference to that file:

Change it at: ext/naguissa/thanksforposts/controller/ajax.php [line 159]

Then, enter in ACP, upload changes and clear cache.
What do I need to change in ajax.php file please ?
Search for original filename and replace with new name. I think it's on line 139.
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

Liam Davis wrote: Wed Feb 16, 2022 4:05 pm What do I need to change in ajax.php file please ?
Naguissa wrote: Wed Feb 16, 2022 7:20 am It's possible to do so, but then it whould be only compatible with phpBB 3.3.5-RC1 and newer versions.

You can do it by yourself:

Rename file: ext/naguissa/thanksforposts/styles/all/template/event/viewtopic_body_postrow_post_notices_after.html
to: ext/naguissa/thanksforposts/styles/all/template/event/viewtopic_body_postrow_signature_after.html


For AJAX support (default: on) you also need change a reference to that file:

Change it at: ext/naguissa/thanksforposts/controller/ajax.php [line 159]

Then, enter in ACP, upload changes and clear cache.
For AJAX support (default: on) you also need change a reference to that file:

Change it at: ext/naguissa/thanksforposts/controller/ajax.php [line 159]

----------

In that line, delete viewtopic_body_postrow_post_notices_after and write viewtopic_body_postrow_signature_after

Just that text change, to match new file name. Remember to copy-paste the name, as it needs to be exactly it.

But this change only affects to AJAX system, all other operations remains the same (as load a thread and see all info in correct place -now correct place should be after user's signature- should be working even without this change).

If you don't do this change everything should work OK but that info section would be changed to "garbage" when you use AJAX thanks/remove-thanks. In my case it was returning a capital A, but I don't know why, it could fail, return blank, but... an "A"? Who knows....




-----------------------------

More info, only for tech enthusiasts: I've implemented a "render this part of the forum" system (called "partials") to be able to reuse same templates. This means that AJAX call renders same parts of the extension as a normal call, and then I don't have to duplicate templates. Even if anyone customizes any part (i.e.: custom styles with weird styles), it the person customizes the main template, it will continue working withoun any extra adaption. The other way to do so is to re-implement template in JavaScript, and then any change to template need to be done twice: JavaScript and Twig phpBB's template.

But as I reference partial template file by name, if you change one file name you need to change same name in AJAX controller too.
User avatar
Liam Davis
Registered User
Posts: 70
Joined: Sun Feb 02, 2020 5:36 am

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Liam Davis »

Naguissa wrote: Wed Feb 16, 2022 4:12 pm
Liam Davis wrote: Wed Feb 16, 2022 4:05 pm

What do I need to change in ajax.php file please ?
Search for original filename and replace with new name. I think it's on line 139.
Thanks once again for your help. All done works fine, looks much better with the info at the bottom imo :)
Holger
Registered User
Posts: 1893
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Holger »

Liam Davis wrote: Wed Feb 16, 2022 7:10 pm
Naguissa wrote: Wed Feb 16, 2022 4:12 pm

Search for original filename and replace with new name. I think it's on line 139.
Thanks once again for your help. All done works fine, looks much better with the info at the bottom imo :)
Could you please share what it looks like?
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

Holger wrote: Thu Feb 17, 2022 7:05 am
Liam Davis wrote: Wed Feb 16, 2022 7:10 pm

Thanks once again for your help. All done works fine, looks much better with the info at the bottom imo :)
Could you please share what it looks like?
File ext/naguissa/thanksforposts/controller/ajax.php - line 159

ORIGINAL:

Code: Select all

					"app_list_thanks_" . $post_id => $this->partials->renderPartial('event/viewtopic_body_postrow_post_notices_after.html', $template_vars),
MODIFIED:

Code: Select all

					"app_list_thanks_" . $post_id => $this->partials->renderPartial('event/viewtopic_body_postrow_signature_after.html', $template_vars),
-----

As you change filename you need to modify AJAX reference to that file and write down new name.
Holger
Registered User
Posts: 1893
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Holger »

Ah, no, SORRY!
I ment Liam Davis. A screenshot of what it looks like.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by 3Di »

@ Naguissa

Didn't you think that that button in your signature might be a bit exaggerated but maybe reduce it in size? :lol:
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Naguissa
Registered User
Posts: 502
Joined: Thu Mar 02, 2017 6:55 am
Location: Barcelona
Name: Naguissa

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by Naguissa »

3Di wrote: Thu Feb 17, 2022 8:34 am @ Naguissa

Didn't you think that that button in your signature might be a bit exaggerated but maybe reduce it in size? :lol:
Yes, I know. I have to take 5 min to upload a new one resized, that's the only one available I have now and phpBB doesn't support specify sizes...


EDIT: Done!
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by 3Di »

Looks better.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
halil16
Registered User
Posts: 1448
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: [3.2][3.3][RC] Thanks for posts (and optional Tapatalk integration)

Post by halil16 »

Maybe I can contribute. I customized this extension myself. I turned it into a "like" extension.
Image
It was simple to do, although it took my time. Actually, all I did was change the icons and adjust some minor fixes and translations. I think it would be nice for the extension to move in that direction. I don't know, everyone's style is different. But thank you very much for offering these features.
Buy me a coffee ☕
Hire me for your phpBB board. 🚩
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
O BeldeThatTowns*for sale*$2250 🛒
"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/

Return to “Extensions in Development”