Not logged in. · Lost password · Register
Forum: Customising UNB Modifications and plug-ins Plug-in gallery RSS
ABBC for WoW Itemstats
Adds an abbcode to display allakhazam's Itemstats as a mouseover tooltip
Page:  1  2  3  next 
Avatar
Dark Spot in the Corner #1
Member since Nov 2005 · 61 posts · Location: Der wilde Südwesten! =)
Group memberships: Members
Show profile · Link to this post
Subject: ABBC for WoW Itemstats

Plug-in name:           Itemstats
Plug-in version:        0.1 (16.05.2006)
Plug-in description:    Adds a abbc code that generates info popups
Author:                 Martin Gelder
                        darkspotinthecorner at gmail dot com
Compatiblity:           unb.stable.1.6.1.patch.1 (20060219)
Download:               attachement



This is a conversion of the original ItemStats v1.3.0 over to UNB.
A rewrote a bit of the original code and a lot more html.

This plugin adds a custom abbcode that generates a html-tooltip with information fetched from an remote database.

The general features are:
  • Item stats download from Allakhazam, including item set bonuses.
  • Databased cached items to speed up the reload time of items, and makes data easily accessible from multiple sources.
  • Support for local or remote icon cache for items.
  • Quick and easy to follow instructions on how to install the plugin for UNB.
  • Easily change the look of your item display with the included stylesheet.
  • Fairly clean, commented and modular code if you feel like making any changes, or are just curious on how things work.

The usage in UNB:
  • New [item][/item] abbc which creates item colored links to Allakhazam with mouseover tooltip.

Comments and feedback are most welcome... ;-)


Screenshot:

[Image: http://img.photobucket.com/albums/v212/DSitC351979/showcase/unb_itemstat_demo_1.png]


Installation instructions:

1. Unzip and copy files to your UNB folder:

  • abbc_itemstats.de.php to [UNB root]/unb_lib/plugins/
  • abbc_itemstats.en.php to [UNB root]/unb_lib/plugins/
  • abbc_itemstats.php to [UNB root]/unb_lib/plugins/
  • itemstats [DIR] to [UNB root]/unb_lib/plugins/
  • css [DIR] to [UNB root]/unb_lib/designs/[Your Design]/
  • img [DIR] to [UNB root]/unb_lib/designs/[Your Design]/

2. Configuration

This plugin uses a database table to cache the data fetched from the remote database. On first use of the new abbcode the plugin will use the IDatabase class object to create this table.
If you don't like the default table name, you can change it prior to installing the plugin. To do so, open the file itemstats/config.php and change the definition of the constant item_cache_table.

Note: You don't need to prepend the DB-Prefix since the IDatabase object handles this for you.


Upcoming stuff

  • Testing and debugging
  • Beautification and improvement of the generated (X)HTML
  • You tell me... ;-)


Version history:

  • 0.1 (16.05.2006)
    • Intial Version
The author has attached one file to this post:
abbc_itemstats.zip 81.2 kBytes
You have no permission to open this file.
This post was edited 2 times, last on 2006-05-16, 17:33 by Dark Spot in the Corner.
Edit reason: Anhang vergessen... ;-)
Thalen #2
Member since Aug 2006 · 13 posts
Group memberships: Members
Show profile · Link to this post
Hello....

I've installed the Itemstats plugin and it works fine....but i am from germany and there should be a german version of itemstats
           aviable.I tried to install it, but i didn't manage to get it work !
do you know about this version and how i can modify it to work with UNB ???

Blizzard is changing nearly all names to german names, even towns etc....(goldshire is now Goldhain and so on !!!)
so the english version of itemstats is not realy useful...
Thalen #3
Member since Aug 2006 · 13 posts
Group memberships: Members
Show profile · Link to this post
Sorry to disturb again.....

is it possible, that your Itemstats version doesn't work on Firefox..... ????


XML-Verarbeitungsfehler: nicht wohlgeformt
Adresse: http://wow.bundderalten.servegame.org/Forum/foru…?req=ma…
Zeile Nr. 99, Spalte 224:Test&nbsp; -&gt;&nbsp;&nbsp; <span class="item"><a class="forumitemlink" target="_blank" href="/Forum/unb_lib/plugins/itemstats/unb_lib/plugins/itemstats/updateitem.php?item=Wirrholzstab"><span onmouseover="return overlib('<table class=\'invis\'><tr><td valign=\'top\'><img class=\'itemicon\' src=\'http://wow.allakhazam.com/images/icons/INV_Misc_QuestionMark.png\'></td><td><table class=\'invis frame_simple\' style=\'width:100%;\'><tbody><tr class=\'top\'><td class=\'left\'></td><td class=\'center\'></td><td class=\'right\'></td></tr><tr class=\'middle\'><td class=\'left\'></td><td class=\'center wowitem\'>Allakhazam was busy or this item does not exist. Click to search again.</td><td class=\'right\'></td></tr><tr class=\'bottom\'><td class=\'left\'></td><td class=\'center\'></td><td class=\'right\'></td></tr></tbody></table></td></tr></table>',VAUTO,HAUTO,FULLHTML);" onmouseout="return nd();"><span class="greyname">Wirrholzstab</span></span></a></span>&nbsp;&nbsp; &lt;-<br />
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^

This error will only be generated on Firefox & co....

Did i include it wrong... or is it bad coding....??? sorry, but im just a beginner in PHP.... so i am not able to analyse the problem by my self !!

Thanks for your help,

Thalen
Avatar
Dark Spot in the Corner #4
Member since Nov 2005 · 61 posts · Location: Der wilde Südwesten! =)
Group memberships: Members
Show profile · Link to this post
Hallo,

wir können die Diskussion auch gerne in Deutsch führen. ;-)

Ich schau mir dass mal an. Ich hab das Plugin auch im Firefox entwicklet und ich schätze der Fehler liegt an der Datenquelle die wohl nicht-wohlgeformten Code zurück liefert. Entweder du schaltest auf +htmltype im UNB, oder du parst den Code vorher nochmal, was aber recht kompliziert wäre.
Bei welchem Item tritt derr Fehler denn auf?

Was die deutsche Version angeht, so liegt dass an der Datenbankseite die dass Plugin anspricht. Im Augenblick ist dass Allakhazam, ich hab mich nicht schlau gemacht ob dass auch auf deutsch geht, mal schauen. =)
Avatar
Yves (Administrator) #5
User title: UNB developer & webmaster
Member since Jan 2004 · 3814 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Zukünftige UNB-Versionen kommen per Default mit +htmltype, die XML-Fehler nehmen einfach überhand. Trotzdem sollte man so ein Problem genauer analysieren.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Thalen #6
Member since Aug 2006 · 13 posts
Group memberships: Members
Show profile · Link to this post
Dark Spot in the Corner schrieb:
Bei welchem Item tritt derr Fehler denn auf?

Sobald ich in das Thema gehe, in dem der Beitrag mit den eingebetteten Itemstats gegenständen liegt, spukt Firfox und Co.
diese Fehlermeldung aus.
Alle anderen Themen drumm herum funktionieren einwandfrei !!

ich habe übrigens eine Deutsche version zu Itemstats gefunden. aber für ein anderes forum ausgelegt. die Version schimpft sich
dort EQDKP_itemstats_ger-mod_1.33.zip und enthalt eine XML datei namens itemlist.xml. Diese dateitype wird in eurer version
garnicht verwendet, enthalt aber eine riesige liste mit deutschen Item-Bezeichnungen !!

wenn ihr nichts dagegen habt , kann ich euch die zip datei mal ins forum stellen, aber warte natürlich vorher auf euer OK dazu !!

PS : eure Forum software ist wirklich sehr gut... ich bin froh, dass ich mir mit der auswahl des Forumträgers zeit genommen
habe und auf euer Forum stieß !
Avatar
Dark Spot in the Corner #7
Member since Nov 2005 · 61 posts · Location: Der wilde Südwesten! =)
Group memberships: Members
Show profile · Link to this post
Quote by Thalen:
ich habe übrigens eine Deutsche version zu Itemstats gefunden. aber für ein anderes forum ausgelegt. die Version schimpft sich dort EQDKP_itemstats_ger-mod_1.33.zip und enthalt eine XML datei namens itemlist.xml. Diese dateitype wird in eurer version garnicht verwendet, enthalt aber eine riesige liste mit deutschen Item-Bezeichnungen !!

Das liegt wohl daran dass ich eine ältere Version des Itemstats Plugins als Basis für meine UNB-Version genommen habe. Ich habe diese nur mit englischen Itemnamen getestet, da damals eine Übersetzung via XML noch nicht implementiert war. Da ich eine Anpassungen am Kernplugin vorgenommen habe wird dass neue Feature auch nicht ad-hoc zu implementieren sein.

Ich schau mir dass mal an, und update das Plugin demnächst mal. Also behalte diesen Thread im Auge. ;-)


Quote by Thalen:
PS : eure Forum software ist wirklich sehr gut... ich bin froh, dass ich mir mit der auswahl des Forumträgers zeit genommen habe und auf euer Forum stieß!

Nur zur Klarstellung: Dieses Forenwunderwerk ist allein Yves Verdienst, ich hab nur das WoW Itemstats Plugin geschrieben. ;-)
Thalen #8
Member since Aug 2006 · 13 posts
Group memberships: Members
Show profile · Link to this post
Danke.....

 :rolleyes:  :rolleyes:  :rolleyes:
miketilt #9
Member since Jan 2006 · 7 posts
Group memberships: Members
Show profile · Link to this post
I'm having the same problem as above in both firefox and opera.  Working on trying to traslate the above posts but any assistance would be appreciated as this would really help in our WoW forums =D
Avatar
Dark Spot in the Corner #10
Member since Nov 2005 · 61 posts · Location: Der wilde Südwesten! =)
Group memberships: Members
Show profile · Link to this post
Hallo, ich hab mir jetzt mal die neusten Version des ursprünglichen Plugins besorgt und werde das UNB Plugin überarbeiten.


Um die XML Fehler zu unterbinden solltet ihr euer Board wieder auf HTML-Suppe stellen. Dies tut ihr, indem ihr in der forum.php in Zeile 22 (ca.) den $DEBUG auf $DEBUG = '+htmltype'; stellt.


@ miketilt: The error above is related to the data-site that is queried for the item. It seems to return invalid (x)html, and therefore breaking the rendering of the board if it is set to XML Type in a browser that supports this. A quick fix is to edit the forum.php file, go to Line 22 (more or less) and set $DEBUG to $DEBUG = '+htmltype';.
This post was edited 2 times, last on 2006-09-12, 11:09 by Dark Spot in the Corner.
Avatar
Yves (Administrator) #11
User title: UNB developer & webmaster
Member since Jan 2004 · 3814 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I wouldn't recommend to set "+showerrors" on a productive system. This is a real debug setting only. The "+htmltype" part will be UNB default though.

Ich würde nicht "+showerrors" auf einem produktiven System einstellen. Das ist wirklich nur zum Debuggen da. "+htmltype" wird dagegen sowieso UNB-Standard.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Avatar
Dark Spot in the Corner #12
Member since Nov 2005 · 61 posts · Location: Der wilde Südwesten! =)
Group memberships: Members
Show profile · Link to this post
Quote by Yves:
I wouldn't recommend to set "+showerrors" on a productive system. This is a real debug setting only. The "+htmltype" part will be UNB default though.

Ich würde nicht "+showerrors" auf einem produktiven System einstellen. Das ist wirklich nur zum Debuggen da. "+htmltype" wird dagegen sowieso UNB-Standard.

Natürlich, da bin ich das Opfer meiner C&P-Faulheit geworden. ;-)
miketilt #13
Member since Jan 2006 · 7 posts
Group memberships: Members
Show profile · Link to this post
doh - gotta hate being an idiot.  I gathered that from the translation but when I make the change, I fat fingered it and put a + AND a = which doesn't work so well.  I rechecked the file from this post and all is well again.  TY for the assistance.
Avatar
Dark Spot in the Corner #14
Member since Nov 2005 · 61 posts · Location: Der wilde Südwesten! =)
Group memberships: Members
Show profile · Link to this post
So, ich habe mir nun mal die neuste deutsche Version genauer angeschaut und musste mit Schrecken feststellen dass diese noch www.blasc.de referenziert. Also muss ich dass ganze Gerümpels auf das neue www.buffed.de umbiegen.

Ich hab' schon eine erste funktionierende Version, aber da wird noch einiges an Bugfixing und Testphase ins Land gehen.

Aber die neue (deutsche) Version kommt. ;-)
Thalen #15
Member since Aug 2006 · 13 posts
Group memberships: Members
Show profile · Link to this post
sorry, das ich so spät poste....hate viel anderes zu tuen....

Vielen dank , das Ihr euch so um dieses Tool bemüht....

Gibs du mir info, sobald du neue infos diesbezüglich hast, Dark Spot in the Corner ???
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page:  1  2  3  next 
Go to forum
This board is powered by the Unclassified NewsBoard software, 20110527-dev, © 2003-2011 by Yves Goergen
Page created in 245.9 ms (161.6 ms) · 135 database queries in 140 ms
Current time: 2012-02-08, 09:26:35 (UTC +01:00)