Download the product-itemstats.xml, vb_itemstats.php and 'itemstats_1.2.zip'.
Unzip itemstats_1.2.zip to your forum-root (ie http://your.site.tld/forum/itemstats), and follow the basic setup instructions in doc/config.txt.
Copy vb_itemstats.php into your itemstats-folder.
Paste the following two lines into the bottom of your headinclude-template
Lastly, upload the product-itemstats.xml into your product manager, and you should be all set.
Link items with [item]Item name[/item].
The first time the item is loaded might take some time, as it fetches info from allakhazam.com. From then on it will be cached in the database, and should load instantly.
Supporters / CoAuthors
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
In the config.txt file it explains where to where to define your icons:
2. Icon store
You may wish to create a local store of icons on your server. This helps to reduce the bandwidth between your server and allakhazam. I would say it also speeds up your page refreshes, but it's actually the opposite in my case. I still use my own local cache out of respect for Allakhazam's bandwith. The default installation points to allakhazam. If you wish to change this, open 'itemstats/config.php' and look for the following lines:
I followed the OP's instructions and never had any problems. The mod also created the item table for me. I didn't have to set one up in MySql, only define the database. You can spot the create code in the itemcache.php file.
Review your itemstats/config.php file and see if it has a typo for image(s). Hope this helps.
I've tried it again, and now it's working... but the overlib functions don't seem to work right. Stuff doesn't line up well, etc. See screenshot aswell.
I've tried finding the files that create the overlib, but I don't know whice ones to edit.
I've tried it again, and now it's working... but the overlib functions don't seem to work right. Stuff doesn't line up well, etc. See screenshot aswell.
I've tried finding the files that create the overlib, but I don't know whice ones to edit.
Allakhazam made some changes shortly after the OP made this thread. There are a few fixes you need to apply to that should resolve your problem.
Thanks ChiliVB... it's working now, but I still encounter a problem... Check the screenshot. This happens after editting a post already containing an itemstat BB code in it. This is done in WYSIWYG editor btw, and when editing, the original item seems to be opened as a normal link.
Is there a way to fix this? I looked through the posts here, but couldn't find a solution.
Also just noticed that it doesn't yet work with vbadvanced plugin.. it doesnt display the item in the news posts when you place a [item]xxxx[/item] in the news post.
Weird.. didn't change anything to the code a while, tried it again, and now it doesnt work at all anymore
I still cant get my icons to work ..the link is right.. goes to the right spot .. but once again, when I check the source of the page that I have an item link on, its still pointing to the wrong link ..
Thanks ChiliVB... it's working now, but I still encounter a problem... Check the screenshot. This happens after editting a post already containing an itemstat BB code in it. This is done in WYSIWYG editor btw, and when editing, the original item seems to be opened as a normal link.
Is there a way to fix this? I looked through the posts here, but couldn't find a solution.
Also just noticed that it doesn't yet work with vbadvanced plugin.. it doesnt display the item in the news posts when you place a [item]xxxx[/item] in the news post.
Weird.. didn't change anything to the code a while, tried it again, and now it doesnt work at all anymore
Did you empty the trash after applying the fix? see post #40 which has a screenshot on this.
Also some folks have it working with vbadvanced, a few posted here. See post #21 about using absolute paths to resolve that.