Support > English Support

WoW Itemstats problem

(1/1)

sornok:
I posted on SMF forums about this, I got a reply, but I was also redirected here for better support. It took me a couple of days, but here I am. I am gonna quote from the other forum.

Sornok:

--- Quote ---hi

I am making a website about World of Warcraft

http://www.fusion-net.eu/

When I found SMF, I also found simpleportal, and it all came clear that it was a good idea :D

Altho, I have a little problem.

Since the site is abour WoW. I installed a mod called "WoW Itemstats", which is supposed to show items used with a [item][/item] tag with a different color and a tooltip. It works fine with the forum, but it doesn't work with the forum. If you want to check it, visit the above webpage, check at the bottom articles called "Itemstats Test ", you will see the [Stormrage Signet Ring] but no tooltip with it. If you click on the item to see the replies, then it will work fine.

My question is, has anyone tried that? Is there a way to fix it ? Any help would be appreciated. Thank you!
--- End quote ---

SiNaN:

--- Quote ---sornok:

Did you install this mod?

http://custom.simplemachines.org/mods/index.php?mod=247
--- End quote ---


Yes, that's the addon that I have the above problems with.

Nathaniel:
Interesting issue, it took me a little while to work out. ;)

Its not really an error with either mods, its just that the Wow Itemstats mod doesn't load all of its files and setting by default, so they aren't there for the portal.

Anyway, find this code from your 'sources/SPortal.php' file, it should be near the beginning in the 'sportal()' function.

--- Code: --- global $context, $txt, $db_prefix, $user_info, $sourcedir, $scripturl, $article_request, $modSettings;

--- End code ---

Add this code afterwards.

--- Code: --- global $sourcedir, $settings;
########## WoW Itemcache ###########

require_once($sourcedir . '/itemstats/config.php');
// WoW Itemstats
WoWItemstats_init();
$settings['include_itemstats'] = true;
WoWItemstats_include();
--- End code ---

sornok:
Thanks a lot ! It's already up and running :D

Gratz for the good work on simpleportal btw  :thumbsup:

Nathaniel:
Glad that you like it! :)

Marked as solved.

Jeff Lewis:
Grats on Illidan down, my guild just got him for the first time last week as well  >:D

Now on to Sunwell...

Navigation

[0] Message Index

Go to full version