News:

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

Main Menu

WoW Itemstats

Started by DarkCloud14, December 26, 2005, 08:58:53 PM

Previous topic - Next topic

harrisonw

@neceros, ssjmarshall
There seems to be a new way that Allakhazam creates it's URLs. Two lines need to be changed in the:
\includes\allakhazam.php file

Line 66 need to be changed from:
//$data = downloadFile('http://wow.allakhazam.com/dev/wow/item-search.pl?itemname=' . str_replace('%20','+',urlencode($name)) . '&showall=1&locale=enUS&search=1');

TO
$data = downloadFile('http://wow.allakhazam.com/search.html?q=' . str_replace('%20','+',urlencode($name)) . '&locale=enUS&source=live');


And line 125 needs to be changed from:
//$xml_data = downloadFile('http://wow.allakhazam.com/dev/wow/item-xml.pl?witem=' . $item_id);

TO
$xml_data = downloadFile('http://wow.allakhazam.com/cluster/item-xml.pl?witem=' . $item_id);

This will allow for ID searches. So you'll need to look up the ID before making a post. I hope that helps!



ssjmarshall

Thanks a ton, its workin with the id's now.  As soon as I look up the Id i'm able to use the name of the item because i think it then stores it in the database, just guessing not very up to speed on code and how things work. 

Thanks again!

Zagdul

I for the life of me cannot get spells to display. I keep getting the "alakazam could not find etc." error.

Items and weapons work fine, just spells do not. It's quite frustrating.

I also would like to use the java script provided by WoWhead and not the overlibmws provided one. I have the public one provided by wowhead in my header and would like to remove the overlibmws connection, how can I do this?

Zagdul

#483
Hello,

I suck with PhP coding and anything having to do with programming. 

Here's what I got.

So far, your mod calls a the internal Javascript from overlib. Now, if you link in the header of your site the Javascript directly from WoWhead:

<!-- WoWHead MouseOver-Tooltip -->
<script src="http://www.wowhead.com/widgets/power.js" type="text/javascript"></script>
<!-- /WoWHead MouseOver-Tooltip -->


The spells work... sorta.

If you were to modify your mod so that it no longer uses overlib and now just implements a custom BBCode, returns a link color in the post for item quality but now uses the wowhead javascript, the spells would be linkable.

http://virtual-progression.com/forum/index.php?topic=666.msg5159#new

That's my test thread.

Now, if I enable the above code (the wowhead .js), the link displays the properly, but I get two hover over windows and the overlib/wow .js don't play nicely together. You lose the onMouseOut (I think that's the proper term) functionality and the tooltip sticks to the cursor... pretty annoying.


EDIT:



If anyone is good with coding, I would like to enable the wowhead java to handle the hover overs, but use the mod to generate the links in threads and do the wowhead lookups.

figmentium

*edit at your own risk!*

I'll do my best to explain what I did to get it working without Allakhazam :)

Edit /Sources/itemstats/itemstats.php

Line #27 looks like this:
$this->info_site = new WoWAllakhazam($method);


Change it to this:

$this->info_site = new WoWHeadDC14($method);

(which was copied from the same wowhead entry a few lines down in the same file)

After a Admin -> Forum Maintenance -> Delete not found WoW Items
... everything worked fine, straight from WoWhead.

I was looking through all the files for something easy to fix, and this seemed the easiest I thought. >.<


As for installation of the current version of ItemStats for SMF 1.1.8, I simply added "1.1.8" after the "1.1.6, 1.1.7" in the "package-info.xml" in both the install/uninstall sections. Re-zipped the file with the change and uploaded it.

I was looking through the site and the creator's site for a WoWhead change or any update and didn't really see anything that I could use so I figured I'd post something :)

bentinma

#485
Hello everyone, I'm new on the board and especially with SMF.

I try to install the mod ItemStat but I get an error that I can not make disappear. You can find the problem hxxp:www.bentinma.com/modules.php?name=Forum&topic=6.new#new [nonactive].

For those who do not trust the link I put here the errors :

"Allakhazam was busy or this item does not exist.  Click to search again" And "',VAUTO,HAUTO,FULLHTML);" onmouseout="return nd(0);">[18348]"

For information: SMF 1.1.8

Thank you for your help.

Sincerely, ben

khampster

I have a website that is using the most current wowitemstats.. I have upgraded my forum to 1.1.8 then soon to find out the addon isnt working properly.

The item links doesnt do the pop up like it normally does.. is there a code to get this fixed?

here is my website..

http://benediction.co.nr

Garou

DarkCloud has been very busy lately but I'm sure he will get the mod updated as soon as he can.

mOOwalker

Hi,

I was wondering if there is any plan updating this mod to handle more "tags" from Wowhead, like Achievements, spells etc.

For example:
hxxp:www.wowhead.com/?achievement=547 [nonactive]
hxxp:www.wowhead.com/?spell=48461 [nonactive]
and other tags.

mOOwalker

Wikzen

im starting to get tired of this :P


can anyone help me with the itemstats?

info:

smf 1.1.8
tp (newest)


Problem:
CANT GET ANYTING WORKING!!

ltdeta

Quote from: mOOwalker on March 13, 2009, 06:03:20 AM
Hi,

I was wondering if there is any plan updating this mod to handle more "tags" from Wowhead, like Achievements, spells etc.

For example:
http://www.wowhead.com/?achievement=547
http://www.wowhead.com/?spell=48461
and other tags.

mOOwalker

also a problem with buffed:
http://wowdata.buffed.de/?s=48461

harisk

#491
Any chance for a version thats compatible with SMF 1.1.8 and uses wowhead instead? =)

edit; made it work with 1.1.8 myself: http://www.simplemachines.org/community/index.php?topic=300712.0 :)

DarkCloud14

Sorry guys I'm busy but I still work on the mod! Currently I'm working on a version for SMF 2.0 RC1 and on support for spells and quests. I try to get a new version with at least SMF 2.0 RC1 support out next weak.

The allakhazam.com search should work again and buffed.de item coloring too. It's possible to upgrade to SMF WoW Itemstats 1.25.5 if you installed the previous version manually by changing the package.xml file.

You can change the default item source to wowhead.com in Admin->Posts and Topics->Post Settings.

nckswt

Quote from: DarkCloud14 on March 24, 2009, 06:00:41 AM
Sorry guys I'm busy but I still work on the mod! Currently I'm working on a version for SMF 2.0 RC1 and on support for spells and quests. I try to get a new version with at least SMF 2.0 RC1 support out next weak.

The hxxp:allakhazam.com [nonactive] search should work again and hxxp:buffed.de [nonactive] item coloring too. It's possible to upgrade to SMF WoW Itemstats 1.25.5 if you installed the previous version manually by changing the package.xml file.

You can change the default item source to hxxp:wowhead.com [nonactive] in Admin->Posts and Topics->Post Settings.

Sounds great! I can't wait for a version that works with SMF 2.0 – this really is the most important mod I've been waiting for. Thanks so much, Darkcloud!

nckswt

Any closer on getting it to work with SMF 2.0, Darkcloud?

Chezenbred

Looking for some help, hopefully.  I've got a website that I inherited and the itemstats is version 1.25.5 and i'm trying to remove it to clean up what appears to be an funky install at best.  It's not listed under Browse Packages, but is listed under installed.  A good portion of the files have been removed from the server.  I'm looking to clean it up completely.  Can anyone provide a file listing for this version, and what modification I need to undo to remove it?  Or is there a way to get this version again and try to re-install it such that I can then uninstall it?

MrDuck

Hello there,
I've been running this mod just fine lately, but since today, no matter what source i use in the wowitem tag [wowitem=2,find]xx[/wowitem], it always uses Allakhazam. The default source is also set to WoWHead. Any idea what's going on?

All changes i did was i removed the .js link in <head> of my template and used wowhead one there, it worked just fine after that, but now it just stopped working, and i don't recall any actions i could have done to cause this.

aandreil

Hi!

Seems the package won't install in 1.1.9
Any news on when this will be rectified?

Thanks! :D

tanyril

OK need some help here... Apostrophe's aren't working as they're supposed to be: Heroes' Cryptstalker Legguards and all items containing a ' don't load. so... made a couple of edits to smf_itemstats.php as follows to no avail:

Found:
// Finally, replace the bbcode with the html.

Placed before:
$message = str_replace("&#39;","'",$message);

Found:
urlencode(urlencode($item_name))

(All instances)


Replaced with:

urlencode(urlencode(str_replace("&#39;","'",$item_name)))

None of that has worked. Anyone have suggestions?


Kunari

So, I had itemstats on my forum and it was working just fine and then recently it stopped working.  I uninstalled itemstats, but now when I try to install it again, I get the following...

1.     Execute Code     add_settings.php     
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Admin.php    Test successful
4.    Execute Modification    ./Sources/ManagePosts.php    Test successful
5.    Execute Modification    ./Sources/Subs.php    Test successful
6.    Execute Modification    ./Themes/default/Admin.template.php    Test successful
7.    Execute Modification    ./SSI.php    Test successful
8.    Execute Modification    ./Sources/Subs.php    Test failed
9.    Execute Modification    ./Themes/default/languages/Admin.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
11.    Execute Modification    ./Themes/default/languages/Admin.german.php    Skipping file
12.    Execute Modification    ./Themes/default/languages/Help.german.php    Skipping file
13.    Execute Modification    ./Themes/default/languages/Admin.german-utf8.php    Skipping file
14.    Execute Modification    ./Themes/default/languages/Help.german-utf8.php    Skipping file

Anyone know how to fix this?

Advertisement: