vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - GItemStats WoWHead Support (https://vborg.vbsupport.ru/showthread.php?t=182100)

tuaguild 06-09-2008 10:00 PM

GItemStats WoWHead Support
 
gItemStats is a modification for vBulletin which allows you to display popup World of Warcraft item information on your fourms. This is an Update on Gryphon's Code which adds WoWHead Support. Please Follow All Instructions in the rar/zip file. Also adds support for automatic icon downloading if you follow the included instrutions or refer to http://forums.eqdkp.com/index.php?showtopic=9342 for instrutions on using automatic download support.

If you use this mod, please Mark as Installed, and if you really enjoy this mod, please Nominate for MOTM, and if you really really enjoy this mod, feel free to Support Developer! Thank you!

Support

__________________________________________________ _____________________________________

I use my released mods daily, if I find an issue with them or add features for myself I will release updates. If there are significant bugs or simple feature requests I will do my best to release fixes. Some of my mods rely on fetching data from 3rd party websites, due to the unreliable results, my mods will require users to troubleshoot for themselves if they find the addon is not working for them specifically. I am offering my personal mods that work ok for me for you to use, I am sorry I do not have time to troubleshoot many user specific issues. Thank you for your understanding.

Features
__________________________________________________ _____________________________________
  • Includes Itemstats v1.5.5
  • Requires some file edits, config done by vBulletin options
  • WoWHead Support WILL NOT PARSE ALAKAHZHAM
  • Fixed Problem with WYSIWYG post Editor

Installation
__________________________________________________ _____________________________________
  1. Download the latest version and upload all files.
  2. Install the product.
  3. That is all, instruct people to use [item]Item Name[/item].

Changes

__________________________________________________ _____________________________________

v1.09 - Eliminated need for class_bbcode_alt.php while still making WYSIWYG edit compatible.

v1.08 - Eliminated need for class_bbcode.php and vbulletin_config_itemstats.php files to be included with package

v1.07 - Fixed Item Images not showing up and set up automatic downloading of icons upon product install

v1.06 - Added button to WYSIWYG and normal editor

v1.05 - Fixed WYSIWYG post editor problem. Added WoWHead support.

v1.04 - Install product with overwrite enabled
Maintenance release for vBulletin 3.7

v1.03 - Install product with overwrite enabled, upload functions_gitemstats.php
Update for Arcade compatibility.

v1.02 - Install product with overwrite enabled
Update to prevent errors if files are removed before product is uninstalled.

v1.01 - Install product with overwrite enabled and then upload includes/functions_gitemstats.php
Changed things around a bit to ensure settings work.

v1.00 - Upload all files import product.
Initial Release

Copyright
__________________________________________________ _____________________________________
Original Core Product Copyright ? Ryan Snook (www.gryphonllc.com)
Itemstats Copyright ? Yahourt (itemstats.free.fr)
WoWHead Support Added to GItemStats by TUAGuild
WoWhead Support Code By Fenuz

tuaguild 06-10-2008 04:39 PM

Any questions about gitemstats come here. and ask me. Also Will Work on a version that uses MMODB support. It will be posted on a different thread.

KURTZ 06-10-2008 05:23 PM

what are the differences between your and THIS hack?

Gryphon 06-10-2008 05:33 PM

Quote:

Originally Posted by KURTZ (Post 1546002)
what are the differences between your and THIS hack?

Different author, different code. Does there need to be any more of a difference?

KURTZ 06-10-2008 05:38 PM

Quote:

Originally Posted by Gryphon (Post 1546008)
Different author, different code.

OK, but these hacks do the same things ... that's i'm wondering ... ;)

tuaguild 06-10-2008 05:41 PM

They do the same thing but the tooltip popup is different and slightly transparent and also it parses a differant site for item cacheing plus it is easier to use with more features
Both parse wowhead but instead of parsing every time a page loads it saves the item info to the db and loads that item from there then on

KURTZ 06-10-2008 05:45 PM

Quote:

Originally Posted by tuaguild (Post 1546014)
They do the same thing but the tooltip popup is different and slightly transparent and also it parses a differant site for item cacheing

OK thx, however i just tested yours, and i've found a little issue ... a missing image in the tool tip ... check the shot attached ... :)

PS. the other creates a new button into the editor ... can you provide us the same thing? :)

tuaguild 06-10-2008 05:48 PM

ok let me look into the code and i will post an update
Yes i gotta look at the code and i will add a button also the pictures not showing up go to your vb options and make sure the images are coming from wowhead.com if it doesnt work i will change the code to use an icon pack i provide with the product.

KURTZ 06-10-2008 05:56 PM

thx mate ... also can you provide something for the editor? (i mean a button)

tuaguild 06-10-2008 06:06 PM

working on that this is my first vb product so i am not really sure how to add a button to the WYSIWYG editor cause i havent ever done it i will do some research and get it done for you guys
Also if it says in vboptions it is getting the pics from wowhead and it still isnt working try reuploading all the files and reinstalling the product that is sometimes caused by ftp depreciation

tuaguild 06-10-2008 07:43 PM

fixed problem with icon images not showing up by enableing auto downloading of icons and using the cache set up on your server. Also Added a button to the editor toolbar you must change the permissions for itemstats/wowhead_icons/ to chmod 777 so it will save the icons to the server

sweede 06-10-2008 09:15 PM

While this does basicly nothing that different (except add a lot of additional files + waste to your vbulletin directory) , why are you replacing the default class_bbcode.php and class_bbcode_alt.php files ? That's just a bad idea to begin with.

Besides after looking through the code, your vbulletin_config.php file adds a define for the path to the itemstats folder (which should be in the init_start hook), and your other include , the vbulletin_itemstats.php file is completly empty (0-byte file).

Anyways, for the question above as to what the difference between gItemStats and my product?

Using wowheads powered by javascript does not add additional code to your site. the ItemStats mod adds a table to each for each item link that is created embeded into the item's A HREF tag. If you have a rather large item list (such as say your guild bank listing or even your own characters listing), you could increase the size of your page download by quite a bit.

Also, editing a post with an item in it using the WYSIWYG editor clobbers the item link.

tuaguild 06-10-2008 09:21 PM

if you use the provided class_bbcode.php and class_bbcode_alt.php it doesnt using those files fixes the editor problem with gitemstats and i prefer my code and the differance in speed is negligable plus i am more for guild sites that do not use a guild bank on the site plus yours has to use an outside js in order to show the tooltip mine is internal and if you require a large item cache it is much faster to use your own database for the files than to rely on wowhead every time it parses also i am working on an integration of wowroster from wowroster.net with vbulletin and that requires the original itemstats code

tuaguild 06-10-2008 10:30 PM

after looking into sweede's post I eliminated need for the vbulletin_config_itemstats.php and class_bbcode.php files. I also want to explain how i fixed the WYSIWYG editor problem. If you open your class_bbcode_alt.php file you find a line
Code:

class vB_BbCodeParser_Wysiwyg extends vB_BbCodeParser
{
        /**
        * List of tags the WYSIWYG BB code parser should not parse.
        *
        * @var        array
        */
        var $unparsed_tags = array(
                'thread',
                'post',
                'quote',
                'highlight',
                'noparse',

after the var $unparsed_tags = array( line you just have to add
'item', right above thread. so it should look like this
Code:

class vB_BbCodeParser_Wysiwyg extends vB_BbCodeParser
{
        /**
        * List of tags the WYSIWYG BB code parser should not parse.
        *
        * @var        array
        */
        var $unparsed_tags = array(
                'item',
                'thread',
                'post',
                'quote',
                'highlight',
                'noparse',


sweede 06-11-2008 12:38 AM

nothing against any user, but eliminate the need to edit files.

look at my products wysiwyg_start hook for the right way to fix wysiwyg support

tuaguild 06-11-2008 12:48 AM

so basically add the edit to the product which in turn makes it in the templates instead of having it for people to manually edit

KURTZ 06-11-2008 05:32 AM

i'm interested in this hack, but i think it needs more development ... :)

sweede 06-11-2008 11:10 AM

Quote:

Originally Posted by tuaguild (Post 1546162)
if you use the provided class_bbcode.php and class_bbcode_alt.php it doesnt using those files fixes the editor problem with gitemstats and i prefer my code and the differance in speed is negligable plus i am more for guild sites that do not use a guild bank on the site plus yours has to use an outside js in order to show the tooltip mine is internal and if you require a large item cache it is much faster to use your own database for the files than to rely on wowhead every time it parses also i am working on an integration of wowroster from wowroster.net with vbulletin and that requires the original itemstats code

Nothing really requires the itemstats code. ItemStats was written because wowhead.com didnt exist. Intergration into any code base that said it needs ItemStats can be fixed by creating a function called ItemStats() that accepts a single input (the item string including the [item] bbcode) and returns a wowhead URL or whatever. (hey.. that gives me an idea )

WowRoster is obsoleted with the Warcraft Armory and gryphons gWowRoster product and it is almost always in best practices to use one, centralized source for data than copying it all over, even if it is a cache (how do you update the cache?)


Not trying to say no no no ! to you about what your trying to do, only that before you go and do it, save yourself the time and energy and see if these things already exist first so you don't repeat the work over and over.

Before i put together the wowhead item code product, i had written an entirely new ItemStats type product that worked with vBulletin used wowhead's XML files and everything. Then someone in the original gItemStats plugin posted a link to wowhead's powered.js information and i was like " whats the point? this single javascript file did the work of a dozen or so php functions and several hundred lines of code".

The only thing i need to do to my product now is to add wowheads new multilingual support

tuaguild 06-11-2008 07:49 PM

WoWRoster has alot more features than gryphon's mod and alot of addons for it and whatever your idea is i hope it works out well for ya and if i can help let me know. You can update WoWRoster's Cache of characters with a plugin called armorysync but you have to manually do it i am working on an offshoot of that plugin for WoWRoster that automatically does that using CRON and i want to get a working vbulletin WoWRoster product that fully integrates it and it uses all vb funtions and the admincp control. Also, yes the wowhead js file does do the work of all that stuff but what happens if i have stuff already parsed and wowhead's site is down (GOD FORBID THAT HAPPEN LOL) The wowhead js file will be unaccessable and my items on my site will not show up. I like the itemstats code and i was just trying to find an easy way to learn some coding for vb so i can make more mods for my guild. I think your mod is awesome but i prefer my mod and i do want to find out more info about the coding and eliminating the need for vb code changes. I would like to know what kind of code i would place in the product xml that fixes the editor error. If you can help please do so i am new to vb coding and would like all the help i can get :)

tuaguild 06-11-2008 09:12 PM

I fixed the need for adding the class_bbcode_alt.php file in the mod so it is all internally done.

mmotp 06-20-2008 05:54 AM

First of all, thanks for the mod!

I got the mod 50% working at here The images are not displaying.

Code:

define('ICON_STORE_LOCATION', 'http://www.mmohawk.com/forums/itemstats/wowhead_icons/');
define('LOCAL_ICON_STORE_PATH', DIR . '/itemstats/wowhead_icons/');
define('REMOTE_ICON_STORE_PATH', 'http://static.wowhead.com/images/icons/medium/');

I've tried emptying the table.
I've also tried http://www.mmohawk.com/forums/itemstats/view_cache.php which shows a french character I can't read.
I've set the "wowhead_icons" folder to 777

What's the problem here? Please help me get this work, Thank you.

Ren

sweede 06-20-2008 06:05 AM

Not that i'm being helpful, but in your example post any reason why you picked that peticular ownage oomkin for the example?

mmotp 06-20-2008 06:58 AM

Quote:

Originally Posted by sweede (Post 1554232)
Not that i'm being helpful, but in your example post any reason why you picked that peticular ownage oomkin for the example?

lol, I didn't realize that. I think i found that user name from a sample of the wow character mod. I was too lazy to randomly pick another one:D

tuaguild 06-20-2008 11:44 PM

mmotp the file is ready to use from the box. you do not have to edit anything anymore i made it that way.

heugabel 06-21-2008 01:09 AM

its not working for me :-(

only the message after click:

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'dbhost' (1) in /var/www/web14/html/itemstats/includes/sqlhelper.php on line 30
string(37) "Unable to connect to SQL host: dbhost"

tuaguild 06-21-2008 05:44 PM

hummm that shouldnt happen you didnt alter any of the files did you

KURTZ 06-21-2008 06:04 PM

Chase just wondering, what are the differences between yours and the new Sweede's add-on? thx

sweede 06-21-2008 06:21 PM

1) The way that the tooltips are displayed are different. I use wowheads tooltip library exclusivly.
2) this mod uses the ItemStats from http://itemstats.free.fr/ to do the brunt of its work. I wrote my own retrieval, cache and http processing code. because of this my entire mod takes up less than 30k of code. the mod in this thread is a 1.5 meg download i believe?
3) This mod may be (for the moment) better suited for those people who run things such as EqDKP
4) This mod caches everything locally. Good if Wowhead ever goes down, this is good becuase you've cached any of your existing items and icons. It does use your own bandwidth/server resources to serve data that wowhead.com is allowing anyone to stream from their web services for no cost at all.

KURTZ 06-22-2008 08:30 AM

ah ... OK thx Sweede ;)

pewp 06-23-2008 03:34 AM

The images are not displaying in the tooltip for me. I see people have mentioned this, but there have been no responses on how to fix this. They are downloading to that icon directory though. Just not displaying on the tooltip.

pewp 06-23-2008 03:31 PM

another issue i'm running into is that no matter what color i change item colors to in the itemstats.css it is not changing the color when posting on the site.

tuaguild 06-23-2008 06:21 PM

go into the vboptions and make sure the icon store path is correct if you have your vb installation in forum root it will work if not it will not so make sure you have it set up correctly in the vboptions under gitemstats also it isnt going to because itemstats.css is not used try editing wowhead.css

djbass 06-24-2008 03:45 AM

Quote:

Originally Posted by sweede (Post 1546258)
nothing against any user, but eliminate the need to edit files.

look at my products wysiwyg_start hook for the right way to fix wysiwyg support

Not that it is a big deal, but you never did give me credit for that fix.

tuaguild 06-25-2008 12:11 AM

acctually i tried it your way and it didnt work i had to find another mod that used a bbcode parser and look at its plugins to find the right way of doing it that fixed it

crombiecrunch 06-27-2008 02:36 AM

any update to have this working with http://aoc.mmodb.com/

Renny 06-27-2008 03:00 PM

Not sure its been pointed out but the wowhead url for the icon is wrong.

Therefore people who are having the problem of the icon(s) not showing up when you rollover an item, then change the url to;

http://static.wowhead.com/images/icons/medium/

Click save and reload your forum and the icons will now show up. Enjoy

tuaguild 06-27-2008 06:01 PM

well i thought i had the package set up to automatically download icons but i guess they changed the settings or something it should be a install and use package just upload and then import the product and it should do it on its own.
Also i have not gotten this working for mmodb yet i havent had time to work with it enough to do so.

Irion 07-31-2008 07:44 AM

Quote:

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w0081301/board08/itemstats/config_itemstats.php:1) in /www/htdocs/w0081301/board08/itemstats/updateitem.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w0081301/board08/itemstats/config_itemstats.php:1) in /www/htdocs/w0081301/board08/itemstats/updateitem.php on line 12

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w0081301/board08/itemstats/config_itemstats.php:1) in /www/htdocs/w0081301/board08/itemstats/updateitem.php on line 15

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w0081301/board08/itemstats/config_itemstats.php:1) in /www/htdocs/w0081301/board08/itemstats/updateitem.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w0081301/board08/itemstats/config_itemstats.php:1) in /www/htdocs/w0081301/board08/itemstats/updateitem.php on line 19

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w0081301/board08/itemstats/config_itemstats.php:1) in /www/htdocs/w0081301/board08/itemstats/updateitem.php on line 32

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'dbhost' (1) in /www/htdocs/w0081301/board08/itemstats/includes/sqlhelper.php on line 30
string(37) "Unable to connect to SQL host: dbhost"
Following Errors, can somebody help me?

sweede 07-31-2008 07:52 AM

you have blank space before <?php in your config_itemstats.php file.

edit that file with notepad (not word wordpad or any thing like that) and remove any whitespace before the <?php

Irion 08-01-2008 06:19 AM

@sweede: No there's no space before <?php in my config_itemstats.php or config.php

Any idea else?


All times are GMT. The time now is 05:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01392 seconds
  • Memory Usage 1,845KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete