News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Aion Syndication

Started by vbgamer45, August 22, 2009, 08:02:12 AM

Previous topic - Next topic

Omniverse

#60
For which?

I get no pop up on the quests, but the link and id are fine in the url (so it is returning proper info).

Others I get a popup, unless its returning the id=0 like on the ones with an '.

Edit: Using id number didnt work for quests. They are listed in the DB though...

All pop ups work otherwise. Except for mentioned ' issue. Plus, no color for the links.

Arantor

Hmmm, guess I need to sit and examine their JS. I don't think quest generates a popup, thinking about it.
Holder of controversial views, all of which my own.


Omniverse

Just checked... pop ups don't happen for quests on their site....

Also, for color on links, it says this:


Auto label: If you would like your links to have the item name and rarity color automatically applied for you, simply use the class attribute: "aiondb-item-text".
For example: <a class="aiondb-item-text" href="http://www.aionarmory.com/item.aspx?id=435134">Unknown Item</a> will display Abominable Cruelty


I know for a wow item one I use, it has its own css file to format the colors.

Arantor

Whatever colours were in the stylesheet are overridden by the Javascript. That may load something; I didn't write it, but use the one provided by the AionArmory since it's their API.
Holder of controversial views, all of which my own.


Omniverse

Ok, fixed the colors.

For the subs file, on line 126 for install11.xml:

Change:

  return '<a class="aiondb-' . $linktype . $size . '" href="http://www.aionarmory.com/' . $linktype . '.aspx?id=' . $params['id'] . '" target="_blank">' . $params['name'] . '</a>';

To:

  return '<a class="aiondb-item-text' . $linktype . $size . '" href="http://www.aionarmory.com/' . $linktype . '.aspx?id=' . $params['id'] . '" target="_blank">' . $params['name'] . '</a>';


Now it's just the links with an ' that are an issue. :)

Arantor

Interesting solution. I bet it breaks all non items because $linktype handles that - also includes npc, quest, etc etc and $size covers the -text part.
Holder of controversial views, all of which my own.


Omniverse

Nope, spells and recipes still have a popup... however they get no color formating, only items.

Arantor

Ahhh, so they're doing regexp searching on the link class in the JS. I REALLY need to sit and go through that to understand how it works. I just based my code on the workings (not the actual code, mind) of the vB and MyBB mods.

Revamping the whole mod is on my list of things to do in the next few days, to be honest.
Holder of controversial views, all of which my own.


Omniverse

#68
Excellent. Perhaps you will discover the issue with the ' in them.

Seems they have work to do yet on their script, from my own experiments anyways.

It's working well enough for now. I'll check back in a few days and see how its going. Look forward to your next version, and thanks for your help.

edit:
I did notice I couldn't get the option to add an icon to the link. May have a conflict with your $size since it may also be using that for the size of the icon.

nightsdawn

I am having an issue with the hover tooltip not working. I am using a custom theme (WAR_theme). after a successfull install with no errors I read through here and did as was told by adding the:

<script src="http://www.aionarmory.com/js/extooltips.js [nofollow]" type="text/javascript"></script>

to the theme index.template.php.

The item tag seems to work fine and when clicked goes to the aion armory but still no popup. Is there something I missed here?

Here is a test post with an item:
http://eleetsguild.com/forum/index.php?topic=752.0 [nofollow]

Arantor

You won't get a popup by default. The default is simply text. As per the mod's description page you need to put [item=medium] or similar.
Holder of controversial views, all of which my own.


nightsdawn

I changed the tag to the item=medium and it does show the item just fine but its still not showing the tooltip  :(

Arantor

Then the JS may be broken. I'll have to find out.
Holder of controversial views, all of which my own.


nightsdawn

This was the only error I found in the forum logs that looked like it meant anything:

Apply Filter: Only show the error messages of this URL  http://eleetsguild.com/forum/index.php?type=rss;action=.xml [nofollow]
Apply Filter: Only show the errors with the same message
2: file_get_contents(http://www.aionarmory.com/ajaxIDLookup.aspx?type=1&id=123123 [nofollow]) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: Connection timed out
File: /home/dwight/public_html/eleetsguild/forum/Sources/Subs.php
Line: 3786

Arantor

Hmm, interesting.

Sounds like AionArmory is having trouble with its APIs.
Holder of controversial views, all of which my own.


nightsdawn

So would everyone be having a problem right now or is this just something wrong with my forum. If you need more or other info let me know i can give you admin access also if needed

Arantor

It's not your forum. I suspect a lot of people are having trouble, which is the general issue I'm hearing.

I really need to sit back and dig into this properly.
Holder of controversial views, all of which my own.


nightsdawn

Hello again. I've been keeping track of your project page and from replies here I understand there are issues with your mod. However after doing some looking around on forums of other sites it appears everyone else has your mod working properly other than the known bug for linked npcs and quests. here are two examples where the tooltip is coming up fine:

SMF 2.0
http://www.nonplayercharacters.co.uk/website-and-forums/aion-armoury-syndication/ [nofollow]

SMF 1.1.10
http://www.demise-kaisinel.com/forum/index.php?page=5 [nofollow]

Apologies for pestering you with this. Im just assuming that I've somehow botched the install or there is something simple Im not doing to get it to work in my current theme. The only thing I have done is the generic auto install and just copied in that single line of script code to my themes index. template.php. Just wondering if you or anyone else has anything I can try. Ill be setting up a test forum later today and trying with a fresh smf install and no theme as well.

Arantor

Hmmm, interesting.

I haven't had time to dig into the setup properly yet on this. But I wouldn't be surprised if there is a Javascript error elsewhere on the page that might also have caused this.
Holder of controversial views, all of which my own.


nightsdawn

I just setup a fresh test 1.1.10 forum and applied your mod and the tooltips are working just fine so it is something im noobing up with my theme. Ill try and figure out what I missed thats causing it not to show up on my custom theme.

Advertisement: