Thread:Karuberu/@comment-195370-20171006201532

We're at the point now where ffxiclopedia is norotious for it's intrusive adverts and broken tooltip maps. People can fix the first by logging in or using Monobook, but the second is something I've looked at for ages and never been quite able to understand.

Drilling down through all the templates and scripts I think the problem ended up lying here: User:Anthoron/tooltip.js which incredibly bizarrely remains a protected page, even to a wiki Bureaucrat (me).

Anyhow, the code on that page that looks like it causes the popup to appear so far out-of -place is: var skin_x_offset = -210; var skin_y_offset = -55;

Because I couldn't change this there, I made a copy of the page at MediaWiki:Tooltip.js (not to be confused with the deleted Mediawiki:Tooltips.js which seem sto be an earlier project) and edited MediaWiki:Common.js to point from the script in Anthoron's userpage to that new page.

In the new page, I change the offsets each to -5, thinking that'd simply drag in the popup to much closer to the mouse cursor. Haha. No.

The two new .js (common and tooltip) went live earlier today and the tooltip maps... disappeared altogether!

I've changed the new Tootlip.js to the original values found in Anthoron's page of -210 and -55 and tested and it goes back to how it has been for the last 8 years. It's pending submission, so should be back up and running in it's annoyingly broken format in a day or so, but you can see it/play with it in Test mode if you want.

So other than managing to port the Tooltip script to an editable page, I've not really managed much on that front.

I have designed Template:MapHover:

Where

gives a popup in the centre of the screen: which isn't exactly the same as the original, and has a couple of aesthetic issues in itself, but it is a solution, to a degree.

If there's nothing you can do to get the tooltip maps working, based on the Tooltip.js, I think we should replace the lot with MapHover until a better solution presents itself, as then at least we don't have popups that appear off-screen.

What do you think? 