Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on August 22, 2009, 08:02:12 AM

Title: Aion Syndication
Post by: vbgamer45 on August 22, 2009, 08:02:12 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=2085)

Aion Syndication


Original Author: Arantor
SMF Version: 2.0.X
Mod Version: 2.0

Description:
This mod adds 5 BBcode icons to your posting area, for Aion items, spells, quests, NPCs and recipes, and links to the very swish tooltip generator provided by AionSource.
You can use either ids or names, e.g. [item]100200627[/item] or [item]Azure Dragon's Dirk[/item]. The same works for [spell], [npc], [quest], and [recipe].
There are 4 formats, too. You can simply put in [item]blah[/item], and get a proper text link to the items (or whatever), or you can add =small, =medium or =large to get a small, medium or large text icon, e.g. [item=large]blah[/item]. This is shown in the screenshots. Only item, spell and recipe support this, but that's because AionArmory only supports those options.
The link colours for quest, npc and recipe do not change, either, again that's down to the AionArmory code, and will remain the standard colour of links in your forum.
Permission for using the BBcode icons granted in this forum post from the AionSource admins (http://www.aionsource.com/forum/aionarmory/36627-image-use-question-aionarmory-admins-devs.html#post892528).

ChangeLog:
2.0 - 6 January, 2013
Mod Taken over by Runic
1.1.X support dropped
Updated for 2.0.X

1.2 - 16 November 2009
Bug fix update, hardening against variations in the types of URL gathering.
Fix for RC2 compatibility.

1.1 - 23 August 2009
Bug fix update to fix users who incorrectly posted the names of items/NPCs/quests/spells/recipes.

1.0 - 18 August 2009
First release

Why Not Visit:
http://www.smfhacks.com (http://www.smfhacks.com/)
Title: Re: Aion Syndication
Post by: alex30 on August 22, 2009, 10:47:58 AM
Hmm, very nice.
Title: Re: Aion Syndication
Post by: shadrach on August 22, 2009, 11:45:06 AM
When I installed this, the images did not install. What I would like to know however, is how can I change it so that the default bbcode added is the [item=small] rather than just [item]?

After having just run a test, all this does is add a link, the JS does not pop up with the tooltip either.
Title: Re: Aion Syndication
Post by: Khryptica on August 22, 2009, 12:35:16 PM
Quote from: shadrach on August 22, 2009, 11:45:06 AM
After having just run a test, all this does is add a link, the JS does not pop up with the tooltip either.

I am getting the same as well.  All that shows is a link.  The JS is not working.  I am using SMF 1.1.10 with TP1.0 beta 4 with that makes any difference
Title: Re: Aion Syndication
Post by: Arantor on August 22, 2009, 02:15:58 PM
The reason the JS failed is likely due to you having a custom theme and the edits only being applied to the default theme. If you have anything other than the default theme this is very likely.

Edit your theme's index.template.php and before the first <script> tag, add the following:
<script src="http://www.aionarmory.com/js/extooltips.js" type="text/javascript"></script>


As for making 'small' the default, look in Subs.php for the following:

array(
'tag' => 'item',
'type' => 'unparsed_content',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
$tag[\'content\'] = aion_handler("item", "", $data);
'),
),


There are 5 entries like this, where the aion_handler("item", "", $data); bit has an empty quote in the middle. Add 'small' in there to make it aion_handler("item", "small", $data); and it'll work.

I am not going to repackage this mod to change this, and I can't repackage the mod to change the theme stuff either - what I have is the best way it can be done in 1.1.
Title: Re: Aion Syndication
Post by: Khryptica on August 22, 2009, 03:21:41 PM
Unfortunately by adding the code to the themes index.template.php gave no results.  Even changed everything to the default theme to see if it was working there but still nadda.

Great mod and I would love to see it working. 
Title: Re: Aion Syndication
Post by: Arantor on August 22, 2009, 03:22:53 PM
Can I see your forum and an example of the post in question please?
Title: Re: Aion Syndication
Post by: Khryptica on August 22, 2009, 03:27:10 PM
Here is the link to the post.  Just added it so you can see.   :)

http://spqr.dpguild.net/index.php?board=1.0 (http://spqr.dpguild.net/index.php?board=1.0)


--------Update!
Nevermind!!  haha  It's working great!!  Yeah of course when someone else wants to look it seems everything wants to work now.  Sorry about all that....it's working as intended.   :)
Title: Re: Aion Syndication
Post by: Arantor on August 22, 2009, 03:33:15 PM
Works fine for me.

Due to the way the JS works (and remember, I didn't write that bit), it does sometimes take a little while...
Title: Re: Aion Syndication
Post by: Arantor on August 24, 2009, 11:02:45 PM
QuoteI placed all the code correctly, I'm unsure exactly where to place install11.php. I did a manually install of the code because of the custom theme I am using.
When I post with an item it says the table smf_aion_item doesn't exist, and points to the Subs.php line 3789. I assume this has to do with install11.php, where exactly should i place this file, and do I need to do anything to it otherwise.

You don't add the code anywhere. You run it - it creates several DB tables, which is the source of your error.

Drop the file into the same place SSI.php is, then browse to http://yourforum/install11.php.

I'm curious though, the theme must be kind of special if it completely breaks how bbcode buttons are inserted, and not use Javascript at the same time; this mod should still have been installable via the Package Manager.
Title: Re: Aion Syndication
Post by: Phantom2k5 on August 24, 2009, 11:14:59 PM
Quote from: Arantor on August 24, 2009, 11:02:45 PM
QuoteI placed all the code correctly, I'm unsure exactly where to place install11.php. I did a manually install of the code because of the custom theme I am using.
When I post with an item it says the table smf_aion_item doesn't exist, and points to the Subs.php line 3789. I assume this has to do with install11.php, where exactly should i place this file, and do I need to do anything to it otherwise.

You don't add the code anywhere. You run it - it creates several DB tables, which is the source of your error.

Drop the file into the same place SSI.php is, then browse to url was here. Stupid forum

I'm curious though, the theme must be kind of special if it completely breaks how bbcode buttons are inserted, and not use Javascript at the same time; this mod should still have been installable via the Package Manager.
And I didn't try to place the code anywhere, I wasn't sure where to place the php file. I don't run this server it's a friends, and he's not great with the management. This is our first run with SMF. The theme we are using is DB Theme. And currently only running SMF 1.1.9, he was worried since your versions says 1.1.10.
So when I navigate to that I get this
Incorrect table name ''
File: /home /snooprav /public_html /aion /install11.php
Line: 21

Thanks again for helping.
Title: Re: Aion Syndication
Post by: Arantor on August 25, 2009, 08:30:27 AM
Did the admin attempt to install the mod normally first, out of interest?

From a code perspective the mod would function identically on 1.1.9 and 1.1.10, there were no changes to anything that the mod works with during that upgrade.

Does the admin have access to phpMyAdmin?
Title: Re: Aion Syndication
Post by: Phantom2k5 on August 25, 2009, 03:11:44 PM
No he didn't want to try because of the version difference. Since I do computer programming, mainly JAVA/ASP.NET/COBOL etc. I figured the code insertion would be cake, which it was.
What we are going to try tonight it to update to 1.1.10 can't hurt, and then try the install. I myself have admin rights on the SMF server, and can goto the managment to install addons and updates.
Title: Re: Aion Syndication
Post by: Arantor on August 25, 2009, 03:19:09 PM
You should be able to install it directly onto 1.1.9 without any changes.
Title: Re: Aion Syndication
Post by: Phantom2k5 on August 25, 2009, 08:08:35 PM
Okay, board is updated to 1.1.10, and ran the install from the package, and now everything works beautifully. Thanks for your help.
Title: Re: Aion Syndication
Post by: Arantor on August 25, 2009, 11:58:40 PM
Let me know if you encounter any problems and I'll see what I can do to fix them :)
Title: Re: Aion Syndication
Post by: Nephera on August 26, 2009, 03:34:32 AM
"Thanks :)

Any problems with the mod please do post in its own thread. "

Arantor,

Do you have any clue as to why this mod is completely incompatible with the Dark Leaf theme?  The only way I was able to install it with the theme was to drop the DarkLeaf themepack straight into the "default" folder.  However, in doing so it makes it incompatible with other mods as it screws with the default files that other mods base themselves on.  I would prefer to be able to install this correctly -- and I'm trying to get to the bottom of the problem here.

I am still able to see the buttons and images on the "post thread / reply" screen.  But I am not getting a popup when I hover over the skills or items.
Title: Re: Aion Syndication
Post by: Arantor on August 26, 2009, 06:23:18 AM
The two edits made to template files specifically target index.template.php and Post.template.php - I'm not quite sure what you mean by 'screws with the default files' considering that pretty much every mod does that to some degree.

So, what version of SMF, what other mods?
Title: Re: Aion Syndication
Post by: amlucent on August 26, 2009, 05:13:09 PM
Great mod Arantor!  I had no idea you were into Aion also, very cool.

I have been looking at your code and edits and you have inspired some additions to my gwbbcode mod  ;).  Thanks again.
Title: Re: Aion Syndication
Post by: Arantor on August 26, 2009, 05:27:57 PM
I'd never heard of Aion at all until I saw the Mod Request. It looked like a fun programming project :)

I'm actually far too busy designing my own MMORPG to be able to play any other games at present though...
Title: Re: Aion Syndication
Post by: Yabco on September 05, 2009, 01:09:48 PM
Great mod, but i have one problem with it.

After i add any of those tags to my post i get  for example:

this tag [item]Azure Dragon's Dirk[/item] gives me:

Azure Dragon's Dirk with http://www.aionarmory.com/item.aspx?id=0 as a link. Same thing is with other tags. If i add item id it won't show.

My SMF version: 1.1.10
II've instaled it using Package Manager, only for default theme for now.
Title: Re: Aion Syndication
Post by: Arantor on September 05, 2009, 03:15:02 PM
Do you get any errors in your error log?
Title: Re: Aion Syndication
Post by: Yabco on September 05, 2009, 05:30:28 PM
no error log is clean.
Title: Re: Aion Syndication
Post by: Arantor on September 05, 2009, 07:17:43 PM
Please can I see your forum thread where this is happening?
Title: Re: Aion Syndication
Post by: Yabco on September 06, 2009, 07:20:29 AM
It's only a test board for now but feel free to register and check http://eclipse.org.pl/smff/index.php if you'ill need admin access let me know.
Title: Re: Aion Syndication
Post by: Arantor on September 06, 2009, 07:33:36 AM
The mod didn't install properly on your custom theme. There should have been an edit to index.template.php that would have made this work properly.
Title: Re: Aion Syndication
Post by: Yabco on September 06, 2009, 07:44:00 AM
Quote from: Arantor on September 06, 2009, 07:33:36 AM
The mod didn't install properly on your custom theme. There should have been an edit to index.template.php that would have made this work properly.

I mentioned this in my first post so i repeat now i only installed it for default smf theme Core for now. If i get it working correctly here i will make changes to my main theme.
Title: Re: Aion Syndication
Post by: Arantor on September 06, 2009, 09:14:33 AM
It won't actually work properly until you make the changes to your theme in any case, since the real power is in the Javascript mod to the theme.

Quite why that part is misbehaving I'm not sure though. Do you have access to phpMyAdmin?
Title: Re: Aion Syndication
Post by: Yabco on September 06, 2009, 10:39:06 AM
yes i have.

Funny thing i've installed it locally on my pc and it works only partialy. It doesn't show tooltips, and some tags give link with aspx?id=0.
Title: Re: Aion Syndication
Post by: Arantor on September 06, 2009, 10:47:41 AM
Please can you go into the aion_item table and show me what's in there please?
Title: Re: Aion Syndication
Post by: Yabco on September 06, 2009, 10:54:05 AM
all aion_ tables are empty.
Title: Re: Aion Syndication
Post by: Arantor on September 06, 2009, 10:56:29 AM
Anything in your error log?
Title: Re: Aion Syndication
Post by: Yabco on September 06, 2009, 11:03:16 AM
Forum log is clean. Or maybe you mean some other logs?

btw all my tables are utf8_general_ci and aion_ are latin1_swedish_ci maybe this is the problem?
Title: Re: Aion Syndication
Post by: Arantor on September 06, 2009, 11:06:21 AM
No, I meant the forum log, though the server error log might be useful too.

It shouldn't be an issue; the content going into those tables is strictly latin1 encoded.

I'm just concerned that nothing is going in there - which would explain why you're not seeing the changed id.
Title: Re: Aion Syndication
Post by: Yabco on September 06, 2009, 12:53:50 PM
sever error log is clean.
Title: Re: Aion Syndication
Post by: Arantor on September 06, 2009, 12:55:58 PM
Very odd.

And you made all the edits except the one to index.template.php?
Title: Re: Aion Syndication
Post by: Yabco on September 06, 2009, 01:24:53 PM
I've installed this mod using Package Manager, then after i saw that mod isn't working correctly i've checked all files all modyfications were correct.
Title: Re: Aion Syndication
Post by: Arantor on September 06, 2009, 01:26:44 PM
Very odd, because it's not caching anything locally, which it should be and was specifically written to do so.

Please can you provide a phpinfo file? (What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479))

Also, on a related note, when you install patches, can you do so automatically via the admin panel?
Title: Re: Aion Syndication
Post by: Yabco on September 06, 2009, 05:20:14 PM
Quote from: Arantor on September 06, 2009, 01:26:44 PM
Also, on a related note, when you install patches, can you do so automatically via the admin panel?

I'm not sure if i understand what you mean. I'm a beginner if it comes to SMF... I try to install all mods via Package Manager in admin panel, if it fails i do it manually.


My phpinfo http://eclipse.org.pl/smff/phpinfo.php as requested.
Title: Re: Aion Syndication
Post by: Arantor on September 06, 2009, 05:43:24 PM
Well, what I meant was, come the time to update SMF versions, you get a link in the package manager, and very often it'll let you do that automatically without having to download/upload anything manually. I guess you've got a new forum, so you won't have been through this at all - but I'm wondering if you'd had problems with installing mods through the browser in the Packages area?

I have a feeling it won't work properly because of how the server is configured, though. That said - installing the Javascript line will actually resolve things because it will actually modify the link itself (or it should do; I didn't write the Javascript)
Title: Re: Aion Syndication
Post by: Yabco on September 06, 2009, 06:26:31 PM
I never had any problems installing mods trough the browser in PAckages area. Only unsolved problem that i have with smf was database conversion from phpbb2 to smf.

Before i installed this mod i used only this line:
<script type="text/javascript" src="http://www.aionarmory.com/js/extooltips.js"></script>
as they said on aionarmory. It was pain in the ass to use, but it worked fine.
Title: Re: Aion Syndication
Post by: Arantor on September 06, 2009, 06:33:36 PM
Hmm. My mod uses that very line of Javascript, though the [item] etc tags should be gearing it up for you to make life a little easier.

The thing that concerns me is that the request isn't getting out to the Aion Armory site to gather the data - which is why you get the link issues you do. If you can install via the browser I believe you should be able to use that, though your phpinfo() seems to disagree.

Yours is the first case I've encountered thus far, and I think more investigation is going to be needed.
Title: Re: Aion Syndication
Post by: Yabco on September 06, 2009, 07:15:02 PM
tell me if i need to provide any info.

Title: Re: Aion Syndication
Post by: Arantor on September 06, 2009, 07:30:09 PM
Right now I need to dig into the SMF source and figure out why the browser works but this doesn't. I have a feeling I know why though. Updates as I have them.
Title: Re: Aion Syndication
Post by: rbutters on September 07, 2009, 04:44:06 AM
First, this is a great mod. Kudos to you for putting it together. =)

I am having a slight problem, though, and hope you might be able to help me. I installed fine, and edited my custom theme's (BacknBlack 2.0 RC1.2) template as directed. Pulling from aionarmory works flawlessly. However, I do not see the bbcode images (item, quest, etc). I checked my error log and saw that url_fopen was off on my server. However, I have the ability to change this and I did so, turning url_fopen back on. Now I no longer get error messages in my log, but I still do not see the images in the message editor.

The images uploaded correctly, and I parsed the changes applied by the package manager and everything seems to have been changed correctly.

Do you have any suggestions? And please let me know if there is anything I can provide that would help you troubleshoot this.

Many thanks.

---UPDATE---

Rather than delete this, I thought I would explain the "I'm with stupid" solution, in the event any future users are as bone headed as I was. =) The images upload to the default bbc image directory, and I was using a custom theme. Therefore I copied the images to that theme's bbc folder as well and voila, fixed.

Thanks again for a great mod. My Aion team will get a lot of use out of it.
Title: Re: Aion Syndication
Post by: Arantor on September 07, 2009, 05:01:13 AM
To put the images in the editor, they're currently in Themes/default/images/bbc, and will need to be copied to Themes/yourtheme/images/bbc to show up in the editor.

As for url_fopen being off, that is seemingly the cause of Yabco's issue, but I need to dig into how the package browser works because that actually works.
Title: Re: Aion Syndication
Post by: rbutters on September 07, 2009, 05:04:52 AM
Quote from: Arantor on September 07, 2009, 05:01:13 AM
To put the images in the editor, they're currently in Themes/default/images/bbc, and will need to be copied to Themes/yourtheme/images/bbc to show up in the editor.

As for url_fopen being off, that is seemingly the cause of Yabco's issue, but I need to dig into how the package browser works because that actually works.

You beat me to the post, please see previous. =) And thanks again.
Title: Re: Aion Syndication
Post by: Skuggan on September 16, 2009, 05:57:58 PM

Greetings,

I've installed this mod automatically through my admin panel, and then I edited the index.template.php to add a line there cause I'm not using default theme, I'm using Andromeda, a premium theme from Bloc over at TinyPortal.

The linking works great as long as I use the id-number, but if I try to use an items name it wont show up in that theme, it does show up in the default theme tho, any ideas?

Title: Re: Aion Syndication
Post by: Arantor on September 16, 2009, 06:00:31 PM
There is a Javascript file that needs to be added into your custom theme; if you look in the file: Themes/default/index.template.php, there is a line in <script> that refers to aionarmory.com, which needs to be added to your custom theme's index.template.php file.
Title: Re: Aion Syndication
Post by: Skuggan on September 16, 2009, 06:06:23 PM

I added this line to the index.template.php

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

The problem I have is that I can use [item]123123[/item] but I cant link same item by using [item]items exact name[/item]
Title: Re: Aion Syndication
Post by: Arantor on September 16, 2009, 06:13:48 PM
That is likely related to the above problem too, actually.

Please can I see a phpinfo() file? (What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479.0)) Please PM me the link if you're not comfortable sharing it publicly.
Title: Re: Aion Syndication
Post by: Omniverse on September 22, 2009, 04:03:12 AM
 I plan to implement this on my guild site in the near future.

However... I will need to modifiy it as we are a multigame guild. We already have one that uses [ item ]. So I hope to modify it to be [ aionitem ] or [ aitem ].

I assume it won't be to difficult, but wanted to ask if its ok if I do so, and any tips you might have for me to do it.
I also only want an item bbc button added to the post box, so plan to remove the others (not enough space for every game to have all the tags, people have to manually use ones other than for items).

I will basically go through the code and change all instances of item to aitem for instance.
Title: Re: Aion Syndication
Post by: Arantor on September 22, 2009, 07:01:02 AM
That should about do it; just be careful to rename the image to the same thing.

Let me know if you have problems with it.
Title: Re: Aion Syndication
Post by: qqmoar on September 24, 2009, 03:30:08 AM
Hello!

Firstly thanks for this great mod. Works ok, only thing is i can't get it to work properly using the NPC tags.
I link NPC but the "hover" function doesn't work, nor does it show an icon.

Only a grey link like default smf links on my forum.

If u wanna test: http://www.qqmoar.org/index.php?action=forum

Works great with items tho. :s


Thanks a bunch!
Title: Re: Aion Syndication
Post by: Arantor on September 24, 2009, 03:40:50 AM
No, and I doubt it'll get fixed.

The issue is that the Javascript doesn't handle NPC entries properly - but that's provided by AionArmory itself (which I have to use; I can't modify the file and redistribute it)

I will go back over this again to double check though, as I need to revisit some other aspects of this shortly.
Title: Re: Aion Syndication
Post by: qqmoar on September 24, 2009, 04:04:23 AM
Quote from: Arantor on September 24, 2009, 03:40:50 AM
No, and I doubt it'll get fixed.

The issue is that the Javascript doesn't handle NPC entries properly - but that's provided by AionArmory itself (which I have to use; I can't modify the file and redistribute it)

I will go back over this again to double check though, as I need to revisit some other aspects of this shortly.


Awesome, thanks for your quick reply ;)
Title: Re: Aion Syndication
Post by: Omniverse on September 26, 2009, 09:34:40 AM
Ok, got it installed. Thanks for your work on this mod.

One request. Would it be possible to add the color formating to the link names? So a blue item would show a blue item link for instance. I notice the javascript has this option.

One issue, and possible fix. I notice not all names will work. Any name with an ' in it returns the id 0 link. Perhaps a problem with parsing the ' ?
Also, for some reason, I can't get any quests to work, at least ones I have tried (just a few).
Title: Re: Aion Syndication
Post by: Arantor on September 26, 2009, 09:37:18 AM
I spent a lot of time fighting with the ' the first time around. It worked fine in testing - since I was deliberately using a name with ' in it.

What quests did you try?

As for formatting, if you have the JS added to your theme it should manage that itself anyway. (I note it doesn't for NPCs, but I'm still not sure yet if that's because I've done something wrong or if the JS is wrong)
Title: Re: Aion Syndication
Post by: Omniverse on September 26, 2009, 09:54:47 AM
I tried several with and without a '. Ones with an ' returned the 0 id link. Using the id number for the same items would work fine. Even if I enter a name that has an ' in it, but leave the ' out, still get a id=0.


I tried the 2 Tutty quests. Search for Tutty on the database.

Hmm, My link names get no color formating in posts. Any ideas why (if its sposed to be that way already)?
Title: Re: Aion Syndication
Post by: Arantor on September 26, 2009, 09:57:34 AM
Do you get the popup if you hover over them?
Title: Re: Aion Syndication
Post by: Omniverse on September 26, 2009, 10:06:37 AM
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.
Title: Re: Aion Syndication
Post by: Arantor on September 26, 2009, 10:13:22 AM
Hmmm, guess I need to sit and examine their JS. I don't think quest generates a popup, thinking about it.
Title: Re: Aion Syndication
Post by: Omniverse on September 26, 2009, 10:18:11 AM
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.
Title: Re: Aion Syndication
Post by: Arantor on September 26, 2009, 10:24:30 AM
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.
Title: Re: Aion Syndication
Post by: Omniverse on September 26, 2009, 10:30:52 AM
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. :)
Title: Re: Aion Syndication
Post by: Arantor on September 26, 2009, 10:35:05 AM
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.
Title: Re: Aion Syndication
Post by: Omniverse on September 26, 2009, 10:43:31 AM
Nope, spells and recipes still have a popup... however they get no color formating, only items.
Title: Re: Aion Syndication
Post by: Arantor on September 26, 2009, 10:46:52 AM
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.
Title: Re: Aion Syndication
Post by: Omniverse on September 26, 2009, 10:51:17 AM
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.
Title: Re: Aion Syndication
Post by: nightsdawn on September 27, 2009, 11:09:13 PM
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" 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
Title: Re: Aion Syndication
Post by: Arantor on September 27, 2009, 11:12:41 PM
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.
Title: Re: Aion Syndication
Post by: nightsdawn on September 28, 2009, 09:11:10 AM
I changed the tag to the item=medium and it does show the item just fine but its still not showing the tooltip  :(
Title: Re: Aion Syndication
Post by: Arantor on September 28, 2009, 09:12:12 AM
Then the JS may be broken. I'll have to find out.
Title: Re: Aion Syndication
Post by: nightsdawn on September 28, 2009, 09:16:11 AM
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
Apply Filter: Only show the errors with the same message
2: file_get_contents(http://www.aionarmory.com/ajaxIDLookup.aspx?type=1&id=123123) [<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
Title: Re: Aion Syndication
Post by: Arantor on September 28, 2009, 09:17:02 AM
Hmm, interesting.

Sounds like AionArmory is having trouble with its APIs.
Title: Re: Aion Syndication
Post by: nightsdawn on September 28, 2009, 09:33:13 AM
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
Title: Re: Aion Syndication
Post by: Arantor on September 28, 2009, 09:40:18 AM
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.
Title: Re: Aion Syndication
Post by: nightsdawn on September 29, 2009, 07:59:49 AM
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/

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

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.
Title: Re: Aion Syndication
Post by: Arantor on September 29, 2009, 08:02:09 AM
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.
Title: Re: Aion Syndication
Post by: nightsdawn on September 29, 2009, 08:24:57 AM
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.
Title: Re: Aion Syndication
Post by: nightsdawn on September 29, 2009, 09:00:13 AM
Quote from: Arantor on September 29, 2009, 08:02:09 AM
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.

I just scoured the manual install code and it looks like everything is correct. Looks like your right. It has to be some other mod I have installed thats interfering with it. Below is a list of installed mods. I know you may not be familiar with all of these but do any stand out that might cause some issue?

1.     nneonneo's AJAX ShoutBox      1.21
2.    Custom Profile Field Mod    3.19
3.    SMFShop    3.0
4.    SMF Sitemap
5.    SMF Arcade Shop Mod    1.0.0
6.    Aion Syndication    1.1    
7.    simplemp    3.2    
8.    SMF Arcade    2.0.12    
9.    Auto Embed Video Clips    2.1.5    
10.    SimplePortal Classic    2.0.5

Thanks in advance for any help.
Title: Re: Aion Syndication
Post by: Arantor on September 29, 2009, 10:01:12 AM
Hmm. Be sure to check for Javascript errors when you're checking, as that's likely the fault.
Title: Re: Aion Syndication
Post by: nightsdawn on September 29, 2009, 10:03:34 AM
Just as a follow-up. I installed the same theme I am using on the test forum and applied your mod and it works fine. So its not theme related and is definitely one of my currently installed mads in that list that is causing the issue. No I guess its just a matter of find which and either fixing it somehow or uninstalling it without breaking my forum lol. I would assume others having issues are going to be related to their installed mods as well.
Title: Re: Aion Syndication
Post by: nightsdawn on September 29, 2009, 10:05:21 AM
Quote from: Arantor on September 29, 2009, 10:01:12 AM
Hmm. Be sure to check for Javascript errors when you're checking, as that's likely the fault.

Problem is im not really sure what Im looking for. Im not seeing any errors in the forum log. Where is the best place to start trying to track something like this down? Or should I just start uninstalling them until it works.
Title: Re: Aion Syndication
Post by: Arantor on September 29, 2009, 10:16:32 AM
You won't see anything in the forum error log, but if you look in the browser you should get a warning. If you're using Firefox, it wouldn't hurt to grab the Web Developer toolbar which adds a handy link to the browser error log.
Title: Re: Aion Syndication
Post by: nightsdawn on September 29, 2009, 11:18:43 AM
Alright I got the web developer toolkit for my pc here at work. When I pull up the error console and refresh the page I do get some errors:

Warning: Error in parsing value for 'background'.  Declaration dropped.
Source File: http://www.aionarmory.com/tooltips.css?087
Line: 56

Warning: Error in parsing value for 'background-repeat'.  Declaration dropped.
Source File: http://eleetsguild.com/forum/Themes/WAR_Theme/style.css?fin11
Line: 394

Warning: Error in parsing value for 'background-color'.  Declaration dropped.
Source File: http://eleetsguild.com/forum/Themes/WAR_Theme/style.css?fin11
Line: 566

And I get several of these:
Warning: Error in parsing value for 'color'.  Declaration dropped.
Source File: http://eleetsguild.com/forum/index.php?topic=761.0
Line: 0

... Not really sure what Im looking at here. When I use a php editor the lines its saying that are having a problem are not matching up. I assume its counting actual lines of code and not the nulled "// ..." stuff in the index.template.php but Im not sure.

I realize this really has nothing to do with your mod this is my own forums problem. But Im just hoping its something simple. Seems like Im so close to getting this to work but im beginning to accept this is a bit above my expertise or lack there of lol.
Title: Re: Aion Syndication
Post by: Arantor on September 29, 2009, 11:29:01 AM
It's not counting actual lines as such. What's happening is the AionArmory code is generating CSS (style) definitions that aren't entirely valid CSS, so the browser ignores them. Probably that's part of the cause, but it's going to be somewhere between the AionArmory JS and whatever JS your mods have added.

What mods do you have, out of interest?
Title: Re: Aion Syndication
Post by: nightsdawn on September 29, 2009, 11:36:19 AM
Quote from: Arantor on September 29, 2009, 11:29:01 AM
It's not counting actual lines as such. What's happening is the AionArmory code is generating CSS (style) definitions that aren't entirely valid CSS, so the browser ignores them. Probably that's part of the cause, but it's going to be somewhere between the AionArmory JS and whatever JS your mods have added.

What mods do you have, out of interest?

These are the mods I have currently installed:

1.     nneonneo's AJAX ShoutBox      1.21
2.    Custom Profile Field Mod    3.19
3.    SMFShop    3.0
4.    SMF Sitemap
5.    SMF Arcade Shop Mod    1.0.0
6.    Aion Syndication    1.1   
7.    simplemp    3.2   
8.    SMF Arcade    2.0.12   
9.    Auto Embed Video Clips    2.1.5   
10.    SimplePortal Classic    2.0.5
Title: Re: Aion Syndication
Post by: Arantor on September 29, 2009, 11:50:43 AM
Hmmm. I will see if I can duplicate the problems.

Also, what theme are you using?
Title: Re: Aion Syndication
Post by: nightsdawn on September 29, 2009, 11:55:51 AM
Quote from: Arantor on September 29, 2009, 11:50:43 AM
Hmmm. I will see if I can duplicate the problems.

Also, what theme are you using?

Its an theme written for the older warhammer online game probably not used much...
you can download it from here:
http://warhammer.whoodoo.org/The_Risen_WAR.zip

As a side note though I made a test forum and installed this theme and just added the script code into the index.template.php and it worked just fine.
Title: Re: Aion Syndication
Post by: Arantor on September 29, 2009, 05:14:38 PM
Thanks for that - I'll commence testing and see what I can dig up.
Title: Re: Aion Syndication
Post by: nightsdawn on September 29, 2009, 05:24:29 PM
Quote from: Arantor on September 29, 2009, 05:14:38 PM
Thanks for that - I'll commence testing and see what I can dig up.

Awesome Thanks so much for looking into it!
Title: Re: Aion Syndication
Post by: nightsdawn on October 03, 2009, 02:09:00 PM
Any updates on this? Much appreciated!
Title: Re: Aion Syndication
Post by: Omniverse on October 03, 2009, 03:36:01 PM
I have noticed one issue with my edit. For instance making spell into aionspell. Only the aionitem ones will link to the proper spot on the armory. All other links have the added aion part in the url.

Example, hovering over a spell gives this url:
http://www.aionarmory.com/aionspell.aspx?id=1495 (http://www.aionarmory.com/aionspell.aspx?id=1495)
Instead of:
http://www.aionarmory.com/spell.aspx?id=1495 (http://www.aionarmory.com/spell.aspx?id=1495)

This only happens with ones not aionitem.... Don't understand why the item one is fine but others don't link properly. All the tooltips work fine.
Title: Re: Aion Syndication
Post by: Arantor on October 03, 2009, 04:20:15 PM
@Omniverse: Well, I don't know what edits you've made so I can't possibly comment.

@nightsdawn: I haven't had time to look into this due to other prior commitments and I'm now away and not in front of my PC with my dev tools until 12th Oct, so there won't be an update of any kind before that.
Title: Re: Aion Syndication
Post by: Omniverse on October 05, 2009, 02:54:39 PM
I am attempting to adjust it so I can use [ aionitem ]  vs [ item ]. For all the tags I want to add 'aion' in front of them. I have other game tooltips on my site.... and every author wants to use [ item ], so they always conflict. I end up having to always modify every game tooltip.... (kinda wish authors would realize this and make it so tooltips are more unique to the game they are for...)

I have done this with yours, and the popup works, but it breaks the url link so you can't click it to goto the armory.

All I did was, change every instance of the word 'item' to 'aionitem'. Did this for all relevent words.

Was hoping for some insight as to what I should have changed. Don't think changing them all is the best solution. Perhaps only change the bbc ones? I think that would break relation the the popup though.
Title: Re: Aion Syndication
Post by: Arantor on October 05, 2009, 03:28:52 PM
When I advised that it was several weeks after I'd written it; I can't remember exactly how it works but the more I think about it the more I realise you can't do it like that, because the tag's name itself is pulled into the function.

I'd have to sit and go back over the entire code, but I'm not in front of my dev PC so I can't do that until I get home (next week). I need to refit the mod anyway since there are issues on some configurations.
Title: Re: Aion Syndication
Post by: okae on October 26, 2009, 09:30:28 AM
i install this great mob at my smf 2.0 rc1.2 all works fine except quest and npc buttons, anyone know how i can fix it? those buttons simply dont work.
Title: Re: Aion Syndication
Post by: Arantor on October 26, 2009, 09:38:46 AM
Quote from: okae on October 26, 2009, 09:30:28 AM
i install this great mob at my smf 2.0 rc1.2 all works fine except quest and npc buttons, anyone know how i can fix it? those buttons simply dont work.

Define "don't work". They work for me, though they don't colour code, but I'm pretty sure that's AionArmory's code at fault.
Title: Re: Aion Syndication
Post by: okae on October 26, 2009, 10:37:26 AM
Quote from: Arantor on October 26, 2009, 09:38:46 AM
Quote from: okae on October 26, 2009, 09:30:28 AM
i install this great mob at my smf 2.0 rc1.2 all works fine except quest and npc buttons, anyone know how i can fix it? those buttons simply dont work.
Define "don't work". They work for me, though they don't colour code, but I'm pretty sure that's AionArmory's code at fault.

if i use item, spell  or recipe button the mod works fine, but if i use quest or npc button the mod dont show nothing, so forme ony 3 of the buttons are working, btw is working only with ids dont work with names, this is an example:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.aion-empire.com%2Fdownloads%2Ftest.jpg&hash=8cf60808c129372bb5f359ca9bdcce5f46349cf2)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.aion-empire.com%2Fdownloads%2Ftest2.jpg&hash=f002e568a67e7047be9e50b5ad70f36df9c75810)
Title: Re: Aion Syndication
Post by: Arantor on October 26, 2009, 11:33:41 AM
Can you PM me a temporary account for your forum so I can see for myself what is being generated from what?


/me is wondering if he shouldn't have written this mod. It works to the same specifications as the vB and MyBB mods yet I have more trouble with it than they do :(
Title: Re: Aion Syndication
Post by: okae on October 26, 2009, 04:53:32 PM
if you are asking to me, just tell me what you need, and account at forums with privileges?
Title: Re: Aion Syndication
Post by: Arantor on October 26, 2009, 05:01:23 PM
I just need to be able to see the post and also view the bbcode used in it (in situ, as it were) so an account to view and create posts, not that I would actually create any.
Title: Re: Aion Syndication
Post by: okae on October 26, 2009, 07:50:04 PM
ok i PM you with the url of forum, username and password of a vip account at forum.
Title: Re: Aion Syndication
Post by: Arantor on October 26, 2009, 07:53:08 PM
Thanks - I did see the PM but haven't had chance to look yet.
Title: Re: Aion Syndication
Post by: okae on October 26, 2009, 08:47:17 PM
Quote from: Arantor on October 26, 2009, 07:53:08 PM
Thanks - I did see the PM but haven't had chance to look yet.

nah thanks to you for trying to help me ;)
i hope you can check it and tell me whats wrong.
Title: Re: Aion Syndication
Post by: okae on November 02, 2009, 03:11:01 PM
well i cant made it working 100% yet :(
Title: Re: Aion Syndication
Post by: Arantor on November 02, 2009, 03:14:36 PM
That's because it needs a lot of overhauling which I haven't had time to do yet.
Title: Re: Aion Syndication
Post by: okae on November 02, 2009, 03:16:12 PM
ahh so its not my fault?
Title: Re: Aion Syndication
Post by: Arantor on November 02, 2009, 03:18:17 PM
Not at all. There are at least two parts of it that need an overhaul.
Title: Re: Aion Syndication
Post by: Lockss on November 05, 2009, 10:45:21 AM
Hi !

I just installed this mod and I find it really nice since my forum is a legion forum of Aion ^^

But I wanted to know 2 things.

1 - Is it normal that quests and npcs haven't any icons ? (even with =small, =medium or =large)
I have icons on item, spell and recipe.

2 - Is it normal that the target="_blank" in the link is not working item, spell and recipe ? (since quests and npcs are only links the target work properly but looks like for the others wich have icons, it doesn't take the target)

Another thanks for this usefull mod  ;)
Title: Re: Aion Syndication
Post by: Arantor on November 05, 2009, 10:49:36 AM
1. As far as I know, yes. That's something I need to sit back and investigate in the Javascript produced by AionArmory.

2. Again, that's something I need to sit back and investigate in the Javascript since it appears to be breaking it sometimes.
Title: Re: Aion Syndication
Post by: Lockss on November 05, 2009, 11:16:31 AM
Oh tank you for your really fast answer ^^ I'll follow and pay attention to this mod then ;)
Title: Re: Aion Syndication
Post by: Cadal on November 11, 2009, 12:26:12 AM
FYI no longer installs and errors using compatibility install for SMF2.0 RC2.  :-[
Title: Re: Aion Syndication
Post by: Arantor on November 11, 2009, 06:51:16 AM
Quote from: Cadal on November 11, 2009, 12:26:12 AM
FYI no longer installs and errors using compatibility install for SMF2.0 RC2.  :-[

Probably because 1) it hasn't been updated for 2.0 RC2 and that it even says it hasn't been updated for RC2 and 2) it needs completely rewriting anyway.
Title: Re: Aion Syndication
Post by: Cadal on November 12, 2009, 04:12:10 AM
np, just letting you know, as some of the older mods still work ;)
Title: Re: Aion Syndication
Post by: Arantor on November 12, 2009, 08:24:39 AM
Of the 25 mods I have currently listed... you'd be surprised how much work was involved in making them all work on 2.0 RC2. This definitely won't :(

I will try and find some time to rewrite it and fix it up for 2.0 RC2.
Title: Re: Aion Syndication
Post by: okae on November 12, 2009, 10:27:10 AM
Quote from: Arantor on November 12, 2009, 08:24:39 AM
Of the 25 mods I have currently listed... you'd be surprised how much work was involved in making them all work on 2.0 RC2. This definitely won't :(

I will try and find some time to rewrite it and fix it up for 2.0 RC2.

:( so sad this is a very nice mod
Title: Re: Aion Syndication
Post by: Arantor on November 12, 2009, 10:28:57 AM
It's not bad, but my plan is to fix it up for RC2, work out the existing bugs in it then find someone who wants to take it off my hands that can spend more time looking after it than I can.
Title: Re: Aion Syndication
Post by: Flash619 on November 14, 2009, 10:00:18 PM
Did anything ever happen with this mod?
Title: Re: Aion Syndication
Post by: Arantor on November 14, 2009, 10:10:39 PM
I just haven't had time to do anything with it, sorry.
Title: Re: Aion Syndication
Post by: Arantor on November 15, 2009, 04:54:04 PM
Just as a heads-up, I suspended ALL other mod development so I could finally get on this; I am currently in the midst of rewriting this mod for 2.0 RC2 support, as well as bug fixing. Expect results in the next day or so.
Title: Re: Aion Syndication
Post by: Arantor on November 15, 2009, 07:42:53 PM
Right, I've updated this now.

It seems to work fine on mine. I can't vouch for anyone else's configuration. I also updated the mod description with exactly what AionArmory's integration allows, and I cannot change that, I am not allowed to.
Title: Re: Aion Syndication
Post by: okae on November 16, 2009, 06:56:08 AM
so this mean this mod is working?¿ thx i will check it.
Title: Re: Aion Syndication
Post by: okae on November 16, 2009, 07:47:39 AM
i found one bug, if i insert some url command in the same post with some aion syndication like [item=small]100200627[/item] your mod dont work propertly.
Title: Re: Aion Syndication
Post by: Arantor on November 16, 2009, 10:30:45 AM
Can you show me the post please? I need to see the entire bbcode it uses.
Title: Re: Aion Syndication
Post by: okae on November 16, 2009, 11:10:39 AM
sure look, if i remove the url www.aionar (http://www.aionar)****.com all works fine but if i use this code, your mod dont work propertly:


Id must be collected at [url]www.AionAr****.com[/url]

[item=small]100200627[/item]

[item=small]Dragon Deity General's Dirk[/item]

[spell=small]Flame Bolt I[/spell]

[spell=small]1351[/spell]

[recipe=small]155001640[/recipe]

[recipe=small]Craft: Fu-Rin-Ka-Zan's Spellbook[/recipe]

[quest]2009[/quest]

[quest]A Ceremony in Pandaemonium[/quest]

[npc]210078[/npc]

[npc]Longnosed Snuffler[/npc]


Title: Re: Aion Syndication
Post by: Arantor on November 16, 2009, 11:14:14 AM
What, specifically and exactly, doesn't work?

It works as expected for me on 1.1.10 and 2.0 RC2.
Title: Re: Aion Syndication
Post by: okae on November 16, 2009, 06:17:48 PM
i told you already two times, but let me explain again it:

if in the same post that i use your aion syndication mod i use some url link your mod doesnot work propertly, try to copy paste the code i write and use it into your test forums and you will see...


let me show you with images  an examples:

code1


[item=small]100200627[/item]
[item=small]Dragon Deity General's Dirk[/item]
[spell=small]Flame Bolt I[/spell]
[spell=small]1351[/spell]
[recipe=small]155001640[/recipe]
[recipe=small]Craft: Fu-Rin-Ka-Zan's Spellbook[/recipe]
[quest]2009[/quest]
[quest]A Ceremony in Pandaemonium[/quest]
[npc]210078[/npc]
[npc]Longnosed Snuffler[/npc]


imagen of code1

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg696.imageshack.us%2Fimg696%2F7730%2F51114838.jpg&hash=1a6674f6913bef9827a231add417af7384e103a2)


code2


[url]www.aionarmony.com[/url]
[item=small]100200627[/item]
[item=small]Dragon Deity General's Dirk[/item]
[spell=small]Flame Bolt I[/spell]
[spell=small]1351[/spell]
[recipe=small]155001640[/recipe]
[recipe=small]Craft: Fu-Rin-Ka-Zan's Spellbook[/recipe]
[quest]2009[/quest]
[quest]A Ceremony in Pandaemonium[/quest]
[npc]210078[/npc]
[npc]Longnosed Snuffler[/npc]


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg130.imageshack.us%2Fimg130%2F4498%2F64294038.jpg&hash=878e48da124f58e9c11ac984baafa3a3ccf038a8)


Title: Re: Aion Syndication
Post by: Arantor on November 16, 2009, 06:22:47 PM
That's the bit I don't get. It works fine on all three of my test forums. Thus, what exactly isn't working for you?

(Screenshots attached from 1.1.10 and 2.0 RC2)

As you can see, the main part works, all those links work, as does the Aion Armory link, thus something is different between what I get and what you get.
Title: Re: Aion Syndication
Post by: okae on November 16, 2009, 06:32:54 PM
look at my images, why for me dont work? also i test it into two different forums smf 2.0 rc2
Title: Re: Aion Syndication
Post by: Arantor on November 16, 2009, 06:37:01 PM
I didn't have the test data you used at the time of posting my screenshots.

But I just forcibly cleared any data out (to prove I wasn't using a cache) and used that data, and it still works as intended on both 1.1.10 and 2.0 RC2.

What other mods do you have installed?
Title: Re: Aion Syndication
Post by: okae on November 16, 2009, 06:41:00 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg5.imageshack.us%2Fimg5%2F5317%2F99795826.jpg&hash=53dc9ed9ba2f5fdbcc352c20541193d87643dce2)
Title: Re: Aion Syndication
Post by: Arantor on November 16, 2009, 06:48:20 PM
Can you (temporarily) try uninstalling AEVA to see if it's some co-existing issue there?
Title: Re: Aion Syndication
Post by: okae on November 16, 2009, 07:01:26 PM
still the same
Title: Re: Aion Syndication
Post by: Arantor on November 16, 2009, 07:23:45 PM
And you say it will work properly if the URL tag is removed, thus fixing that one item?

Since the tags never interact I don't see why that should be the case.

Argh, I spent about 8 hours rewriting that damn mod, and it still doesn't work :( Wish I'd never bothered writing it now.
Title: Re: Aion Syndication
Post by: okae on November 16, 2009, 07:35:13 PM
Quote from: Arantor on November 16, 2009, 07:23:45 PM
And you say it will work properly if the URL tag is removed, thus fixing that one item?

Since the tags never interact I don't see why that should be the case.

Argh, I spent about 8 hours rewriting that damn mod, and it still doesn't work :( Wish I'd never bothered writing it now.

:( duno why this dont work, as you can see in the images and my installed mods your mod should work but it does not work
Title: Re: Aion Syndication
Post by: Arantor on November 16, 2009, 07:43:35 PM
The bit I don't get is why it works every time for me.

Hmm, OK, let's try something.

In Subs.php, you'll find this block of code:
function getURL($url) {
$c = false;
$success = false;
$value = '';
if(function_exists('curl_init') && $c = @curl_init()) {
// attempt to use cURL
$options = array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_CONNECTTIMEOUT => 3,
CURLOPT_USERAGENT => 'SMF Aion Syndication',
);
curl_setopt_array($c, $options);
$success = ($value = @curl_exec($c));
curl_close($c);
} else {
// attempt to use SMF own functions
global $sourcedir;
require_once($sourcedir . '/Subs-Package.php');
$success = ($value = fetch_web_data($url));
}

if(!$success) {
// fall back to @file_get_contents
$value = @file_get_contents($url);
}

return $value;
}


Temporarily replace it with:
function getURL($url) {
$c = false;
$success = false;
$value = '';
if(function_exists('curl_init') && $c = @curl_init()) {
// attempt to use cURL
$options = array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_CONNECTTIMEOUT => 3,
CURLOPT_USERAGENT => 'SMF Aion Syndication',
);
curl_setopt_array($c, $options);
$success = ($value = @curl_exec($c));
curl_close($c);
} else {
// attempt to use SMF own functions
global $sourcedir;
require_once($sourcedir . '/Subs-Package.php');
$success = ($value = fetch_web_data($url));
}

if(!$success) {
// fall back to @file_get_contents
$value = @file_get_contents($url);
}
trigger_error('URL requested: ' . $url . "\nReturn value: " . $value);
return $value;
}


This will drop values into the error log that we can look at. If you can do that, then edit then save the post you made, view it then have a look in the error log to see what you get, we might be able to figure out why it isn't working.
Title: Re: Aion Syndication
Post by: okae on November 16, 2009, 07:53:20 PM
i replace subs.php but error log dont show nothing :(

pd: notice that only items writed by name are affected, i mean items writed by id works fine.
Title: Re: Aion Syndication
Post by: Arantor on November 16, 2009, 08:08:33 PM
Curious, very curious.

Do you have access to phpMyAdmin? If so, go in, find the aion_item table, and select EMPTY (definitely NOT the DROP option). It'll ask you if you want to TRUNCATE the table, which we do.

Then try it again. I'm wondering if it's caching something it shouldn't be.
Title: Re: Aion Syndication
Post by: okae on November 16, 2009, 08:14:03 PM
ok  i do it, but is the same  :(
Title: Re: Aion Syndication
Post by: WhiteHorse on November 21, 2009, 10:55:09 AM
I never created a smf mod, so don't really know how to make such a pack...

I discovered that aiondatabase (dot) com has nicer tools than aionsource that you are using right now.

It has the correct game colors when showing the tooltips
aiondatabase (dot) com/syndication/tooltips

and it has 3d Viewer as well
aiondatabase (dot) com/syndication/viewer3d

I would like to know if your code is open source on the sense that i can install it on my forum, and then edit to make use of the aiondatabase instead.

Thank you.
Title: Re: Aion Syndication
Post by: Arantor on November 21, 2009, 12:51:37 PM
You're free to do whatever you want with the code. I only have permission to use AionArmory's data and images in this mod.

(Just don't expect me to support custom modifications of it)
Title: Re: Aion Syndication
Post by: Ayyr on November 29, 2009, 07:40:22 AM
Hi great mod work perfectly.

However i would like to change when you click on the popup link to open in a new window.

At present the links generated for NPC's and Quests open the URL for Aion Armory in a new window. However the links produced with the popups for Items , Recipes and Spells open up in the same window ; is there a way to change them to open in new window as well.

Thx in advance Edd
Title: Re: Aion Syndication
Post by: Arantor on November 29, 2009, 08:42:44 AM
The link is supposed to open in a new window for all 5 but AionArmory's code breaks that on items, recipes and spells. I have no way to change it, sorry.
Title: Re: Aion Syndication
Post by: elianto on December 04, 2009, 05:17:54 AM
hi i have a problem with your mod..  :'(
im administrator on site of aion //www.darkecho.altervista.org
i have installed your plugin ..work all, the icons are in the forum but when i use tag [item][/item] or spell or others the there is a error
Fatal error: Call to undefined function: curl_setopt_array() in /membri/darkecho/Sources/Subs.php on line 3823

i have controlled but all files are ok ..
i use smf 1.1.11
sorry for my bad english..
Title: Re: Aion Syndication
Post by: Arantor on December 04, 2009, 05:28:09 AM
Ideally that means your host should upgrade because they're using a very old version of PHP (older than 5.1.3, which is 3 years old)

In the meantime you can fix it by replacing this code in Subs.php:
$options = array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_CONNECTTIMEOUT => 3,
CURLOPT_USERAGENT => 'SMF Aion Syndication',
);
curl_setopt_array($c, $options);


With:
curl_setopt($c, CURLOPT_URL, $url);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 3);
curl_setopt($c, CURLOPT_USERAGENT, 'SMF Aion Syndication');


I'll probably roll this into a future version as a proper fix though.

(And before anyone calls me out for 'hardcoded string', it's a user agent being sent to servers, meaning that there's absolutely NO point in translating it, since it will be the same in every single language)
Title: Re: Aion Syndication
Post by: elianto on December 04, 2009, 06:22:05 AM
tk for the answer  :)

i have replace the code but dont work :(

Fatal error: Call to undefined function: curl_setopt_array() in /membri/darkecho/Sources/Subs.php on line 3823

the plugin work while in main page on bank legion with this code
'name' => '<a style="color: green;" href="http://www.aionarmory.com/item.aspx?id=100500344">Beast s Jewel</a>', for example with a .php work...when use tags itmes ecc ecc dont work..

anyway tk for help :)
Title: Re: Aion Syndication
Post by: Arantor on December 04, 2009, 07:59:38 AM
You didn't take the curl_setopt_array out to replace it with the other code.
Title: Re: Aion Syndication
Post by: elianto on December 04, 2009, 09:10:50 AM
Quote from: Arantor on December 04, 2009, 07:59:38 AM
You didn't take the curl_setopt_array out to replace it with the other code.

y my wrong,

now work perfectly!!! tk again ..nice plugin :)
Title: Re: Aion Syndication
Post by: forexus on December 14, 2009, 06:35:02 AM
Hey man, I installed this mod on smf 1.1.11. installation works, but then, when I want to make a post and use your codes for example [item]blabla[/item], it wont allow to post. When I click reply I get a white screen and the post isnt submitted. My question now is, are you able to fix this on my forum? Plz let me know.
Title: Re: Aion Syndication
Post by: Arantor on December 14, 2009, 06:53:31 AM
So, what version of the mod did you install? The current one or an older version?

Can you also provide a phpinfo file() ? (What is a phpinfo() file? (http://docs.simplemachines.org/index.php?topic=479.0))
Title: Re: Aion Syndication
Post by: forexus on December 15, 2009, 06:42:54 AM
I have really no idea what version, I just clicked the download link on the smf website:
http://custom.simplemachines.org/mods/index.php?mod=2085



edit:
it says version 1.2


edit:
any idea were to find this phpinfo file, or would an e-mail to my hosting company asking the current php version be enough?
Title: Re: Aion Syndication
Post by: Arantor on December 15, 2009, 06:50:54 AM
Read the link I posted. Explains how to make said file.
Title: Re: Aion Syndication
Post by: forexus on December 15, 2009, 06:54:26 AM
Do I have to install the mod before I upload this file?
Title: Re: Aion Syndication
Post by: Arantor on December 15, 2009, 07:00:16 AM
No. The file is totally independent of the mod. It will tell me whether certain things are enabled, which are needed for this mod to work. Very likely they are not enabled which is why the mod fails as does AEVA (yes, I did see your less than flattering comments)
Title: Re: Aion Syndication
Post by: okae on March 11, 2010, 07:25:48 AM
this mod will be updated for 2.0 rc3?
Title: Re: Aion Syndication
Post by: Arantor on March 11, 2010, 08:16:46 AM
Quote from: okae on March 11, 2010, 07:25:48 AM
this mod will be updated for 2.0 rc3?

/me points to the big 'unmaintained' notice on the mod's page.
Title: Re: Aion Syndication
Post by: okae on March 11, 2010, 08:46:54 AM
so sad for all ppl who are using this mod, maybe you know someone who can do that job.
Title: Re: Aion Syndication
Post by: Arantor on March 11, 2010, 08:47:23 AM
I've been trying to give this mod away for MONTHS. No-one even asked me about it.
Title: Re: Aion Syndication
Post by: okae on March 11, 2010, 08:52:43 AM
im here, and i was using this mod since you release it, now that i want to updated my smf forum i cant use this great mod, very very sad for me, because i really need this mod working.
Title: Re: Aion Syndication
Post by: Arantor on March 11, 2010, 08:55:57 AM
See, what you're missing is the minor detail that I'm REALLY ****ED OFF with a lot of things that happened... you know that my account was requesting deletion, because I was that fed up of how things were going (and that I requested to have my badge and name removed from the SMF credits and team page)?

I'll update it if 1) I find time, 2) I can be bothered, 3) people stop hassling me and trying to guilt me into updating stuff, 4) I put SimpleDesk on hold for a day or so to fix up mods like that.
Title: Re: Aion Syndication
Post by: okae on March 11, 2010, 09:02:23 AM
please dont wrong with me, i was just asking if this mod will be updated for 2.0rc3, nothing more, i dont know whats happend in your life, i was just was asking...

so sorry if i made you feel badbut it was not my intention, as i say i just want to know if this mod will be updated because i really want it.

Thx for this great mod, and for sure fell free to update it if you want.
Title: Re: Aion Syndication
Post by: Arantor on March 11, 2010, 09:04:31 AM
The stuff that happened here in January was what made me so mad.
Title: Re: Aion Syndication
Post by: okae on March 11, 2010, 09:08:56 AM
i hope all your problems become solved and you will have some free time to updated your gread mods.
Title: Re: Aion Syndication
Post by: Arantor on March 11, 2010, 09:11:16 AM
Realistically I'm not expecting to have lots of free time until SimpleDesk 1.0 is published (which is a huge mod and is requiring all my time and energy to develop right now)
Title: Re: Aion Syndication
Post by: blackndblue on March 25, 2010, 10:10:34 PM
hi, i followed every step i could find in this post, but im having problems with putting items in the Signature box ex: [item=small]Rinokero's Spear[/item]   it gives me a link to the armory but says the item cannot be found. When i use the item number there are no problems. Also, when i use it in a regular post there are no problems. Can you provide a solution to this please, as i want to have my members link their equipment in their signature box. Unless you can provide a simpler solution to providing the a pop up box with character information including armor, weapons etc. I play on infinite aion, but im not sure how that information would be referenced for a pop up similar to what you do here. anyways, a solution to the signature issue would be greatly appreciated.
Title: Re: Aion Syndication
Post by: Arantor on March 25, 2010, 10:19:02 PM
Just to add: I never originally wrote it for signatures and implementing it in signatures is slightly odd. Might help if you provide some minor details like the SMF version since that makes a colossal difference in trying to debug stuff...
Title: Re: Aion Syndication
Post by: blackndblue on March 25, 2010, 10:33:12 PM
Powered by SMF 1.1.11. also could you provide the information to the color fix. i appreciate you writing code for this. your the only person who has released free code for aion forums as far as i know. So thank you from all the AION lovers. your amazing.

link to the page 
http://www.teqnique.comuf.com/forum/index.php?topic=2.0
Title: Re: Aion Syndication
Post by: blackndblue on March 25, 2010, 10:50:11 PM
Quote from: blackndblue on March 25, 2010, 10:33:12 PM
Powered by SMF 1.1.11. also could you provide the information to the color fix. i appreciate you writing code for this. your the only person who has released free code for aion forums as far as i know. So thank you from all the AION lovers. your amazing.

link to the page 
http://www.teqnique.comuf.com/forum/index.php?topic=2.0


sorry for the repost, but i thought i should point out that some of the links in the signature box seem to work with [item=small][/item], and a regular item name, but others do not. no idea if its random or what. you can see an example in the link.  for instance the Rinokero's Spear in the signature box is using the item number because thats the only way it shows up, but in the regular post its using the item name, Rinokero's Spear.

THANKS MANG 
:D   

you genius you   ;)

i see the email registration failed. You should be able to post something in your signature because its auto registration. username and pass should work
Title: Re: Aion Syndication
Post by: blackndblue on March 28, 2010, 04:29:33 PM
i dont know what happened but the links are now working with color http://www.teqnique.comuf.com/forum/index.php?topic=3.0

I reinstalled everything including the forum. uploaded files in binary, set my database files etc. 
Title: Re: Aion Syndication
Post by: Apllicmz on December 25, 2011, 11:29:49 AM
When update dont forget portuguese