Alchemy is not showing up under the professions button

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

Alchemy is not showing up under the professions button

Postby Pops » Sat Apr 14, 2007 2:57 am

I am new to this and have had it up and running without any issues for about 2 weeks. However, now that people are uploading to it, I notice alchemy doesn't appear under the Professions button in the main menu.
I am also using the "made by" addon and it works fine. Any idea what I need to edit or click to make this appear? I also noticed that the professions are not in any sort of order(no alphabetical) Is there a way to make that possible?

I am not using any sort of port for wowroster. it sits on its own server.

Thank you in advance, these forums have been a big help for a starting wowroster admin.
Pops
WR.net Apprentice
WR.net Apprentice
 
Posts: 14
Joined: Tue Mar 27, 2007 9:55 pm

Alchemy is not showing up under the professions button

Postby Fangorn » Sat Apr 14, 2007 4:14 am

That's a bug alright... The concatenation of the skill tables for the different languages doesn't separate the first and last skill names, so roster is looking for "'GifteAlchemy'" instead of "'Gifte', 'Alchemy'"

Quick and dirty fix, edit tradeskills.php and replace:

Code: Select all
$inClause = "'";
foreach( $roster_conf['multilanguages'] as $lang )
{
        $inClause .= implode("', '",$tsArray[$lang]);
}
$inClause .= "'";



With:
Code: Select all
$inClause = "'";
foreach( $roster_conf['multilanguages'] as $lang )
{
        $inClause .= implode("', '",$tsArray[$lang]);
        $inClause .= "', '";
}
$inClause .= "'";



It's dirty because we'll also be looking for the empty string at the end of the IN clause, but it doesn't break anything since the skill_name always has a value. Shhh don't tell anyone ;)



- Fang
Last edited by Fangorn on Sat Apr 14, 2007 4:19 am, edited 4 times in total.
ImageImageImage
User avatar
Fangorn
WR.net Apprentice
WR.net Apprentice
 
Posts: 35
Joined: Mon Jul 24, 2006 4:26 am
Location: Ashburn, Virginia, USA

Re: Alchemy is not showing up under the professions button

Postby Leia_Rynaes » Sat Apr 14, 2007 4:40 am

Very glad this was posted as just had the same problem :P
Hate is just Love with it's back turned
Leia_Rynaes
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Thu Dec 28, 2006 3:58 pm
Location: London, UK

Alchemy is not showing up under the professions button

Postby Pops » Sat Apr 14, 2007 4:44 am

Thank you -I would have NEVER found that.
Pops
WR.net Apprentice
WR.net Apprentice
 
Posts: 14
Joined: Tue Mar 27, 2007 9:55 pm

Alchemy is not showing up under the professions button

Postby dehoskins » Mon Jun 11, 2007 12:55 am

thanks, I just ran into this myself.
the code hack works like a charm :)
dehoskins
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Thu Jul 06, 2006 3:21 am

Re: Alchemy is not showing up under the professions button

Postby secretone » Mon Jun 11, 2007 5:21 am

Quick and simple fix.

Thanks.
Image
User avatar
secretone
WR.net Apprentice
WR.net Apprentice
 
Posts: 62
Joined: Wed Feb 28, 2007 6:33 pm
Location: Kent, UK


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 0 guests

cron