forums.eqdkp.com: Wowhead support - forums.eqdkp.com

Jump to content

  • (36 Pages) +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Wowhead support Rate Topic: ***** 5 Votes

#1 User is offline   fenuz

  • Member
  • Pip
  • Group: Members
  • Posts: 153
  • Joined: 15-May 07
  • Gender:Male
  • Location:Netherlands

Posted 30 May 2007 - 08:11 PM

www.wowtooltips.com

Ive been looking for wowhead support for itemstats ever since allakhazam support stopped working for our guild site. This mod will allow your itemstats to create tooltips using wowhead that look like wowhead tooltips. Currently the mod has the following features:
  • Create tooltips using wowhead as the data source.
  • Tooltips resemble wowhead.com's tooltips.
  • Automatic downloading of icon images when creating tooltips.
Example site:
You can see it in action on our forum and 25 man dkp pages: http://www.sinisters-guild.net and http://www.sinisters-guild.net/dkp25/

Current Version
The latest version of this mod is 0.3.10, this mod is still BETA.

Version History
0.3.10 (19/04/2008)
- updated the wowhead icon location.
0.3.9 (04/09/2007)
- fixed a bug occuring on incorrect item names.
0.3.8 (03/09/2007)
- fixed a bug which incorrectly displayed tooltips which had tooltips in them.
0.3.7 (02/09/2007)
- updated compatibility with the wowhead search engine.
0.3.6 (23/08/2007)
- fixed a bug in the wowhead.css, causing tooltips aligning to the right.
- fixed the wowhead icon bug with the suggestion of mikeycanuck.
0.3.5 (12/06/2007)
- fixed tooltip templates
0.3.4 (11/06/2007)
- improved compatability with other theme's
- added transparent tooltips
- improved vBulletin support
0.3.3 (05/06/2007)
- right aligning fixed (Thanks to Nadas)
0.3.2 (05/06/2007)
- autodownloading files now uses cURL, fopen or fsockopen.
- some css fixes for conflicting theme css files
0.3.1 (05/06/2007)
- some css fixes for conflicting theme css files
0.3.0 (05/06/2007)
- automatic icon downloading
- support for requests by item id
0.2.1 (04/06/2007)
- (hopefully) less conflicting css
0.2.0 (01/06/2007)
- custom popup template
0.1.1 (01/06/2007)
- xml parser bug in PHP4 fixed
0.1.0 (31/05/2007)
- retrieves item info from wowhead

Disclaimer:
This mod is still beta, and could have problems with your specific website. Make sure to make backups before installing just to be sure. Detailed bug reports are also greatly appreciated.

Browser support:
Tested on:
  • Firefox
  • Opera
  • Konqueror
  • Internet Explorer 6
  • Internet Explorer 7
Works as intended on:
  • Firefox
  • Opera
  • Konqueror
  • Internet Explorer 7
No transparency on:
  • Internet Explorer 6
Itemstats Version:
The mod was written for itemstats 1.5.5.

Known bugs/problems:
  • Tooltips aren't transparent in IE6 because IE6 doesnt support transparent png.
  • itemico tags do not show an icon border.
  • Misplaced or oddly looking tooltips due to conflict with other css files.
Reporting bugs:
When reporting bugs (in this topic or by PMing me) please add as much info about your situation as possible. Useful facts for me to know are:
  • What you are using itemstats for (eqdkp/phpBB/wordpress/etc).
  • In what browser the bug occures.
  • PHP version.
  • Webserver type (Apache/IIS/etc) and version.
  • Itemstats language.
Using different info sites:
This mod does not only provide a parser so you can use wowhead as an info site. It also provides tooltips that look like the tooltips wowhead uses. You can decide to not use wowhead as the info site, but still generate tooltips that look like wowhead tooltips.

Using multiple info sites:
While you can generate tooltips that look like wowhead tooltips using other info sites, you cannot use the wowhead info site together with another info site (ie. Thottbot). The reason why the tooltips generated by the wowhead info site don't mix with tooltips generated by other info sites is simple: wowhead uses different filenames for its icons than thottbot and allakhazam. Therefor it will be hard to mix the tooltips using the same icon store location. Until there is an easy way to download the icons wowhead uses (ie. like the allakhazam icon pack) it will be hard to mix info sites.

Languages:
This mod only creates english tooltips.

