SimplePortal

Support => English Support => Topic started by: sornok on September 03, 2008, 04:23:23 AM

Title: WoW Itemstats problem
Post by: sornok on September 03, 2008, 04:23:23 AM
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!

SiNaN:
Quote
sornok:

Did you install this mod?

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


Yes, that's the addon that I have the above problems with.
Title: Re: WoW Itemstats problem
Post by: Nathaniel on September 03, 2008, 04:59:48 AM
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: [Select]
global $context, $txt, $db_prefix, $user_info, $sourcedir, $scripturl, $article_request, $modSettings;

Add this code afterwards.
Code: [Select]
global $sourcedir, $settings;
########## WoW Itemcache ###########

require_once($sourcedir . '/itemstats/config.php');
// WoW Itemstats
WoWItemstats_init();
$settings['include_itemstats'] = true;
WoWItemstats_include();
Title: Re: WoW Itemstats problem
Post by: sornok on September 03, 2008, 05:08:32 AM
Thanks a lot ! It's already up and running :D

Gratz for the good work on simpleportal btw  :thumbsup:
Title: Re: WoW Itemstats problem
Post by: Nathaniel on September 03, 2008, 05:17:33 AM
Glad that you like it! :)

Marked as solved.
Title: Re: WoW Itemstats problem
Post by: Jeff Lewis on September 03, 2008, 08:51:59 AM
Grats on Illidan down, my guild just got him for the first time last week as well  >:D

Now on to Sunwell...
SimplePortal 2.3.8 © 2008-2024, SimplePortal