Guildbank2.php and stacks

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Guildbank2.php and stacks

Postby Willie » Fri Jul 14, 2006 8:53 pm

I remember having this problem before with the 1.6 version of roster but I forget how to fix it. If you go to our site and look at our guildbank here look at the Cenarion Bracers that Domco has. There are 3 in the bank but it is only showing one. If I go to the guildbank.php page instead of the guildbank2.php it does show all 3 Cenarion Bracers. It's also doing the same thing with items like our Fiery Cores, Lava Cores, and Core Leather.

Does anyone remember what needed to be altered in the guildbank2.php file to make it show multiple stacks of items?

Now that I think about it can I just replace the guildbank2.php file in 1.7 with the guildbank2.php file in 1.6?
Willie
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Thu Jul 06, 2006 5:26 am
Location: Visalia, CA, USA

Guildbank2.php and stacks

Postby Krevlorn » Fri Jul 21, 2006 2:12 am

I am having the same problem with this. Categorized Guildbank is great and all, but oftentimes I want to see which mule has which items, and don't care for the categories. The stacks show up correctly on the individual characters but only show one stack when in the Inventory mode of the Guildbank. Any fixes for this?
Krevlorn
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Fri Jul 14, 2006 4:43 am

Re: Guildbank2.php and stacks

Postby Willie » Mon Jul 24, 2006 10:51 pm

No one remembers how to do this?

I know I found the fix for it on the old forums when I was still using the 1.6 roster but I can't find that info now. Think I'll see if I can find a copy of my old guildbank2.php file and figure out what I altered to get the stacks to stack right.
Willie
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Thu Jul 06, 2006 5:26 am
Location: Visalia, CA, USA

Guildbank2.php and stacks

Postby Elethil » Wed Jul 26, 2006 2:16 am

I too am looking for a fix. Please let us know if you figure it out.
Last edited by Elethil on Wed Jul 26, 2006 2:17 am, edited 1 time in total.
User avatar
Elethil
WR.net Journeyman
WR.net Journeyman
 
Posts: 147
Joined: Wed Jul 05, 2006 10:28 pm

Guildbank2.php and stacks

Postby Averen » Wed Jul 26, 2006 3:35 am

This is an UNTESTED fix, as i don't have anything to test it with so I suggest you back up first.

In lib/item.php

REPLACE (Line 111 - 115)

Code: Select all
if( ($this->data['item_quantity'] > 1) )
{
   $output .= '<span class="quant_shadow">'.$this->data['item_quantity'].'</span>';
   $output .= '<span class="quant">'.$this->data['item_quantity'].'</span>';
}


WITH

Code: Select all
if( ($this->data['total_quantity'] > 1) )
{
   $output .= '<span class="quant_shadow">'.$this->data['total_quantity'].'</span>';
   $output .= '<span class="quant">'.$this->data['total_quantity'].'</span>';
}
elseif( ($this->data['item_quantity'] > 1) )
{
   $output .= '<span class="quant_shadow">'.$this->data['item_quantity'].'</span>';
   $output .= '<span class="quant">'.$this->data['item_quantity'].'</span>';
}
User avatar
Averen
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 152
Joined: Thu Jul 20, 2006 5:18 am

Guildbank2.php and stacks

Postby sdwwraith » Wed Jul 26, 2006 3:53 am

That seems to work Averen. Thanks for posting it up - saved me the hassle of seeing what I did to fix 1.6 lol
User avatar
sdwwraith
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Tue Jul 25, 2006 5:56 am
Location: Central Florida

Re: Guildbank2.php and stacks

Postby Averen » Wed Jul 26, 2006 4:05 am

No problem :)
User avatar
Averen
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 152
Joined: Thu Jul 20, 2006 5:18 am

Re: Guildbank2.php and stacks

Postby Elethil » Wed Jul 26, 2006 6:56 am

Thank you so much!
User avatar
Elethil
WR.net Journeyman
WR.net Journeyman
 
Posts: 147
Joined: Wed Jul 05, 2006 10:28 pm

Guildbank2.php and stacks

Postby zanix » Sun Jul 30, 2006 11:03 am

Ok, for me to fix this in 1.7.1, here is what I may do

File guildbank2.php
Around Lines 152-157
Code: Select all
            // Item texture and quantity column
            
echo "\n".'    <td align="center">';

            
$item = new item($itemRow);
            echo 
$item->out(); 

Replace with
Code: Select all
            // Item texture and quantity column
            
echo "\n".'    <td align="center">';

            
$itemRow['item_quantity'] = $itemRow['total_quantity'];

            
$item = new item($itemRow);
            echo 
$item->out(); 


Please tell me if this works correctly
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Guildbank2.php and stacks

Postby Willie » Tue Aug 01, 2006 1:59 am

Zanix yours worked great. I can now see how many of these fricking Cenarion Bracers we do have...we might have to start giving them away as door prizes. "Show up to MC and get your very own [Cenarion Bracers]!"

Averen thank you for looking into that as well. I didn't try yours but if you still want to know if it works I can give it a shot as well.
Willie
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Thu Jul 06, 2006 5:26 am
Location: Visalia, CA, USA

Re: Guildbank2.php and stacks

Postby Averen » Tue Aug 01, 2006 4:20 am

Someone up there ^^ already did, cheers anyway.
User avatar
Averen
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 152
Joined: Thu Jul 20, 2006 5:18 am


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest