Looking for someone who can help with overlays

I've been trying to use this overlay php script to help open html pages into an overlay: https://xenforo.com/community/threads/open-html-page-in-an-overlay.36651/#post-417572

However, whenever I try to show a section of the html page with an anchorlink, it doesn't work. (site.com/forums/thread/#section2).
The problem seems to be that the phpcode doesn't recognize hastags and also xenforo itself has issues with anchorlinks since the <base> is setup where anchor links are not relative links (http://www.coffeecup.com/help/articles/absolute-vs-relative-pathslinks/).

If someone can help me open a link to an anchor link show up in an overlay, I would really appreciate it.

If you can help asap, I will be willing to pay for your time.