jordsti / ark-itemizer

ARK: Survival Evolved Items Database, Raw materials calculator and functions to include Item Popup on your website.
MIT License
4 stars 1 forks source link

Just want to say Thanks #5

Open Ynd21 opened 9 years ago

Ynd21 commented 9 years ago

Hey there!

I found this github by doing a google search for Ark DB Javascript and was able to get it working on my Xenforo, so I wanted to say Thank You very much for getting all this javascript together! Was a tad of a challenge to get the pop ups to align properly but once I did, it was amazing.

Thanks again and I hope you continue the work!

(If anyone has an Xenforo and wants to know how it was added let me know!)

jordsti commented 9 years ago

Thanks ! Nice to see someone is using it.

What was the problem with the position ? Do you have something to suggest to ease the position of the popup ?

Ynd21 commented 9 years ago

Hey there,

I'm not at home (work, blarg) so I can't really show you what it looked like, but what I did was I changed the popup from what it is originally to

$('#ark-popup-'+htmlId).css('position','absolute'); $('#ark-popup-'+htmlId).css('z-index', 1); $('#ark-popup-'+htmlId).css('left',event.pageX -200);

and that fixed my popup issue, which is weird.

Whenever it was the ark_mousex/y px and set to Fixed, it would display pretty much off my page and no where near the actual link =/, so I removed the top css, and made the left -200 and it put it directly under it. It could of honestly just been something I was missing though lol. I'm not using the same jquery file either as Xenforo (forum software) has one as well and it was messing up my forums lol.

http://serenityreborn.com/forums/threads/the-great-pig-race.129/#post-265 is how I got it to look after some tinkering.

Heres what it looks like when the default js is used btw

http://screencast.com/t/GiYtYtKKNg9