vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - gItemStats - World of Warcraft Itemstats (https://vborg.vbsupport.ru/showthread.php?t=141177)

Kimimaru 03-18-2007 11:41 AM

have you an example for this problem? a link?

mdroschak 03-18-2007 04:16 PM

Quote:

Originally Posted by Kimimaru (Post 1206290)
have you an example for this problem? a link?

Here are two pictures attached.

The first one is when itemstats is set to pull for Thottbot. As you can see everything looks ok but the colors are orange. Even the socket images show up fine, although in my example this paticular item does not have sockets.

In the 2nd picture that is when itemstats pulls from allakazham as you can see the colors are correct but the socket images show up as Red X's... I'm assuming it has to do with the websites but im sure there has to be a way to fix it, maybe a change with the code or an adjustment that has to be made.

Kimimaru 03-18-2007 07:27 PM

Quote:

The first one is when itemstats is set to pull for Thottbot. As you can see everything looks ok but the colors are orange. Even the socket images show up fine, although in my example this paticular item does not have sockets.
I have the same problem by that item. By other items the tooltip is green.

Quote:

In the 2nd picture that is when itemstats pulls from allakazham as you can see the colors are correct but the socket images show up as Red X's... I'm assuming it has to do with the websites but im sure there has to be a way to fix it, maybe a change with the code or an adjustment that has to be made.
i have copy the socket images on my server. (allakhazam).

example: http://www.dragonhearts-guild.de/images/redsocket.png

Thottbot:
http://your_website.com/en/Interface...Socket-Red.gif

mdroschak 03-18-2007 07:34 PM

Do the itemstats pull the socket images much like they pull the item image? I run all my images locally and believe i have the most updated set of images on my server. Even if i change it to pull from Alla it still comes up with red X's..

My guess is that they havent update their socket images yet or something.

Can you zip up all your socket images and put them up here so i can download them? I copied that socket image you posted and put it into my images, cleared my item_cache and it still does not find the redsocket.png.. Is there an other file that controls the socket images?

BTW how did you make those modules show up the item stats "last 5 loot" on the left of your page? Does that pull from EQDKP?

mdroschak 03-18-2007 07:53 PM

ok, I got it.

Here is the fix for Allakazham.

The problem is in how ItemStats parses data from Allakhazam. It seems Allakhazam changed its design slightly after the parser was written. I fixed it like so...

open includes/allakhazam.php

Go to line 105

PHP Code:

if (preg_match_all('#<img class="esock" src="/images/(.*?)\.png".*?/>#s'$item['html'], $matches_sockets))                {                    foreach ($matches_sockets[0] as $key_socket => $match_socket)                        $item['html'] = str_replace($matches_sockets[0][$key_socket], '<img src="' $path_images_sockets $matches_sockets[1][$key_socket] . '.png" alt="' $matches_sockets[1][$key_socket] . '"/>'$item['html']);                } 

Replace with


PHP Code:

if (preg_match_all('#<span class="esock"><img src="/images/(.*?)\.png".*?/>#s'$item['html'], $matches_sockets))                {                    foreach ($matches_sockets[0] as $key_socket => $match_socket)                        $item['html'] = str_replace($matches_sockets[0][$key_socket], '<span class="esock"><img src="' $path_images_sockets $matches_sockets[1][$key_socket] . '.png" alt="' $matches_sockets[1][$key_socket] . '"/>'$item['html']);                } 

Clear your item_cache information and thats it.

Fixed it for me


EDIT: The only socket Image I have problems with is the Meta Socket. Everything else shows up perfect. Anyone have the .png file for that?

Kimimaru 03-18-2007 08:04 PM

Allakhazam:

Red
Blue
Yellow
Meta

Thottbot:

Red
Blue
Yellow
Meta

mdroschak 03-18-2007 08:21 PM

Cool thanks!

I downloaded all the images but still have problems with the meta socket image.

I tried changing the socket image location in my allazahzam.php file to be local but that didn't work.

Which file did you change for your local socket images?

Crapforum 03-20-2007 10:52 AM

Nice mod.

[s]Too bad it doesnt work okay on my site.
The popup works in the preview but doesn't popup when i actually post it.

http://www.crapforum.nl/showthread.php?t=30423

The posted url looks like this: http://www.mydomain.nl/\'http://www.thottbot.com/?i=Destroyer Chestguard\'


any help appriciated.[/s]

never mind, this mod rocks....had a conflict with a badly written replacement mod.

phace 03-21-2007 05:14 AM

I was wondering if it's at all possible to change the color of an item when using itemstats. The one I would like to change in particular is the 'quality1' items that appear as white links which blend in almost entirely with the light backgrounds in vBulletin.

Any ideas?

Crapforum 03-21-2007 02:16 PM

Quote:

Originally Posted by phace (Post 1208565)
I was wondering if it's at all possible to change the color of an item when using itemstats. The one I would like to change in particular is the 'quality1' items that appear as white links which blend in almost entirely with the light backgrounds in vBulletin.

Any ideas?


I had the same problem, fixed it with a background color.

you can change the colors in: .\itemstats\templates\itemstats.css

.whitename, .quality1 { background-color: #000000; color: #FFFFFF; font-weight: bold; }


All times are GMT. The time now is 10:12 AM.

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.03670 seconds
  • Memory Usage 1,760KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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