[CDB] Thanks for posts

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!
Ideas Centre
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)
Locked
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

[CDB] Thanks for posts

Post by rxu »

Extension Name: Thanks for posts
Author: Палыч
Converting to extension: rxu

Extension Description:: Adds the ability to thank the author (thanks to cancel), and use the rating system posts/topics/forums based on the issued of thanks. Note that you can't thank yourself.
Extension Version:: 2.0.0 (unstable)
Conversion info:: This extension is a conversion of Thanks for posts MOD for phpBB 3.0.x.

Requirements:
  • phpBB 3.2.0 (or current develop-3.2.x) or later
WARNING: How to upgrade from versions prior to 2.0.4 (it's not phpBB 3.1.x compatible!!!)
  • Disable Thanks for posts 2.0.3-dev
  • Delete /ext/gfksx/ThanksForPosts folder
  • Copy Thanks for posts 2.0.4 files into /ext/gfksx/thanksforposts folder (the difference is - all letters are lowercased)
  • Reload the manage extensions ACP page
  • Enable Thanks for posts 2.0.4
Development repository: https://github.com/rxu/thanks_for_posts

Download URL: Download button named "Download ZIP" can be found at the development repository page.
Installation: Extension files should be extracted to /ext/gfksx/ThanksForPosts/ folder. Then the extension should be enabled in ACP as usually.

Permissions explanation: viewtopic.php?p=14223716#p14223716

Precaution: As the ext is still in development, major changes still can be applied which could require full extension purging and reinstallation, so use it on your own risk. DO NOT install it on production boards. For testing purposes only.

Screenshots:
Image
Image
Image
Image
Image
Last edited by rxu on Wed Feb 14, 2018 5:37 pm, edited 10 times in total.
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11072
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [DEV] Thanks for posts

Post by Raul [ThE KuKa] »

@ rxu, you have a lot of work, and many extensions... :o
"Forked" and working in translation... ;)
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


Pond Life
Registered User
Posts: 388
Joined: Sat Jan 20, 2007 1:55 am

Re: [DEV] Thanks for posts

Post by Pond Life »

Thank you rxu, I was hoping someone would convert the Thanks MOD, it's one of the few I don't want to lose if/when I upgrade to 3.1 :D Will it be a straight conversion or are you going to make any changes? Will it pick up the existing data?
Never argue with idiots, they will drag you down to their level and beat you with experience.
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

Re: [DEV] Thanks for posts

Post by rxu »

This extension is designed in a way to keep the 3.0 MOD data (if any). Actually, no special conversion is needed when migrating to 3.1, all you have to do is just install this extension.
But this should be tested before using in production.
Pond Life
Registered User
Posts: 388
Joined: Sat Jan 20, 2007 1:55 am

Re: [DEV] Thanks for posts

Post by Pond Life »

Excellent! My members have used the MOD a lot so it's great that the data won't be lost. I always test with WAMP before going live with any change. Thanks again.
Never argue with idiots, they will drag you down to their level and beat you with experience.
User avatar
Darkness_demoN
Registered User
Posts: 111
Joined: Sat Jun 16, 2012 2:20 pm

Re: [DEV] Thanks for posts

Post by Darkness_demoN »

Using phpbb RC-3

( ! ) Fatal error: Uncaught The notification type "thanks" is missing from the file system. thrown in D:\wamp\www\phpBB3\phpbb\notification\manager.php on line 919


This happend when i press like button.
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

Re: [DEV] Thanks for posts

Post by rxu »

As I stated in the 1st post of this topic, this ext requires RC4 or current development branch to be installed for operation.
Try the following:
OPEN
/ext/gfksx/ThanksForPosts/config/services.yml

FIND
gfksx.ThanksForPosts.notification.type.thanks:

REPLACE WITH
notification.type.thanks:

FIND
gfksx.ThanksForPosts.notification.type.thanks_remove:

REPLACE WITH
notification.type.thanks_remove:
User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [DEV] Thanks for posts

Post by PayBas »

This topic needs some screenshots ;).
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

Re: [DEV] Thanks for posts

Post by rxu »

Indeed. Added several screenshots to the 1st post.
User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [DEV] Thanks for posts

Post by PayBas »

So how exactly would you get a rating other than 100%, if you can't downvote?
User avatar
tunescool
I've Been Banned!
Posts: 1061
Joined: Mon Jul 06, 2009 5:08 pm
Contact:

Re: [DEV] Thanks for posts

Post by tunescool »

i used the upload master extension to upload this extension. its enabled in the acp and all the options show up in the extension tab

nothing is in the posts to thank anyone

i get an error saying domain.com/toplist does not exist and the same for /thankslist

http://forumbytunes.com/tunescool
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

Re: [DEV] Thanks for posts

Post by rxu »

PayBas wrote:So how exactly would you get a rating other than 100%, if you can't downvote?
I think the mostly thanked post of the board is taken for 100%, so any other posts rating is calculated from it.
In simple words, if the mostly thanked post has, say, 500 thanks, its "reput" is 100%, any other post's "reput" is ($thanks / 500) * 100 percent.
And there's kinda downvoting option - if you thanked the post, you can take that thank back.
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

Re: [DEV] Thanks for posts

Post by rxu »

tunescool wrote:nothing is in the posts to thank anyone
That's weird. What phpBB exact version? Do you have mod_rewrite (or similar) enabled for your webserver?
User avatar
tunescool
I've Been Banned!
Posts: 1061
Joined: Mon Jul 06, 2009 5:08 pm
Contact:

Re: [DEV] Thanks for posts

Post by tunescool »

rxu wrote:
tunescool wrote:nothing is in the posts to thank anyone
That's weird. What phpBB exact version? Do you have mod_rewrite (or similar) enabled for your webserver?
its a new install

Latest Development Release: 3.1.0-RC5

im not sure what mod rewrite is
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

Re: [DEV] Thanks for posts

Post by rxu »

I never tried it with upload master extension yet tbh. What is the path to TFP ext from the board root now (including folder name character case)?
Locked

Return to “Extensions in Development”