Installation:
Follow these steps to setup wowhead support for your itemstats installation:
  • Backup your itemstats files.
  • Backup your item_cache table.
  • Copy the files in the itemstats_wowhead/itemstats/ folder to your itemstats root folder.
  • Your config_itemstats.php file has been changed, check if its settings are still correct. Note that wowhead support mod can only create english tooltips.
  • Change your ICON_STORE_LOCATION and ICON_EXTENSION definitions in your itemstats/config.php. The wowhead ICON_STORE_LOCATION url is 'http://www.wowhead.com/images/icons/medium/' and the ICON_EXTENSION is '.jpg'.
  • Make sure wowhead.css is included in all your template headers.
  • If you want old non transparent tooltips in IE6 you need to add the following lines to all your template header files, below the inclusion of the wowhead.css file. If you do not add these lines the tooltip background will be a slightly less dark but non transparent blue in IE6.
    Lines to add:
    <!--[if IE 6]>
    <link rel="stylesheet" href="http://www.yoursite.com/pathtoitemstats/templates/wowhead_ie6.css" type="text/css">
    <![endif]-->

  • If you upgraded an older version of this mod, make sure to run the updateallitems script.
That's it! All your new tooltips will be created using wowhead!

Setting up local hosting of icon images:
This mod can download the wowhead icons to your own host. To setup the wowhead support mod to automaticly download image icons to your own host follow these steps:
  • After installing wowhead support open itemstats/config_wowhead.php, setting the DOWNLOAD_ICONS definition to true will enable automatic downloading of icon images.
  • Set the local path to store your icons with the LOCAL_ICON_STORE_PATH definition. The default path is itemstats/wowhead_icons/, and requires a ICON_STORE_LOCATION that resembles 'http://www.yoursite.com/your/path/to/itemstats/wowhead_icons/'. Remember when changing this setting that LOCAL_ICON_STORE_PATH is not the url to your icon directory, it is the local path to your icon directory (ie I use '/var/www/html/wowhead_icons/').
  • Adjust you ICON_STORE_LOCATION in your itemstats/config.php.
This should enable automatic downloading of icons. Everytime itemstats creates a wowhead item tooltip for which it does not have the icon stored locally yet it will download the icon from wowhead.com to your own site and use that from then on.

Converting old tooltips:
All the item tooltips created before installing the Wowhead Support will still look like they used to. In order to update all your tooltips to use wowhead you need to run the updateallitems script. You can get this script here.

Download:
Latest Version:
- Wowhead Support for Itemstats - Version 0.3.10

Older Versions:
- Wowhead Support for Itemstats - Version 0.3.9
- Wowhead Support for Itemstats - Version 0.3.8
- Wowhead Support for Itemstats - Version 0.3.7
- Wowhead Support for Itemstats - Version 0.3.6
- Wowhead Support for Itemstats - Version 0.3.5
- Wowhead Support for Itemstats - Version 0.3.4
- Wowhead Support for Itemstats - Version 0.3.3
- Wowhead Support for Itemstats - Version 0.3.2
- Wowhead Support for Itemstats - Version 0.3.1
- Wowhead Support for Itemstats - Version 0.3.0

#2 Guest_Livid_*

  • Group: Guests

Posted 31 May 2007 - 12:10 AM

Excellent work !

I had some problems getting this to work on my local test site installation and i had to make 2 small changes which were removing an character on line 28 of updateitemstats.php

