Titan Network

Archive => City Info Tracker => Titan Projects => Bugs and Support => Topic started by: kwsapphire on April 13, 2009, 12:41:58 PM

Title: PvP links to Exploration
Post by: kwsapphire on April 13, 2009, 12:41:58 PM
When looking at the badge listing (in general, not for any specific character), clicking on the link for the PvP badges just brings up the exploration badges. I can't seem to get to the PvP badge listing at all.
Title: Re: PvP links to Exploration
Post by: Tazhyngarth on April 13, 2009, 01:26:29 PM
I am unsure how this happened, but we will get it fixed soon.  Thanks for notifying us of this.
Title: Re: PvP links to Exploration
Post by: Steiner on April 13, 2009, 01:40:35 PM
It's been happening for awhile... no one has noticed.

It's a little complicated... there is a function in our framework "humanize()" that looks to the url and makes it human. In our scripts all segments of the url that have spaces are made into underscores (_).

What this script does is replaces the underscore with a space and proper-cases the words.

http://cit.cohtitan.com/badges/list/Day Jobs
converts to
Day_Job
after humanize()
Day Job

Now the bad part is almost all the badge categories can be search via that system... however PVP gets converted to Pvp and it isn't the same case as our database... do it returns as not found.

I'm working on creating a case-insensitive array_search that will fix these issues.
Title: Re: PvP links to Exploration
Post by: Tazhyngarth on April 13, 2009, 02:22:46 PM
flipping humanizing...shouldn't be messing things up darnit. >_<
Title: Re: PvP links to Exploration
Post by: SaintNicster on April 13, 2009, 02:51:42 PM
Quote from: Steiner on April 13, 2009, 01:40:35 PM
It's been happening for awhile... no one has noticed.

It's a little complicated... there is a function in our framework "humanize()" that looks to the url and makes it human. In our scripts all segments of the url that have spaces are made into underscores (_).

What this script does is replaces the underscore with a space and proper-cases the words.

http://cit.cohtitan.com/badges/list/Day Jobs
converts to
Day_Job
after humanize()
Day Job

Now the bad part is almost all the badge categories can be search via that system... however PVP gets converted to Pvp and it isn't the same case as our database... do it returns as not found.

I'm working on creating a case-insensitive array_search that will fix these issues.

That's what we get for trying to play god :P