XF 2 Bespoke Addon Request: Complete Thread buttons

MegaPixel

Active member
Hello,

Context
I run a geopolitical nation simulator where each player controls their own country but a significant portion of this is that to build up your armed forces, a player must fill out a form to post a 'Production'. After a certain period of time, they can respond to the thread that was posted saying 'Complete'. We currently have a labour-intensive to process this onto our economy system where an admin will go through every 'Completed' product and add it to our system. This can take a significant amount of time and I'd like to put something in place to ease the burden.

Solution Summary
I'm not sure whether it's the best or more efficient solution but one idea I had is to have a custom prefix named 'Ready to Invoice' or similar.
When a Production is complete, the player updates the thread prefix to match this.
I have set up an email routine to email me a list of the threads with this prefix, I can then simply copy and paste into our Economy System.

However, this is another thing for the user to check and do, so I'd like to automate it as much as possible.

Requirements
An addon that will add two buttons to a thread in a specific subforum.

Button 1 - Complete Production
This will then post a reply on the thread saying "Production Complete" from the user,
then apply the prefix "Ready to Invoice"
and can only be clicked if the "Completion Date" is today or earlier (to avoid people completing anything later) which is part of the thread content - not sure if this bit is possible.

Button 2 - "Receive Funds"
This will apply the prefix "Ready to Invoice"
and can only be seen/clicked if the thread title contains "Transfer"

Because of the prefix, I'd then receive the automated email each week and can just copy and paste the results into our Economy.

XF Version: 2.2.12

Looking for an indication of costing but can answer any questions in DM.
 
Back
Top Bottom