Gems Display version 2.0.0.0 [Roster 2 addon]

Display what gems jewelcrafters can make

Moderator: titan99

Re: Gems Display version 2.0.0.0 [Roster 2 addon]

Postby Mirael » Tue Oct 09, 2007 10:47 pm

Hmmmm...after making the changes as noted above (to both the enUS files) i get the following errors:

addons/GemsDisplay/realm/index.php
Notice line 29: Undefined index: GemType
Notice line 29: Undefined index: GemType
Notice line 29: Undefined index: GemType
Notice line 29: Undefined index: GemType
Notice line 29: Undefined index: GemType
Notice line 29: Undefined index: GemType
Notice line 29: Undefined index: GemType
Warning line 127: Invalid argument supplied for foreach()

Any ideas?

As i said...i initially made changes only to the enUS.php file....then after no success made the same changes to the enUS.php~ file...same result. then deleted the *.php~ files...same...

link to page:
http://botrh.twisteddark.com/roster2/in ... ity=0070dd
Image
User avatar
Mirael
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Tue Feb 20, 2007 10:41 pm

Re: Gems Display version 2.0.0.0 [Roster 2 addon]

Postby Gator81 » Tue Oct 09, 2007 11:16 pm

when i had an error like that i just did the one replace in the unus.php file and went to the bottom removed everything under color and pasted the change under it and saved, uploaded to the site and and worked.

Dont take this wrong, but for simple checks, have you check the file to make sure that the change was uploaded or made? saved? I only say this because I did it twice, I thought I had uploaded the correct one and i had not. :(
Gator81
WR.net Journeyman
WR.net Journeyman
 
Posts: 115
Joined: Fri Jun 01, 2007 4:44 am

Re: Gems Display version 2.0.0.0 [Roster 2 addon]

Postby maqjav » Wed Oct 10, 2007 1:09 am

Mirael wrote:Hmmmm...after making the changes as noted above (to both the enUS files) i get the following errors:

addons/GemsDisplay/realm/index.php
Notice line 29: Undefined index: GemType
Notice line 29: Undefined index: GemType
Notice line 29: Undefined index: GemType
Notice line 29: Undefined index: GemType
Notice line 29: Undefined index: GemType
Notice line 29: Undefined index: GemType
Notice line 29: Undefined index: GemType
Warning line 127: Invalid argument supplied for foreach()

Any ideas?

As i said...i initially made changes only to the enUS.php file....then after no success made the same changes to the enUS.php~ file...same result. then deleted the *.php~ files...same...

link to page:
http://botrh.twisteddark.com/roster2/in ... ity=0070dd


Change the next line in your enUS localization file.

Code: Select all
$lang['type']['blue']="Blue"; --> $lang['GemType']['blue']="Blue";

You have to change it for all the colours.
maqjav
WR.net Journeyman
WR.net Journeyman
 
Posts: 100
Joined: Wed Oct 18, 2006 2:38 pm

Re: Gems Display version 2.0.0.0 [Roster 2 addon]

Postby Mirael » Wed Oct 10, 2007 11:25 pm

I changed all of them as per the instructions the first time...this is what is in the enUS.php file...and has been since i first edited it...

//color
$lang['Gemtype']['blue']="Blue";
$lang['Gemtype']['red']="Red";
$lang['Gemtype']['yellow']="Yellow";
$lang['Gemtype']['green']="Green";
$lang['Gemtype']['orange']="Orange";
$lang['Gemtype']['purple']="Purple";
$lang['Gemtype']['meta']="meta";
Image
User avatar
Mirael
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Tue Feb 20, 2007 10:41 pm

Re: Gems Display version 2.0.0.0 [Roster 2 addon]

Postby Mirael » Wed Oct 10, 2007 11:38 pm

kk...i got it figured out...lol

while i had :

//color
$lang['Gemtype']['blue']="Blue";
$lang['Gemtype']['red']="Red";
$lang['Gemtype']['yellow']="Yellow";
$lang['Gemtype']['green']="Green";
$lang['Gemtype']['orange']="Orange";
$lang['Gemtype']['purple']="Purple";
$lang['Gemtype']['meta']="meta";

it should have been:

//color
$lang['GemType']['blue']="Blue";
$lang['GemType']['red']="Red";
$lang['GemType']['yellow']="Yellow";
$lang['GemType']['green']="Green";
$lang['GemType']['orange']="Orange";
$lang['GemType']['purple']="Purple";
$lang['GemType']['meta']="meta";

simple "case" fix...

thanx everybody...!
Image
User avatar
Mirael
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Tue Feb 20, 2007 10:41 pm

Gems Display version 2.0.0.0 [Roster 2 addon]

Postby Blueleaf » Thu Nov 01, 2007 1:12 pm

Anyone have a fix for the missing Icons for Pearls?
User avatar
Blueleaf
WR.net Apprentice
WR.net Apprentice
 
Posts: 50
Joined: Thu Apr 26, 2007 12:06 am
Location: Minot, ND

Re: Gems Display version 2.0.0.0 [Roster 2 addon]

Postby eire » Thu Nov 15, 2007 12:30 pm

Blueleaf wrote:Anyone have a fix for the missing Icons for Pearls?


I lust grabbed the couple missing ones from thottbot, renamed them to lowercase, and stuck them in /img/Interface/Icons/

Worked like a charm.
eire
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu Nov 15, 2007 1:36 am

Re: Gems Display version 2.0.0.0 [Roster 2 addon]

Postby eire » Fri Nov 23, 2007 5:07 am

Tupsi wrote:
Blueleaf wrote:You should have a gem icon in the "Realm Information" menu (Realm Panel)


doh! Realm panel, ok, found it :-)


I love the Gems Display addon, but I wanted it to display on my Guild panel not the Realm panel (don't ask me why just feels like it fits better there).

I'm sure there is a better/cleaner way of doing this but here are a few easy steps to have it display on both panels, then you can remove one or the other using the Menu Configuration: Open GemsDisplay/inc/install.def.php

copy line 57:
Code: Select all
$installer->add_menu_button('GemsDisplay_menu','realm','','inv_jewelcrafting_nightseye_03');


paste to line 58 and change realm to guild and save the file:
Code: Select all
$installer->add_menu_button('GemsDisplay_menu','guild','','inv_jewelcrafting_nightseye_03');


Now in GemsDisplay create a new folder "guild" then copy index.php from the realm directory into your new guild directory.

Open GemsDisplay/guild/index.php and change line 100 from:
Code: Select all
urlt='index.php?p=realm-GemsDisplay';

to
Code: Select all
urlt='index.php?p=guild-GemsDisplay';


Now reinstall the addon and the buttons should appear on both panels :D
eire
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu Nov 15, 2007 1:36 am

Gems Display version 2.0.0.0 [Roster 2 addon]

Postby PleegWat » Fri Nov 23, 2007 6:04 am

That's roughly the basics. There's probably a SQL query somewhere you need to modify to really only show members from the selected guild.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Gems Display version 2.0.0.0 [Roster 2 addon]

Postby Smafy » Fri Feb 08, 2008 6:09 pm

Hi,

I have a trouble when installing the addon:

Erreurs relatives au programme d'installation
(errors from the installation program)
Le fichier contenant les définitions du programme d'installation pour GemsDisplay ne contient pas de classes d'installation correctes
(The file containing the classe's definitions for the installation of GemsDisplay do not contain correct installation classes)

My roster is in French, WoWRoster v1.9.9.1555.
Smafy
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Mon Sep 10, 2007 6:50 am

Gems Display version 2.0.0.0 [Roster 2 addon]

Postby sebb » Fri Feb 08, 2008 10:01 pm

hello all ^^

after upload addon, I have this message:

The install definition file for GemsDisplay did not contain a correct installation class on RosterCP

what happen ???

thank's


edit: Haaa tiens un frenchy !! ben j'ai la meme erreur que toi alors :?
Last edited by sebb on Fri Feb 08, 2008 10:08 pm, edited 2 times in total.
User avatar
sebb
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Thu Sep 28, 2006 2:31 pm

Re: Gems Display version 2.0.0.0 [Roster 2 addon]

Postby LaYkE » Tue Mar 04, 2008 12:10 pm

Install Gems Display and then upload these files over it. It fixed it for me.

http://www.wowroster.net/Forums/viewtopic/t=4723.html
LaYkE
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Tue Aug 01, 2006 4:34 am

Gems Display version 2.0.0.0 [Roster 2 addon]

Postby Jagtus » Sat Jun 21, 2008 2:42 pm

have this bug addon konfig aktivation: Die Installations-Definitionsdatei für GemsDisplay enthielt keine korrekte Installations-Klasse
User avatar
Jagtus
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Fri Dec 15, 2006 12:14 pm

Re: Gems Display version 2.0.0.0 [Roster 2 addon]

Postby tuigii » Mon Jun 23, 2008 1:26 pm

I found out that some of the gems listed are soulbound.
So, IHMO, no need to list them with this addon.


Take this fragement (in both guid/index.php and realm/index.php):
Code: Select all
   $inColor = '';
   $inSkill = '';
   foreach( $roster->multilanguages as $lang )
   {
      $inColor .= "'".addslashes($roster->locale->wordings[$lang]['GemType'][$color])."', ";
      $inSkill .= "'".addslashes($roster->locale->wordings[$lang]['sill'])."', ";
   }
   $inColor = substr ($inColor, 0, -2);
   $inSkill = substr ($inSkill, 0, -2);

   $query .= " AND `recipe_type` IN ($inColor) AND `skill_name` IN ($inSkill)";
   $query .= " GROUP BY `recipe_name` ORDER BY `reagents`,`recipe_name`";


and make it look like this
Code: Select all
   $inColor = '';
   $inSkill = '';
   $$inBound = ''; // New !!
   foreach( $roster->multilanguages as $lang )
   {
      $inColor .= "'".addslashes($roster->locale->wordings[$lang]['GemType'][$color])."', ";
      $inSkill .= "'".addslashes($roster->locale->wordings[$lang]['sill'])."', ";
      $inBound .= "AND (`recipe_tooltip` NOT LIKE '%".addslashes($roster->locale->wordings[$lang]['tooltip_soulbound'])."%') "; // New !!
   }
   $inColor = substr ($inColor, 0, -2);
   $inSkill = substr ($inSkill, 0, -2);
   
   $query .= " ".$inBound; // New !!
   $query .= " WHERE `recipe_type` IN ($inColor) AND `skill_name` IN ($inSkill)";
   $query .= " GROUP BY `recipe_name` ORDER BY `reagents`,`recipe_name`";


It's maybe not the most efficient SQL code ever writen, but it filters out all soulbound gems.


Humm, nothing shows up when I post this with [ php ] ...... [ /php ] bbcodes. Normal ?
Last edited by tuigii on Mon Jun 23, 2008 1:27 pm, edited 1 time in total.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Gems Display version 2.0.0.0 [Roster 2 addon]

Postby PleegWat » Mon Jun 23, 2008 3:39 pm

Code looks fine. There's a similar snippet for this somewhere in the base code, and that one should be looked up and used instead. There's a second translation string for soulbound that needs to be included in a specific way because (if I remember correctly) in french the text for 'soulbound' also matches the string for 'bind on equip'.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

PreviousNext

Return to Gems Display

Who is online

Users browsing this forum: No registered users and 0 guests

cron