I don't mind cross-posting as long as links are posted, so that anybody who finds the post can find related information and work on the issue.
If you have independently found a solution,
you should post it on one of the sites you asked your question on, and link to your solution from other posts (probably post it on stack overflow as stack overflow doesn't allow link only answers).
My advice is to try to
write perfect questions - as those question types are more likely to get answered.
I answer many questions on different forums and I have read your question numerous times and have not been able to understand exactly what it is asking, nor how to solve it.
I have seen others attempt to answer your question and fail to answer satisfactorily.
If the question is clear, interesting, simple to understand and any issue lucidly explained and immediately reproducible at the time the question is first read, then you are far more likely to get better help sooner.