Do not ask for direct help with custom code, we receive a lot of messages asking for support and i cannot answer to all of them (i used to help a lot of people, but now is impossible).
Instead, you may suggest an idea for a new article about your issue, we may notify you when it's ready.