It is currently Fri Apr 19, 2024 4:29 am View unanswered posts | View active topics |


Board index » Final Fantasy XIV » Final Fantasy XIV Discussion


Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Lodestone Avatars on forums
PostPosted: Thu Sep 05, 2013 2:22 pm 
Easy Prey
Easy Prey
User avatar

Joined: Tue Sep 20, 2005 7:40 am
Posts: 211
Location: Burlington, Ontario
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.

_________________
ImageImageImageImageImageImageImage

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


Top
 Profile  
 
 Post subject: Re: Lodestone Avatars on forums
PostPosted: Thu Sep 05, 2013 2:33 pm 
Incredibly Tough!
Incredibly Tough!
User avatar

Joined: Wed Dec 01, 2004 1:53 pm
Posts: 1076
Location: In the pit with the basket of lotions.
Cool! Thanks!


Top
 Profile  
 
 Post subject: Re: Lodestone Avatars on forums
PostPosted: Thu Sep 05, 2013 9:08 pm 
Meat Miq'abob
Meat Miq'abob
User avatar

Joined: Fri Aug 13, 2010 8:29 pm
Posts: 1461
I dont see your avatar on my screen. it just shows as broken link

_________________
Take my hand, brave adventurer. We face this dungeon together - with FRIENDSHIP!
Image


Top
 Profile  
 
 Post subject: Re: Lodestone Avatars on forums
PostPosted: Thu Sep 05, 2013 9:31 pm 
Crumpet
Crumpet
User avatar

Joined: Thu Jul 01, 2004 5:57 am
Posts: 5363
Location: England
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.


Top
 Profile  
 
 Post subject: Re: Lodestone Avatars on forums
PostPosted: Fri Sep 06, 2013 9:15 am 
Easy Prey
Easy Prey
User avatar

Joined: Tue Sep 20, 2005 7:40 am
Posts: 211
Location: Burlington, Ontario
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.

_________________
ImageImageImageImageImageImageImage

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


Top
 Profile  
 
 Post subject: Re: Lodestone Avatars on forums
PostPosted: Fri Sep 06, 2013 9:29 am 
Crumpet
Crumpet
User avatar

Joined: Thu Jul 01, 2004 5:57 am
Posts: 5363
Location: England
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.


Top
 Profile  
 
 Post subject: Re: Lodestone Avatars on forums
PostPosted: Fri Sep 06, 2013 10:45 am 
Devourer of Souls~
Devourer of Souls~

Joined: Mon May 17, 2004 10:16 pm
Posts: 1428
I can see it now at least.


Top
 Profile  
 
 Post subject: Re: Lodestone Avatars on forums
PostPosted: Fri Sep 06, 2013 11:44 am 
Onionhead
Onionhead
User avatar

Joined: Thu May 20, 2004 6:38 pm
Posts: 7560
Location: Houston
yea i see it too

_________________
RIP Shiloh - I'll never forget ya


Top
 Profile  
 
 Post subject: Re: Lodestone Avatars on forums
PostPosted: Fri Sep 06, 2013 12:49 pm 
Easy Prey
Easy Prey
User avatar

Joined: Tue Sep 20, 2005 7:40 am
Posts: 211
Location: Burlington, Ontario
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.

_________________
ImageImageImageImageImageImageImage

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


Top
 Profile  
 
 Post subject: Re: Lodestone Avatars on forums
PostPosted: Fri Sep 06, 2013 9:58 pm 
Star-Spangled Subligar
Star-Spangled Subligar
User avatar

Joined: Wed Dec 31, 1969 7:00 pm
Posts: 15671
Location: THE DOJO
EX

_________________
COBRA KAI DOJO NEVER DIES
RIP Shiloh


Top
 Profile  
 
 Post subject: Re: Lodestone Avatars on forums
PostPosted: Fri Sep 20, 2013 12:56 am 
I;m in cobr a kuy dogo
I;m in cobr a kuy dogo
User avatar

Joined: Fri May 14, 2004 8:56 am
Posts: 2400
I'm just getting "The Character ID field can not exceed 20 characters in length." when i Paste my ID in it.

_________________
Image
Image
Image


Top
 Profile  
 
 Post subject: Re: Lodestone Avatars on forums
PostPosted: Fri Sep 20, 2013 9:56 am 
Easy Prey
Easy Prey
User avatar

Joined: Tue Sep 20, 2005 7:40 am
Posts: 211
Location: Burlington, Ontario
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.

_________________
ImageImageImageImageImageImageImage

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

Board index » Final Fantasy XIV » Final Fantasy XIV Discussion


Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group