
02-27-2009, 05:41 PM
|
|
|
Join Date: Jun 2007
Location: Pennsylvania
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Hi Guys,
I have run into couple of issues:
#1
Quote:
In many cases, where the Java window pop-up and asks "Are You Sure" or when you try to add a player to your team, all it does it redirect to the main page.
It happens when trying to add players, delete team, delete ladders, accept players into the team and many other places.
Anyone has any idea how to fix this?
NOW FIXED, See Below!
|
#2
Quote:
I have come across a second issue, the creator of the team can delete himself and therefore basically kills it.
|
Solution to Issue #1:
Quote:
For anyone else having the first issue I listed, you will need to edit the tmnt_shell template for your active theme.
OLD:
PHP Code:
{ if (confirm("Are you sure you want to delete '" + title + "'")) { window.location.href = '?do=kill&id=' + id; } } function deleteteam(id) { if (confirm("Are you sure you want to delete this team?")) { window.location.href = '?do=killteam&id=' + id; } } function deleteann(id) { if (confirm("Are you sure you want to delete this announcement?")) { window.location.href = '?do=killann&id=' + id; } } function jointeam(id) { if (confirm("Are you sure you want to join this team?")) { window.location.href = '?do=reqjointeam&id=' + id; } } function rejectrecruit(id) { if (confirm("Are you sure you want to reject this recruit?")) { window.location.href = '?do=rejectrecruit&id=' + id; } } function confirmrecruit(id) { if (confirm("Are you sure you want to confirm this recruit?")) { window.location.href = '?do=confirmrecruit&id=' + id; } } function deleteplayer(id, tid, userid) { if (confirm("Are you sure you remove this player from this tournament?")) { window.location.href = '?do=killplayer&id=' + id + '&tid=' + tid + '&userid=' + userid; } } function deleteteamplayer(id) { if (confirm("Are you sure you want to remove this player from your team?")) { window.location.href = '?do=killteamplayer&id=' + id; } } function makeleader(id) { if (confirm("Are you sure you want to make this team member a leader?")) { window.location.href = '?do=makeleader&id=' + id; } } function makecoleader(id) { if (confirm("Are you sure you want to make this team player a co-leader?")) { window.location.href = '?do=makecoleader&id=' + id; } } function deletecomment(id, tid, userid) { if (confirm("Are you sure you want to delete this comment?")) { window.location.href = '?do=killcomment&id=' + id + '&tid=' + tid +'&userid=' + userid; } } function finishtmnt(id, title, topscore) { if (confirm("Are you sure you want to finish '" + title + "'")) { window.location.href = '?do=finish&id=' + id + '&topscore=' + topscore; } } function progress(id, userid, username, round, slot) { if (confirm("Are you sure you want to progress '" + username + "' to next round?")) { window.location.href = '?do=progress&id=' + id + '&userid=' + userid + '&round=' + round + '&slot=' + slot; } } function regress(id, userid, username, round) { if (confirm("Are you sure you want to regress '" + username + "' to previous round?")) { window.location.href = '?do=progress&id=' + id + '&userid=' + userid + '&round=' + round + '&slot=0'; } } function progressfinish(id, userid, username, round, slot) { if (confirm("Are you sure you want to progress '" + username + "' to next round?")) { window.location.href = '?do=progressfinish&id=' + id + '&userid=' + userid + '&round=' + round + '&slot=' + slot; } }
New:
Notice the "/competitions.php" addition to the lines.
PHP Code:
{ if (confirm("Are you sure you want to delete '" + title + "'")) { window.location.href = '/competitions.php?do=kill&id=' + id; } } function deleteteam(id) { if (confirm("Are you sure you want to delete this team?")) { window.location.href = '/competitions.php?do=killteam&id=' + id; } } function deleteann(id) { if (confirm("Are you sure you want to delete this announcement?")) { window.location.href = '/competitions.php?do=killann&id=' + id; } } function jointeam(id) { if (confirm("Are you sure you want to join this team?")) { window.location.href = '/competitions.php?do=reqjointeam&id=' + id; } } function rejectrecruit(id) { if (confirm("Are you sure you want to reject this recruit?")) { window.location.href = '/competitions.php?do=rejectrecruit&id=' + id; } } function confirmrecruit(id) { if (confirm("Are you sure you want to confirm this recruit?")) { window.location.href = '/competitions.php?do=confirmrecruit&id=' + id; } } function deleteplayer(id, tid, userid) { if (confirm("Are you sure you remove this player from this tournament?")) { window.location.href = '/competitions.php?do=killplayer&id=' + id + '&tid=' + tid + '&userid=' + userid; } } function deleteteamplayer(id) { if (confirm("Are you sure you want to remove this player from your team?")) { window.location.href = '/competitions.php?do=killteamplayer&id=' + id; } } function makeleader(id) { if (confirm("Are you sure you want to make this team member a leader?")) { window.location.href = '/competitions.php?do=makeleader&id=' + id; } } function makecoleader(id) { if (confirm("Are you sure you want to make this team player a co-leader?")) { window.location.href = '/competitions.php?do=makecoleader&id=' + id; } } function deletecomment(id, tid, userid) { if (confirm("Are you sure you want to delete this comment?")) { window.location.href = '/competitions.php?do=killcomment&id=' + id + '&tid=' + tid +'&userid=' + userid; } } function finishtmnt(id, title, topscore) { if (confirm("Are you sure you want to finish '" + title + "'")) { window.location.href = '/competitions.php?do=finish&id=' + id + '&topscore=' + topscore; } } function progress(id, userid, username, round, slot) { if (confirm("Are you sure you want to progress '" + username + "' to next round?")) { window.location.href = '/competitions.php?do=progress&id=' + id + '&userid=' + userid + '&round=' + round + '&slot=' + slot; } } function regress(id, userid, username, round) { if (confirm("Are you sure you want to regress '" + username + "' to previous round?")) { window.location.href = '/competitions.php?do=progress&id=' + id + '&userid=' + userid + '&round=' + round + '&slot=0'; } } function progressfinish(id, userid, username, round, slot) { if (confirm("Are you sure you want to progress '" + username + "' to next round?")) { window.location.href = '/competitions.php?do=progressfinish&id=' + id + '&userid=' + userid + '&round=' + round + '&slot=' + slot; } }
There is still an issue with adding members to your team, when you select the option to add a member, it loads the home page. I am working on this now and will post up soon as I find the solution.
|
Cheers!
|