An update for Categoriezed Guild Bank

Categorizes items in your guildbank(s)

Moderator: Mathos

An update for Categoriezed Guild Bank

Postby Stigg » Fri Mar 30, 2007 7:00 am

This is rough, and enUS only, but it got the job done for me.

I like this addon, so maybe someone can find this useful.

(or better still, maybe the author can integrate this and pretty up my work)

GL!

-Stigg
Attachments
stigg-catgbank-update.zip
Adds TBC Gems, Leather, Tailoring, Herbs, A Category for Motes / Primals, and a Category for Rep Items.
(14.29 KiB) Downloaded 525 times
Stigg
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Thu Mar 22, 2007 7:55 am

An update for Categoriezed Guild Bank

Postby rcoughtrey » Fri Mar 30, 2007 7:06 am

just what i was asking for in the below post


good work
rcoughtrey
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Sat Mar 24, 2007 5:07 am

Re: An update for Categoriezed Guild Bank

Postby Stigg » Fri Mar 30, 2007 7:21 am

Post here if you find any problems.
I drycoded some of that stuff.

-Stigg
Stigg
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Thu Mar 22, 2007 7:55 am

Re: An update for Categoriezed Guild Bank

Postby Karavirs » Fri Mar 30, 2007 8:03 am

Change the order of the function and the code after the bankitems declarations. I've had a lot of problems if you don't check for function first.
From this
Code: Select all
/********************************************************************/
// Build the $itemarray based on all $search_order category numbers, and multilanguages
$itemarray = array();
itemarray_merge('omit');
foreach ($search_order as $catnumber)
{
   itemarray_merge($bankitem[$catnumber]['arg']);
}



// Merge the search words for multilanguage purposes based on the category name
function itemarray_merge($category)
{
   global $itemarray, $roster_conf, $wordings;
   // Fill the itemarray with all language wordings
   $itemarray[$category] = array();
   foreach ($roster_conf['multilanguages'] as $language)
   {
      if (isset($wordings[$category][$language]))
      {
         $itemarray[$category] = array_merge($itemarray[$category], $wordings[$category][$language]);
      }
   }
}


to this
Code: Select all
/** Merge the search words for multilanguage purposes based on the category name*/
if(!function_exists('itemarray_merge')){
   function itemarray_merge($category)
   {
      global $itemarray, $roster_conf, $wordings;
      // Fill the itemarray with all language wordings
      $itemarray[$category] = array();
      foreach ($roster_conf['multilanguages'] as $language)
      {
         if (isset($wordings[$category][$language]))
         {
            $itemarray[$category] = array_merge($itemarray[$category], $wordings[$category][$language]);
         }
      }
   }
}

/********************************************************************/
// Build the $itemarray based on all $search_order category numbers, and multilanguages
$itemarray = array();
itemarray_merge('omit');
foreach ($search_order as $catnumber)
{
   itemarray_merge($bankitem[$catnumber]['arg']);
}

Image

Image
User avatar
Karavirs
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Mon Feb 26, 2007 6:33 pm
Location: Chicago

An update for Categoriezed Guild Bank

Postby rcoughtrey » Fri Mar 30, 2007 7:24 pm

I got the below error on upload now


Fatal error: Cannot redeclare itemarray_merge() (previously declared in /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/searcharrays.php:79) in /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/searcharrays.php on line 79
rcoughtrey
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Sat Mar 24, 2007 5:07 am

An update for Categoriezed Guild Bank

Postby rcoughtrey » Fri Mar 30, 2007 7:29 pm

OK, Karavirs fix resolved the error
rcoughtrey
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Sat Mar 24, 2007 5:07 am

An update for Categoriezed Guild Bank

Postby rcoughtrey » Fri Mar 30, 2007 7:34 pm

Ok,

I believe is due to issue when you also use [V1.0.4] Guildbank Request Mod

i now get the following error:

Notice: Undefined index: gb_history in /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/gbank.php on line 36

Notice: Undefined index: gb_admin in /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/gbank.php on line 38

Notice: Use of undefined constant ROSTER_GB_REQUESTSTABLE - assumed 'ROSTER_GB_REQUESTSTABLE' in /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/gbank.php on line 287

as seen @ http://www.final-chapter.net/roster/add ... =guildbank


------------------------------------

If you left click to request a new item i get the following:

Notice: Undefined index: guildbank_request in /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/index.php on line 64

Notice: Use of undefined constant ROSTER_GB_REQUESTSTABLE - assumed 'ROSTER_GB_REQUESTSTABLE' in /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/request.php on line 279

Notice: Undefined index: gb_request in /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/request.php on line 322

Notice: Undefined index: gb_char in /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/request.php on line 328

Notice: Use of undefined constant ROSTER_DIED - assumed 'ROSTER_DIED' in /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/lib/commonfunctions.lib.php on line 192

Notice: Use of undefined constant ROSTER_DIED - assumed 'ROSTER_DIED' in /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/lib/commonfunctions.lib.php on line 202



The backtrace from SQL is:

SQL:
SELECT member_id, name FROM `roster_members` WHERE guild_rank <= ORDER BY name
File: request.php
Line: 361
Backtrace (most recent call last):

* File: /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/lib/commonfunctions.lib.php
o line 248
o function called: backtrace
* File: /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/request.php
o line 361
o function called: die_quietly
o args: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY name' at line 1, Database Error, request.php, 361, SELECT member_id, name FROM `roster_members` WHERE guild_rank <= ORDER BY name
* File: /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/request.php
o line 328
o function called: creatememberlist
o args:
* File: /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/index.php
o line 66
o function called: require
o args: /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/request.php
* File: /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addon.php
o line 77
o function called: include_once
o args: /mounted-storage/home16a/sub001/sc11612-CGLO/www/roster/addons/guildbank/index.php
Last edited by rcoughtrey on Fri Mar 30, 2007 7:36 pm, edited 2 times in total.
rcoughtrey
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Sat Mar 24, 2007 5:07 am

An update for Categoriezed Guild Bank

Postby Karavirs » Fri Mar 30, 2007 10:42 pm

Image

Image
User avatar
Karavirs
WR.net Apprentice
WR.net Apprentice
 
Posts: 49
Joined: Mon Feb 26, 2007 6:33 pm
Location: Chicago

An update for Categoriezed Guild Bank

Postby aeternal » Wed May 09, 2007 8:51 pm

Thank you Stigg, you did well.

it works great with Karavirs' fix. ( Thank you also Karavirs :grin: )
Last edited by aeternal on Wed May 09, 2007 8:53 pm, edited 1 time in total.
User avatar
aeternal
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Mon Apr 30, 2007 12:00 pm
Location: Turkey

An update for Categoriezed Guild Bank

Postby Tiramon » Wed May 16, 2007 5:01 pm

for your german localization

Code: Select all
$wordings['deDE']["bankitem_34"] = "Juwelenschleifen Vorlagen"; // Jewelcrafting
$wordings['deDE']["bankitem_35"] = "Partikel & Ur"; // Motes
$wordings['deDE']["bankitem_36"] = "Ruf Items"; // Rep

$wordings['jewelcrafting']['deDE'] =
array("Benötigt Juwelenschleifen");


$wordings['motes']['deDE'] =
array("partikel", "Urmacht", "Urerde", "Urwasser", "Urluft", "Urfeuer", "Urmana", "Urschatten", "Urleben");

$wordings['rep']['deDE'] =
array("Siegel des Sonnenzorns", "Siegel der Feuerschwingen", "Mal des Sargeras", "Mal des Kil'jaeden", "Arkaner Foliant", "Teuflische Waffen", "Bluthibiskus", "Glühkappe", "Fruchtbare Sporen", "Reifer Sporenbeutel", "Sumpflordranke");
Tiramon
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Thu May 03, 2007 5:58 pm


Return to Categorized Guild Bank

Who is online

Users browsing this forum: No registered users and 0 guests

cron