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

Arantor

I just haven't had time to do anything with it, sorry.

Arantor

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.

Arantor

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.

okae

so this mean this mod is working?¿ thx i will check it.

okae

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.

Arantor

Can you show me the post please? I need to see the entire bbcode it uses.

okae

sure look, if i remove the url 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]



Arantor

What, specifically and exactly, doesn't work?

It works as expected for me on 1.1.10 and 2.0 RC2.

okae

#128
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




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]






Arantor

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.

okae

look at my images, why for me dont work? also i test it into two different forums smf 2.0 rc2

Arantor

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?

okae


Arantor

Can you (temporarily) try uninstalling AEVA to see if it's some co-existing issue there?

okae


Arantor

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.

okae

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

Arantor

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.

okae

#138
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.

Arantor

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.

Advertisement: