WoW Itemstats

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

Previous topic - Next topic

lawless314

I'm getting this error being logged in my Forum Error Log from the admin panel (although there is no shown error on the URL).

http://www.thehammerclan.com/forums/index.php?topic=3427.0 [nofollow]
8: Undefined offset: 2
File: /home/casilla/public_html/forums/Sources/itemstats/smf_itemstats.php
Line: 46



lines 37 through 62 of smf_itemstats.php


if (strtoupper($message[1]) == strtoupper('find') || strtoupper($message[1]) == strtoupper('id'))
{
$method = $message[1];

if ($message[2] == '1')
  $source = '1';
else
  $source = '0';
}
elseif (strtoupper($message[2]) == strtoupper('find') || strtoupper($message[2] == 'id'))
{
if ($message[1] == '1')
  $source = '1';
else
  $source = '0';
 
$method = $message[2];
}
else
{
//hmm something went wrong.. use the defaults..
if (!is_numeric($message[0]))
$method = 'find';
else
$method = 'id';
}


http://www.thehammerclan.com/forums/index.php?topic=2776.msg21933 [nofollow]
8: Undefined index: include_itemstats
File: /home/casilla/public_html/forums/Sources/Subs.php
Line: 873


lines 870 through 892 of Subs.php


// Figure out smileys...
parsesmileys($php_parts[$php_i]);
 
    if ($settings['include_itemstats'] == true)
    {
  // Figure out wowitems.....
  parsewowitems($php_parts[$php_i]);
  }

// List items - warning they might disrupt your code...
if (empty($modSettings['disabledBBC']) || preg_match('~[\s,](list|li)[\s,]~', $modSettings['disabledBBC']) == 0)
{
$php_parts[$php_i] = strtr($php_parts[$php_i], $itemcode);

// Now do the [0], which is special and sometimes annoying.
$php_parts[$php_i] = preg_replace('~([ \t>]|&nbsp;)\[0\]~', '$1<li type="circle">', $php_parts[$php_i]);
}
else
$php_parts[$php_i] = str_replace(array_keys($itemcode), '<br />', $php_parts[$php_i]);
}

$parts[$i] = implode('', $php_parts);
}

I do have a modded skin, however, I'm not quite sure what is causing these errors.  While there doesn't seem to be a problem with it - wowitem is working properly, and there's no large error message but I'd rather not have it clogging up my error log.  =/  The URLs in question are just posts/threads where the wowitem tag is being used.

impala68

#141
i cant get this package to install correctly at all

i'm running mysql 5.0.18 and php 5 SMF-1.1rc2

i'm attempting it on a test box so its a completly clean install of smf

basically it uploads the package and then when i attempt to install it
the first page shows the tests ok so i hit the install button and i get a
blank page with the following url http://nwg.newwavegaming.net/index.php?action=packages;sa=install2;package=itemstats.zip [nofollow]

is it because of php5?

i have eqdkp1.3 itemstats running in a diffrent db on a diffrent virtual host on the box no problems

my live smforums are on a diffrent host with mysql 3 and php 4
but i'm afraid to attempt to install this mod on the live forums untill i see it run right on the test box


help pls



DarkCloud14

@impala68 uhm one stupid question but did you ever try to install another package on your test box and did it work??
php5 shouldn't matter I've tried it with php4 and php5, mysql4 and mysql5 and it works fine too.

Can you take a look into the forums error log maybe it logged something..

@lawless314: could it be that you or someone else used the [wowitem] tag wrong?
it looks at the moment to me that someone used it like that: [wowitem=find]some item[/wowitem]
as you can see there's just one parameter (find) but I assume always 2 or none parameter..

Something like that shouldn't work cause in Subs.php I do a check if there are are 2 or none parameter...
but looks like it doesn't work on your forum... Maybe it's something else but I really assume that you've somewhere
a wrong used [wowitem] tag...

impala68

Quote from: DarkCloud14 on July 22, 2006, 01:33:27 PM
@impala68 uhm one stupid question but did you ever try to install another package on your test box and did it work??
php5 shouldn't matter I've tried it with php4 and php5, mysql4 and mysql5 and it works fine too.

Can you take a look into the forums error log maybe it logged something..


the only other package istalled on the test box was the security update which went fine

after fighting with it for a bit i gave up thinking it was a php5 issue and attempted it on my live forums and it went in with out issue (go figure)

either way its working where i need it to work so all is good ty for the reply though

DLD

I have itemstats instaleed and working fine, but I have an issue with it not working on the front page of my site. Inside the forums it works perfect but the front page just treats it like text and does notice the bbc code. All other bbc works fine with the news.

Can you help me figure this out? I've read back and added the java script to the front page of my site but that didnt fix the issue either.

Thanks in advance


DLD

1.1 RC2 and all I am using is the ssi function to add the news board to the front page on my site.

Boworr

#147
I don't seem to be able to install this MOD for my SMF/TinyPortal board. When I try, the CPU on Apache goes to 100% and the SMF logs get filled with so many errors I'm scared to try it again.

Where can I find the manual installation steps to modify the code?

-------- SNIP -----------

OK I followed the processing instructions in the XML file and manually inserted all the pieces of code at the right place. However, I don't get any link displayed when I test it, just the text.

Do I need to manually create the itemstats database too?

Garou

I love this mod however I prefer thottbot over alakazam. I havent installed the original itemstats on my computer but from looking at the zip-file it seems to support thottbot. Is there a way we can get the smf version to support thottbott?

progged

Does anybody know how to get [wowitem] tags to work in articles with TP?

Danaki

Quote from: progged on August 12, 2006, 03:36:56 PM
Does anybody know how to get [wowitem] tags to work in articles with TP?

I am having a similar issue.  I have this:

SMF 1.1 RC2
Tiny Portal  0.86
Theme: WoW-DK (for 1.1 RC2)
WoW-Itemstats 1.24

And when I add the [wowitem] code like [wowitem]Helm of Might[/wowitem] or [wowitem]16866[/wowitem]
all I get is what ever is in between the code tags repeated without a mouse over.

[wowitem]Helm of Might[/wowitem] would only show Helm of Might
[wowitem]16866[/wowitem] would only show 16866

Any thoughts?

Garou

It sounds to me like it didnt install properly. Read the files named package_info.xml, wowitemstats-install_1_1_rc.xml, and install_1_1_rc-eng.xml. Compare the changes to your actual files. If any thing is missing then edit it accordingly by hand.


Danaki

No go.

Still same issue but I noticed that the files Garou mentioned did not update in the Themes directory I use.  It only altered the default Theme.  So I gues sI'll have to go back and manually edit the files for the Theme I use.

Garou

Yeah I should have mentioned that. LOL

starrbuck

I've had a request for a wowitem BBC button in the post reply screen.  Meaning, they want a button that you can press that will insert [wowitem][/wowitem] in the message without having to type it.  Has anyone implemented something like this yet?

DarkCloud14

@starrbuck:
dreadk created such a mod but it'll also be in the next version of smf itemstats.
http://www.therisenguild.net/index.php?action=tpmod;dl=item2
That's the link where you can get dreadks mod. Ok at the moment there site is down but
maybe it'll be online again maybe sooner than the new smf itemstats version.

I'm on vacation at the moment and don't work very often on the new version..

dreadk

Site is back up. Was getting TP to work with RC3 :)

So go ahead and download mod for BBC tag

Danaki

Quote from: dreadk on August 22, 2006, 08:28:11 AM
Was getting TP to work with RC3 :)

Did you?  Please tell how :) heheh

CrystalTears

I hate that I found this mod AFTER I installed 1.1 RC3. Are there plans to update the mod? I would REALLY love to use it. I think my guild would kiss me if they saw it. :D

Advertisement: