Moderator: Tech Team

Code: Select all
function isTeamGame() {
var gameType = (/Game\sType\:\s<b>(\w+)<\/b>/(document.getElementById("dashboard").innerHTML))[1];
if(gameType == "Doubles" || gameType == "Triples" || gameType == "Quadruples")
return true;
else
return false;
}
Code: Select all
function isTeamGame() {
try {
var gameType = document.getElementsByTagName("dd")[0].innerHTML;
if(gameType == "Doubles" || gameType == "Triples" || gameType == "Quadruples")
return true;
else
return false;
}
catch(e)
{
return false;
}
}

Nooooo! I want my floating chat! Nothing nicer than playing a speed game while having a chat floating next to the map....Foxglove wrote:Hey everyone - sorry for the broken chatbug. It did break because of the site change.
I'm glad that so many people appreciate chatglove! Unfortunately, I will no longer have time to keep in updated and compatible with the current site code.
If anyone else would like to take it over, feel free! I hope that the CC community won't have to remain cold and gloveness without me.
If you are technically inclined and want to change your code, here is what you need to do
REPLACE THIS:
WITH THIS:Code: Select all
function isTeamGame() { var gameType = (/Game\sType\:\s<b>(\w+)<\/b>/(document.getElementById("dashboard").innerHTML))[1]; if(gameType == "Doubles" || gameType == "Triples" || gameType == "Quadruples") return true; else return false; }
Code: Select all
function isTeamGame() { try { var gameType = document.getElementsByTagName("dd")[0].innerHTML; if(gameType == "Doubles" || gameType == "Triples" || gameType == "Quadruples") return true; else return false; } catch(e) { return false; } }
I tried this but it didn't seem to work. Maybe I am not smart enough, lol.Foxglove wrote:If you are technically inclined and want to change your code, here is what you need to do
REPLACE THIS:
WITH THIS:Code: Select all
function isTeamGame() { var gameType = (/Game\sType\:\s<b>(\w+)<\/b>/(document.getElementById("dashboard").innerHTML))[1]; if(gameType == "Doubles" || gameType == "Triples" || gameType == "Quadruples") return true; else return false; }
Code: Select all
function isTeamGame() { try { var gameType = document.getElementsByTagName("dd")[0].innerHTML; if(gameType == "Doubles" || gameType == "Triples" || gameType == "Quadruples") return true; else return false; } catch(e) { return false; } }

You're my herodwilhelmi wrote:Alright guys, new script is hosted. I will be working with Foxy to get the update to notify for everyone, but for now you can head over to http://www.conquerclub.com/forum/viewto ... 7&t=132761 to get the latest version.

And mine!fumandomuerte wrote:You're my herodwilhelmi wrote:Alright guys, new script is hosted. I will be working with Foxy to get the update to notify for everyone, but for now you can head over to http://www.conquerclub.com/forum/viewto ... 7&t=132761 to get the latest version.