Mod: [item]name[/item] for World of Warcraft

Started by hugocz, November 04, 2005, 12:26:08 AM

Previous topic - Next topic

tattooedpierre

Cheers, downloaded the fix for itemstats; now its working perfectly ;) .. much appreciation from myself and www.theinfernals.org.uk guild!

Omnidragon7

#21
hi there i have tried everything that you have listed but i am still unable to get the Mouse over to ork i also get a debug error on this line
class=\'akznotice\'>Item display is courtesy <a target=\'_new\' href=\'hxxp:wow.allakhazam.com/%5C' [nonactive]>wow.allakhazam.com</a>.</span></div>      </td>   </tr></table>',VAUTO,HAUTO,FULLHTML);" onmouseout="return nd
saying VAUTO was unrecoganised

and DarkCloud14  and chance you could post the work you have done so far?

DarkCloud14

Hmpf I won't release something thats buggy at the moment
but Ok I try to get everything done this week. If not I will release
everything I've done till then but don't worry I'll keep on getting it done then..

Is that Ok for you ?!?

myndcraft

Quote from: DarkCloud14 on December 14, 2005, 05:46:10 PM
Hmpf I won't release something thats buggy at the moment
but Ok I try to get everything done this week. If not I will release
everything I've done till then but don't worry I'll keep on getting it done then..

Is that Ok for you ?!?

YOu would be my personal hero

Omnidragon7

That would be great dude and thnx for teh effort u have put in

DarkCloud14

Ok People pls don't cry I have changed my opinion.
I will release everything on Wednesday 21 December..

I've now more time because I got vacation. That's why I'll use
Monday and Tuesday to test everything and I'll hope I'll find the
worst bugs and make a smf package...

Hope thats OK for you too..


myndcraft

Quote from: DarkCloud14 on December 17, 2005, 10:46:39 PM
Ok People pls don't cry I have changed my opinion.
I will release everything on Wednesday 21 December..

I've now more time because I got vacation. That's why I'll use
Monday and Tuesday to test everything and I'll hope I'll find the
worst bugs and make a smf package...

Hope thats OK for you too..

If it works I'm filling you in for write-in president :D

tattooedpierre

For those that dont want wait...

Instructions

Firstly, go here and get ItemStats addon. If the url doesnt work, google for it or goto curse-gaming to download it.

Next, you'll need to edit two SMF files. In index.template.php of your chosen theme find:


<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

(it basically just after the meta data listings in the file).. before this line, add:


   <link rel="stylesheet" href="http://yourpathhere/smf/itemstats/templates/itemstats.css" type="text/css">
<script type="text/javascript" src="http://yourpathhere/smf/itemstats/overlib/overlib.js">
<!-- overLIB © Erik Bosrup --></script>


... obviously amend the paths so they are pointed to the correct file locations. Next, in smf/sources/display.php, find:


if (!defined('SMF'))
die('Hacking attempt...');


.. after this line add:


include('./itemstats/phpbb_itemstats.php');


Again, ensure this is the correct path. The setup file for itemStats itself contains some data you need to look at too. Looking at my file, I have this:


<?php

// The location and extension type for the Icon store.
define('ICON_STORE_LOCATION''http://www.theinfernals.org.uk/info/dkp/images/icons/');
define('ICON_EXTENSION''.png');

// Database config
define('dbhost''localhost');
define('dbname''theinfe_dkp');
define('dbuser''theinfe_dkp_user');
define('dbpass''xxxxxxxxxx');
define('item_cache_table''item_cache');

?>



The ICON_STORE_LOCATION I have changed simply because I downloaded my own copy of the WoW icons, to spare allakhazam the bandwidth. If you cant do this then dont change it from what it is defaulted to (the allakhazam url).

The other fields are pretty simple. I have eqdkp setup on my site so I've simply told itemstats to add a table into the eqdkp database I already have to store our mouse-over item details. Dead easy. Of course, you'll need to tell itemstats what the table is, the username and password to use it and obviously the database name itself. If you wish you can have a totally seperate database just for itemstats.

Assuming you've done everything all ok, and you've downloaded itemstats fine this should work, all you need to do is post something with [item]Crescent Staff[/item] .. for instance. Make sure the name is EXACT!!! This is very important. As soon as you post it, itemstats will try to pull the data from allakhazam. If you've mis-spelt the item you may have to manually go into your SQL table and delete the entry and try again.

Hope thats helps ;)

DarkCloud14

I hate these site changes...
It seems Allkahazam or the german WoW-Handwerk.de site changed
something in the XML files again cause my code don't work anymore
already working on it damn

tattooedpierre

Quote from: DarkCloud14 on December 22, 2005, 07:58:50 AM
I hate these site changes...
It seems Allkahazam or the german WoW-Handwerk.de site changed
something in the XML files again cause my code don't work anymore
already working on it damn

Seems to be working fine for me.

DarkCloud14

#31
Ok I got everything packaged and uploaded here:
http://mods.simplemachines.org/index.php?mod=247

or if the link doesn't work you can get the packe here:
http://www.darkcloud14.de/itemstats/smf_itemstats_v_1_21.tar.gz

or the zipped version:
http://www.darkcloud14.de/itemstats/smf_itemstats_v_1_21.zip

you can post problems here or better pm me..

have fun..

hugocz

Thanks alot for your work man, going test it out  :)

revgreed

This works perfectly.

If anyone wishes to see a working demo on SMF 1.1 RC 1, then go here:

http://www.sinning.org/forum/index.php?topic=1089.0

hugocz

Also i use standalone itemstats with own mysql databse, for my EQDKP, is  there any way to modify the script so it use the database too like eqdkp  ???

DarkCloud14

#35
Yeah if you wish I can also release a version where you can
set the db etc. I just did that so you can install the package
and start immediately ...

Ah I've an idea how to merge both together

DarkCloud14

#36
Before you install this version please uninstall the old v1.0

Ok you can get the latest version here:
http://mods.simplemachines.org/index.php?mod=247

or here:
http://www.darkcloud14.de/itemstats/smf_itemstats_v_1_21.tar.gz

or the zipped version:
http://www.darkcloud14.de/itemstats/smf_itemstats_v_1_21.zip

----------- Itemstats table -----------
In this version a shared itemstats table is possible again.
To enable it first set $wowshared_itemcache_table to 1 in 'Settings.php'
After that set the needed parameters in <Forum Path>/Sources/itemstats/config.php

You only need this if you want to use a shared itemstats table..


Please make a backup before you do the following steps..

If you already have another itemstats table you must modify it a bit to get it to work.
Add the following fields after the item_name field:
`item_id` varchar(100) default NULL,
`item_source` varchar(5) NOT NULL default '0',
`item_method` varchar(5) NOT NULL default 'find',

and this one after item_html field:
`item_found` varchar(5) NOT NULL default '0',

Then you must set the item_found field to 1 for every found item else you'll delete
every item when using the Delete option in Forum Maintenance

Omnidragon7

hi i have updated to SMF 1.1 RC1 and installed the package and it works fine apart from i get no tooltip and no colouring of the item i can click the tiem and it takes me to the allakhazam webpage at teh right item but still no colour or tooltip ne cahnce of help?


alianos

i tried to install it (the old one, downloaded from the second link) but i get this error

Package Manager - Install Actions
Install Actions for archive smf_itemstats_v_1_1.tar.gz:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I use SMF 1.0.5, I have to upgrade?

Happy holidays everyone.

Advertisement: