Problem with ordering items from guild vault.

Displays the Guild vault introduced in WoW 2.3

Moderator: Nefuh

Problem with ordering items from guild vault.

Postby Evenstarr » Mon Feb 25, 2008 1:30 am

Ok, thought everything was working ok this time, till someone tried to order an item that has a quantity of 1. It doesnt show the 1. We had a problem with the larger quantities, however we fixed that.

Here is the link if you would like to see it.

http://www.twilight-guard.com/roster/index.php
User avatar
Evenstarr
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Thu Nov 16, 2006 3:42 am

Problem with ordering items from guild vault.

Postby Nefuh » Mon Feb 25, 2008 2:00 am

Hey Evenstarr,

Look near line 690 in functions.lib.php, there you will find:

Code: Select all

            
while ($data $wowdb->fetch_array($result)) 
            {
                  
$num_counted_items $num_counted_items $data['item_quantity'];
            }
 


Insert directly after that code this lines:

Code: Select all

            
if ($num_counted_items == 0
            {
                
$num_counted_items 1;
            }
 


This should solve this failure.

Can you post what problem do you had have with larger quantities and what you´ve done to fix it? Then i can take a look at it, and correct it in for the next version.

Nefuh
Administrator of the german User2User Community for WoWRoster.
Guild Master from Scum from Hell - Horde @ EU-Anetheron.
User avatar
Nefuh
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 213
Joined: Fri Sep 15, 2006 8:34 pm
Location: Krefeld Germany

Re: Problem with ordering items from guild vault.

Postby Evenstarr » Thu Feb 28, 2008 1:04 pm

That seemed to fix the issue except for a couple items

Mark of Kil'jaeden isn't registering correctly and Spider's Silk. It returns a fetch error on line 156 of wowdb.php

As far as the large quantity problem, unfortunately, we dont remember how we fixed the problem or if it just fixed itself.
User avatar
Evenstarr
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Thu Nov 16, 2006 3:42 am

Problem with ordering items from guild vault.

Postby Nefuh » Thu Feb 28, 2008 6:35 pm

Hey Evenstarr,

can you please attach your CP.lua so i can do some tests to fix the handling of the items you´ve posted?

Thanks

Nefuh
Administrator of the german User2User Community for WoWRoster.
Guild Master from Scum from Hell - Horde @ EU-Anetheron.
User avatar
Nefuh
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 213
Joined: Fri Sep 15, 2006 8:34 pm
Location: Krefeld Germany


Return to Guildvault

Who is online

Users browsing this forum: No registered users and 0 guests

cron