while ($row = $db->fetch_record($result)){


to

while ($row = $db->fetch_record($result)){


And i had to change the link in page_header to the wowhead.css instead of the itemstats.css and then it all worked fine, theres a good chance it could be my install that was playing up but if anyone else has problems then it may help you out.

Edit : Just tried this on my live website as opposed to the one hosted on virtual machine and it doesnt seem to want to work and i suspect its down to simplexml requiring php5 to run as my test site locally is on php5 and the live is on 5 and also checked the php.net info about simplexml.

Ah well time to ask if the webhost can move me to php5.

#3 User is offline   FISKER_Q

  • Member
  • Pip
  • Group: Members
  • Posts: 29
  • Joined: 31-March 07

Posted 31 May 2007 - 02:03 AM

View Postfenuz, on May 31 2007, 05:11 AM, said:

Ive been looking for wowhead support for itemstats ever since allakhazam support stopped working for our guild site. So this night i quickly coded wowhead support for itemstats to use on our guilds forum and eqdkp. It seems to work quite well, but as I hardly tested it I cannot promise anything. I did not really make it to release to the public, so documentation is lacking somewhat. Still its quite easy to install.

You can see it in action on our forum and 25 man dkp pages: http://www.sinisters-guild.net and http://www.sinisters-guild.net/dkp25/

I can't really recomment installing it, its just not tested enough. But if you're not afraid to get your hards dirty you might as well try it :)

Itemstats Version
The mod was written for itemstats 1.5.5.

Changes made:
the mod comes with 3 new files:
- includes/wowhead.php, wowhead parser class
- includes/xmltoarray.inc.php, xml helper that converts the xml data to an array.
- templates/wowhead.css, modded itemstats.css file to support wowhead tooltips

changes have been made to:
- itemstats.php, wowhead parser added
- config_itemstats.php, wowhead parser added, wowhead.css selected as stylesheet
Note about the icons:
the icon names wowhead uses are the same as the icons in the allakhazam icon pack, however the names are lowercase. For me it was easiest to just convert all the icons in allakhazam's pack to lowercase.
Notes about languages:
Ive only tested this with itemstats set to english, and I really have no idea how it will work in other languages.
Installation:
1. backup your itemstats files
2. download the wowhead support files, and the modded itemstats files at: http://www.sinisters...wowhead.tar.bz2
3. download the lowercase iconpack at: http://www.sinisters...s/icons.tar.bz2
4. extract the files from the itemstats_wowhead.tar.bz2 archive and copy them into your itemstats folder.
5. extract the icon's somewhere convienent.
6. your config_itemstats.php will be overwritten, you should check if its still correct.
7. change your icon path in your config.php to the path holding the lowercase items.
8. change the url's to the socket images in the wowhead.css file to the correct url. socket images are included in the icons.tar.bz2 archive.

Now you should be using wowhead to create new tooltips, your old tooltips should still be working as well.

Converting old tooltips:
I also wrote a small script to update all the tooltips for the items in our eqdkp system. Its rather crude, but it does its job. You can get it at http://www.sinisters...tats.php.tar.gz
to use it just place the script in your eqdkp root folder and execute it.
I hope someone is able to use this :)



Alright thanks for the work you've put into this, but i got 2 issues with this:
Socket images aren't showing.
Itemtooltips are excessively large.

Example: http://www.developer.......hp?s=&i=561

I modified the css to include my socket images but they don't show up, i got them @ http://www.developer.../bluesocket.png (The same way it's linked in the CSS file)

#4 User is offline   fenuz

  • Member
  • Pip
  • Group: Members
  • Posts: 153
  • Joined: 15-May 07
  • Gender:Male
  • Location:Netherlands

Posted 31 May 2007 - 03:55 AM

View PostFISKER_Q, on May 31 2007, 11:03 AM, said:

Alright thanks for the work you've put into this, but i got 2 issues with this:
Socket images aren't showing.
Itemtooltips are excessively large.

Example: http://www.developer.......hp?s=&i=561

I modified the css to include my socket images but they don't show up, i got them @ http://www.developer.../bluesocket.png (The same way it's linked in the CSS file)


the css file used by the example you posted uses a wowhead.css that has incorrect url's to the sockets still.

#5 User is offline   fenuz

  • Member
  • Pip
  • Group: Members
  • Posts: 153
  • Joined: 15-May 07
  • Gender:Male
  • Location:Netherlands

Posted 31 May 2007 - 04:08 AM

View PostLivid, on May 31 2007, 09:10 AM, said:

Edit : Just tried this on my live website as opposed to the one hosted on virtual machine and it doesnt seem to want to work and i suspect its down to simplexml requiring php5 to run as my test site locally is on php5 and the live is on 5 and also checked the php.net info about simplexml.

Ah well time to ask if the webhost can move me to php5.


The xml functions used should work in php4 afaik. Anyway you could test the XmlToArray class with the script i attached, just upload to your itemstats/includes directory and run it. It should output an array representation of the xml.

Attached File(s)



#6 User is offline   FISKER_Q

  • Member
  • Pip
  • Group: Members
  • Posts: 29
  • Joined: 31-March 07

Posted 31 May 2007 - 04:21 AM

View Postfenuz, on May 31 2007, 12:55 PM, said:

the css file used by the example you posted uses a wowhead.css that has incorrect url's to the sockets still.

Was just checking some stuff, but i'm gonna put it back to normal, btw if you need some good tooltips, try http://www.mmo-champion.com/ you can see the .css files in the code.

Edit: Seems i must've forgot to write the changes on my server, /facepalm well nevermind about the icons then :P

#7 User is offline   fenuz

  • Member
  • Pip
  • Group: Members
  • Posts: 153
  • Joined: 15-May 07
  • Gender:Male
  • Location:Netherlands

Posted 31 May 2007 - 04:24 AM

View PostFISKER_Q, on May 31 2007, 01:21 PM, said:

Was just checking some stuff, but i'm gonna put it back to normal, btw if you need some good tooltips, try http://www.mmo-champion.com/ you can see the .css files in the code.

Edit: Seems i must've forgot to write the changes on my server, /facepalm well nevermind about the icons then :P


yeah the css file needs some work :)

#8 Guest_Livid_*

  • Group: Guests

Posted 31 May 2007 - 04:57 AM

View Postfenuz, on May 31 2007, 01:08 PM, said:

The xml functions used should work in php4 afaik. Anyway you could test the XmlToArray class with the script i attached, just upload to your itemstats/includes directory and run it. It should output an array representation of the xml.Attachment xmltoarray_test.php


Hey there, yea it displays the data from the test file fine on the remote site but even after completely removing itemstats and reinstalling a fresh copy it just doesnt seem to want to work on the actual site on the remote server so i dno if theres some other setting screwing things up.

When i try the updateitemstats.php on the remote site it just spams

Warning: xml_parse() [function.xml-parse]: Unable to call handler startHandler() in /home/mywebsite/public_html/sgpdemo/itemstats/includes/xmltoarray.inc.php on line 31

Warning: xml_parse() [function.xml-parse]: Unable to call handler startHandler() in /home/mywebsite/public_html/sgpdemo/itemstats/includes/xmltoarray.inc.php on line 31


#9 Guest_jbl7979_*

  • Group: Guests

Posted 31 May 2007 - 10:18 AM

http://www.mmo-champ...php?topic=171.0

That has some css info

#10 User is offline   fenuz

  • Member
  • Pip
  • Group: Members
  • Posts: 153
  • Joined: 15-May 07
  • Gender:Male
  • Location:Netherlands

Posted 31 May 2007 - 03:49 PM

View Postjbl7979, on May 31 2007, 07:18 PM, said:



Thats more or less the same css im using now, but with some of the fancy stuff stripped. Its copied from the wowhead.com css files. After I'm pleased with the backend code ill work on making it look better.

#11 Guest_sotoda_*

  • Group: Guests

Posted 31 May 2007 - 03:56 PM

awesome work !

thanks

fix that CSS and you'll be the man

#12 User is offline   fenuz

  • Member
  • Pip
  • Group: Members
  • Posts: 153
  • Joined: 15-May 07
  • Gender:Male
  • Location:Netherlands

Posted 31 May 2007 - 07:21 PM

View PostLivid, on May 31 2007, 01:57 PM, said:

Hey there, yea it displays the data from the test file fine on the remote site but even after completely removing itemstats and reinstalling a fresh copy it just doesnt seem to want to work on the actual site on the remote server so i dno if theres some other setting screwing things up.

When i try the updateitemstats.php on the remote site it just spams

Warning: xml_parse() [function.xml-parse]: Unable to call handler startHandler() in /home/mywebsite/public_html/sgpdemo/itemstats/includes/xmltoarray.inc.php on line 31

Warning: xml_parse() [function.xml-parse]: Unable to call handler startHandler() in /home/mywebsite/public_html/sgpdemo/itemstats/includes/xmltoarray.inc.php on line 31


Did some reading up on your warnings and I think the wowhead.php I attached should fix it. I have yet to set up a PHP4 development environement so I couldnt test it myself.

Attached File(s)



#13 User is offline   FISKER_Q

  • Member
  • Pip
  • Group: Members
  • Posts: 29
  • Joined: 31-March 07

Posted 31 May 2007 - 10:15 PM

View Postfenuz, on Jun 1 2007, 04:21 AM, said:

Did some reading up on your warnings and I think the wowhead.php I attached should fix it. I have yet to set up a PHP4 development environement so I couldnt test it myself.

Looks like your CSS is progressing fine :P just need to fix the border, and perhaps add an itemlink in the tooltip :P

I ripped your new CSS btw, and http://www.developer...witem.php?i=582 looks weird :P

#14 User is offline   fenuz

  • Member
  • Pip
  • Group: Members
  • Posts: 153
  • Joined: 15-May 07
  • Gender:Male
  • Location:Netherlands

Posted 01 June 2007 - 03:48 AM

Yeah, its because I also use a different popup template for the wowhead tooltips.

#15 Guest_Livid_*

  • Group: Guests

Posted 01 June 2007 - 03:53 AM

View Postfenuz, on Jun 1 2007, 04:21 AM, said:

Did some reading up on your warnings and I think the wowhead.php I attached should fix it. I have yet to set up a PHP4 development environement so I couldnt test it myself.


Works perfectly on php4 now - imba work matey !

  • (36 Pages) +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users