Links to keys at top of roster

Displays Instance keys for TBC

Moderator: titan99

Links to keys at top of roster

Postby neotalon » Sat Apr 21, 2007 10:17 pm

I didn't see a post about this, and as I go to other guild's sites to see their key bc, it has been the same at all of the ones I've been to.

this is my guild's key bc (we are just starting to enter outland key needing state, and people are still slow to participate in the roster system, so don't make fun of the lack of people that show up here :p)

http://www.dragonwindguild.com/roster/a ... ame=key_bc

at the top of each of the columns, where there is a link that should point at the thottbot or alakahzam page for that key (like it does on the regular keys page) instead it just points to my server with the item name after it. like this

http://www.dragonwindguild.com/roster/S ... +Halls+Key

I typed this whole message up (including the message asking for help which was replaced by this paragraph here) and then decided to look harder, and was able to fix it. and I wanted to post that solution for anyone else who wanted to fix it.

I replaced the following line
Code: Select all
$header = '<a href="'.$itemlink[$row['clientLocale']].urlencode(utf8_decode(stripslashes($iname))).'" target="_blank">'.$inst_name[$header].'</a>';

with
Code: Select all
$header = '<a href="http://www.thottbot.com/index.cgi?i='.$itemlink[$row['clientLocale']].urlencode(utf8_decode(stripslashes($iname))).'" target="_blank">'.$inst_name[$header].'</a>';


and for now, the top of the key bc page now work properly. I'm sure that there is a way to get it into the lang php file so that people can easily change it to be whatever site they use (i.e. an english speaking site for the enUS lang, and a french speaking site for the frFR lang file. but I'll leave that up to you guys ;)

Just wanted to put this here for anyone else who might want this fixed on their site too.
neotalon
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Fri Feb 16, 2007 10:43 am

Re: Links to keys at top of roster

Postby swampy » Sat Apr 21, 2007 11:38 pm

Hi NeoTalon - I think this was fixed without hardcoding in this thread:

http://www.wowroster.net/Forums/viewtopic/t=3324.html
User avatar
swampy
WR.net Apprentice
WR.net Apprentice
 
Posts: 43
Joined: Mon Sep 25, 2006 9:38 pm
Location: UK


Return to Key BC

Who is online

Users browsing this forum: No registered users and 0 guests

cron