Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 9 replies, 2 voices, and was last updated 10 years, 3 months ago by
Steven Zahm.
-
AuthorPosts
-
02/08/2016 at 10:21 pm #364126
Lara Marsh
ParticipantHi Steven –
In our Connections, I use “families” to be churches and “relations” to be staff people at the church. I also use the Say What plug-in to change the name of the relationships to staff titles (e.g. Pastor, Secretary, etc.).
I’d like to be able to add the same person as a “relation” to a “family” more than once. So for example, on the “family” of “First Presbyterian Church” I’d like to add Mike Brown as the “relation” of “Pastor” and Mike Brown as the “relation” of “Key Communicator.”
Is this possible? I assume I’ll have to modify some php code. I’m just not clear on which file(s) and I’m not convinced that I’d catch all the places that there might be code that checks for unique names as relations. I do have a child theme installed so future Connections updates from you should be fine.
Thanks for your help!
Lara02/09/2016 at 10:25 am #364166Steven Zahm
Keymaster@ Lara
Well, i do not specifically not allow allow you to do what you want… it is just the way the data is saved. If the same entry is added more than once as a relation, only the last in the list will be saved.
Making the change so it is saved should actually be fairly simple. You would change this code to be this (I think)
public function setFamilyMembers( $relations ) { $family = array(); if ( ! empty( $relations ) ) { $family = $relations; } $this->options['group']['family'] = $family; }The real problem… none of the functions using this function will be expecting the data to be returned as a two dimenaional array. They will be expecting the associative array. So you would have to change every function that using it.
Of course making these changes… you’ll be locked into “your” version and not be able to update Connections again without having to do the changes after each update.
Probably not really what you wanted to hear, but I hope it helps.
02/09/2016 at 11:06 am #364177Lara Marsh
ParticipantThis helps a ton. Thanks. I will look into the functions you mentioned.
Lara04/29/2016 at 3:08 pm #374634Lara Marsh
ParticipantThis reply has been marked as private.05/02/2016 at 2:13 pm #374984Steven Zahm
KeymasterThis reply has been marked as private.05/02/2016 at 2:55 pm #374988Lara Marsh
ParticipantThis reply has been marked as private.05/09/2016 at 1:49 pm #375650Steven Zahm
Keymaster@ Lara
Apologies for the late reply, I had one written but must have forgotten to actually hit send. I can include this change in the next update. Is the email address associated to your account the correct address to send the invoice to? If it is, I can send the invoice and push out an update this week.
05/10/2016 at 12:36 pm #375847Lara Marsh
ParticipantThis reply has been marked as private.05/10/2016 at 6:48 pm #375927Steven Zahm
Keymaster@ Lara
Thanks for confirming. I’ll work on this tomorrow. If you’d like me to install an advanced copy (pre-release) so you can verify that it works as expected, leave a temp WP admin login as a private reply.
I’ll send the invoice after I have made the code changes.
05/11/2016 at 9:24 pm #376065Steven Zahm
Keymaster@ Lara
I’ve completed the work. It took less than I initially thought so the invoice is for less than estimated. I have a few small things to clean up code-wise tomorrow, but the update 8.5.15 should be released by Friday as planned.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
