Linkage To Armor Outside FFXI

Langues: JP EN DE FR
users online
Forum » Everything Else » Tech Support » Linkage to Armor outside FFXI
Linkage to Armor outside FFXI
 Bismarck.Scuzzelbutt
Offline
Serveur: Bismarck
Game: FFXI
Posts: 89
By Bismarck.Scuzzelbutt 2008-08-20 14:14:55
Link | Citer | R
 
I have read that you can use the code:

<script type="text/javascript" src="http://www.ffxiah.com/widget.php?q=equip&server=Lakshmi&name=Jaerik"></script>

This is nice but when trying to use it inside of my forums (phpbb v3) it doesnt work. I have seen that people figured out a way to do it but I cannot. Any suggestions?
 Lakshmi.Jaerik
Administrator
Offline
Serveur: Lakshmi
Game: FFXI
user: Jaerik
Posts: 3834
By Lakshmi.Jaerik 2008-08-20 17:40:52
Link | Citer | R
 
Your forum likely has Javascript disabled by default in all forum posts for security reasons. I know phpbb v3 doesn't allow it by default - it has to be manually enabled by the administrator.
 Fenrir.Scragg
Administrator
Offline
Serveur: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2008-08-21 00:30:51
Link | Citer | R
 
Best thing to do is have the forum administrator make a custom BBcode.
 Bismarck.Scuzzelbutt
Offline
Serveur: Bismarck
Game: FFXI
Posts: 89
By Bismarck.Scuzzelbutt 2008-08-21 09:41:05
Link | Citer | R
 
Well I am the Admin, lol Any idea on how to do this?
 Bismarck.Scuzzelbutt
Offline
Serveur: Bismarck
Game: FFXI
Posts: 89
By Bismarck.Scuzzelbutt 2008-08-25 09:16:33
Link | Citer | R
 
No one knows ? ; ;
 Fenrir.Scragg
Administrator
Offline
Serveur: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2008-08-26 14:37:28
Link | Citer | R
 
I used to have it on our forum when we ran phpbb but I forgot.... It's some where in the admin panel.

See if you can get a hold of Asura.Yrpaine, check out his forum:

http://www.manifestos-asura.com/viewtopic.php?f=2&t=999
 Midgardsormr.Sammitch
Offline
Serveur: Midgardsormr
Game: FFXI
user: Sammitch
Posts: 1353
By Midgardsormr.Sammitch 2008-08-27 16:02:31
Link | Citer | R
 
In the ACP, under Posting > BBCodes

BBCode Usage:
[armor]{IDENTIFIER1},{IDENTIFIER2}[/armor]

HTML Replacement:
<script type="text/javascript" src="http://www.ffxiah.com/widget.php?q=equip&server={IDENTIFIER1}&name={IDENTIFIER2}"></script>

Or if your forum is a single-server affair like mine...
BBCode Usage:
[armor]{IDENTIFIER1}[/armor]

HTML Replacement:
<script type="text/javascript" src="http://www.ffxiah.com/widget.php?q=equip&server=Midgardsormr&name={IDENTIFIER1}"></script>

Neat stuff, is there a page with all your widgets detailed?

--edit:
I found the entry in the FAQ that seems to say that it's only the armor box so far, and profile possibly, but that's still in development. Can hurt to ask... is there a way yet to control how the profile information displays? ie. make the sections horizontal, as opposed to vertical?

Also, so long as your PHPBB3 style declares it's CSS information in a way that tables inherit some nice styling, I've changed my BBCode slightly to show the player's name. It also floats left and allows text to wrap around the table.

Single ID Flavor
<table style="float: left;"><th>{IDENTIFIER1}</th><tr><td><script type="text/javascript" src="http://www.ffxiah.com/widget.php?q=equip&server=Midgardsormr&name={IDENTIFIER1}"></script></td></tr></table>

Double ID Flavor
<table style="float: left;"><th>{IDENTIFIER2}</th><tr><td><script type="text/javascript" src="http://www.ffxiah.com/widget.php?q=equip&server={IDENTIFIER1}&name={IDENTIFIER2}"></script></td></tr><th>{IDENTIFIER1}</th></table>

--edit²:
Nuts to the security stuff I just cut out, changing to {IDENTIFIER} tags makes it all hunky-dory. I've cut out all the old codes from earlier and replaced them with my current codes, examples of which I've put up here:
http://hokutenknights.savagenoodle.com/forums/viewtopic.php?f=29&p=18807#p18807

The 'block' tag is good to get around the text flow troubles that stem from floating things around all over the place, I've just got a simple replacement with a simple div.

<div style="clear: both; padding: 5px 0px 5px 0px;">{TEXT}</div>
 Bismarck.Scuzzelbutt
Offline
Serveur: Bismarck
Game: FFXI
Posts: 89
By Bismarck.Scuzzelbutt 2008-08-28 08:44:58
Link | Citer | R
 
I got it working but this is the code that I used.

BBCode:
[armor]{IDENTIFIER1}[/armor]

HTML:
<script type="text/javascript" src="http://www.ffxiah.com/widget.php?q=equip&server=Bismarck&name={IDENTIFIER1}"></script>

This code will only work to make the box for the user not for pieces of armor.

Still trying to figure out how to make single pieces of armor.

This is what I have now but it's not working correctly.

BBCode:
[item]{IDENTIFIER1}[/item]

HTML:
<script type="text/javascript" src="http://www.ffxiah.com/item.php?id={IDENTIFIER1}"></script>
 Midgardsormr.Sammitch
Offline
Serveur: Midgardsormr
Game: FFXI
user: Sammitch
Posts: 1353
By Midgardsormr.Sammitch 2008-08-28 19:23:03
Link | Citer | R
 
One quick thought I had regarding the q=profile option and the way it is displayed...

Each section and/or subsection could be assigned a unique ID which would allow those that use the code to optionally style the output with our own CSS rules. I believe this would allow us to change the layout between horizontal and vertical, as well as allowing us to show/hide certain sections if we so wish.

Scuzz: I'm not sure if you're using the script as intended there, I think you're thinking of something more along the lines of the FFXIAHify script.
 Diabolos.Chibixzero
Offline
Serveur: Diabolos
Game: FFXI
Posts: 204
By Diabolos.Chibixzero 2008-09-04 06:26:01
Link | Citer | R
 
Scuzzelbutt said:
I got it working but this is the code that I used.

BBCode:
[armor]{IDENTIFIER1}[/armor]

HTML:
<script type="text/javascript" src="http://www.ffxiah.com/widget.php?q=equip&amp;server=Bismarck&amp;name=%7BIDENTIFIER1%7D"></script>

This code will only work to make the box for the user not for pieces of armor.

Still trying to figure out how to make single pieces of armor.

This is what I have now but it's not working correctly.

BBCode:
[item]{IDENTIFIER1}[/item]

HTML:
<script type="text/javascript" src="http://www.ffxiah.com/item.php?id=%7BIDENTIFIER1%7D"></script>

I think I know why yu cant Do it.
first becouse the js file has being coded for that. Yrpaine from Manifestos Edited the .JS file thats why she can do it.
Log in to post.