Yarr The Pirate!
http://yarrthepirate.com/phpbb3/

Lodestone Avatars on forums
http://yarrthepirate.com/phpbb3/viewtopic.php?f=52&t=14206
Page 1 of 1

Author:  Tanag [ Thu Sep 05, 2013 2:22 pm ]
Post subject:  Lodestone Avatars on forums

Since the Lodestone creates a little avatar I thought it would be neat to code a forums avatar that automatically updates when the Lodestone does. So I coded a php script to do just that.

Anyone here can use this, so feel free too. The data is pulled by your Lodestone id, which you can find in the url.

Example: na.finalfantasyxiv.com/lodestone/character/871200

Then just take the ID at the end and put it in the URL for my site:
http://www.pals4life.com/ffxiv/avatar/871200.jpg

Image

To use this image on CKD forums go to this page: ucp.php?i=profile&mode=avatar

And enter the image url under the Link off-site field.

Set the dimensions to 96x96 and you're all set!

If the Lodestone changes it's code base this will break. However I am using the XIVDB.com API and they seem really on the ball so odds are I can get it fixed really fast.

* Note: I haven't tested this extensively but it seems to work on any character.

Author:  Iolanthe [ Thu Sep 05, 2013 2:33 pm ]
Post subject:  Re: Lodestone Avatars on forums

Cool! Thanks!

Author:  tehkei [ Thu Sep 05, 2013 9:08 pm ]
Post subject:  Re: Lodestone Avatars on forums

I dont see your avatar on my screen. it just shows as broken link

Author:  Ketrebu [ Thu Sep 05, 2013 9:31 pm ]
Post subject:  Re: Lodestone Avatars on forums

Those images only work if you're logged in on their site, it seems. People who don't use their site can't see them. Just getting an X, get a login page if I try to direct link the URL.

Author:  Tanag [ Fri Sep 06, 2013 9:15 am ]
Post subject:  Re: Lodestone Avatars on forums

The login issue should be fixed now. Let me know if anyone still can't see the images.

Going to work on caching the images on my server I guess. I'm finding the images load slow on a thread where a few people are using them. Won't be quite as dynamic but still relatively.

Author:  Ketrebu [ Fri Sep 06, 2013 9:29 am ]
Post subject:  Re: Lodestone Avatars on forums

Still can't see them, and I just get an X in a new browser window now. It's returning a successful server header (200) with image/png, but there's no data in the body it looks like?

I tried using an incognito/inprivate window to ensure nothing was cached and no cookies or sessions were interfering, but no difference. I'd recommend you try the same, because despite removing the login requirement, you might still have a session cookie set that is keeping it working for you.

Author:  Vurin [ Fri Sep 06, 2013 10:45 am ]
Post subject:  Re: Lodestone Avatars on forums

I can see it now at least.

Author:  Whisp [ Fri Sep 06, 2013 11:44 am ]
Post subject:  Re: Lodestone Avatars on forums

yea i see it too

Author:  Tanag [ Fri Sep 06, 2013 12:49 pm ]
Post subject:  Re: Lodestone Avatars on forums

I tested on a PC at the office that's never been to my site or the Lodestone. It seems to work fine in Chrome and Firefox for me, but IE is giving an issue. So I'll try and resolve that and get some caching in soon.

Author:  Yarr [ Fri Sep 06, 2013 9:58 pm ]
Post subject:  Re: Lodestone Avatars on forums

EX

Author:  Talisin [ Fri Sep 20, 2013 12:56 am ]
Post subject:  Re: Lodestone Avatars on forums

I'm just getting "The Character ID field can not exceed 20 characters in length." when i Paste my ID in it.

Author:  Tanag [ Fri Sep 20, 2013 9:56 am ]
Post subject:  Re: Lodestone Avatars on forums

Just add the ID at the end, not the whole URL. Sorry if that wasn't clear.

It's broken right now, SE changed the lodestone a bit so I gotta fix it. Probably get it done this weekend.
I'll post when I get a chance to.\

Edit: Fixed. Was easier than I thought.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/