Thread: Major Additions - Forum Tournaments & Ladders
View Single Post
  #1445  
Old 02-27-2009, 05:41 PM
lane lane is offline
 
Join Date: Jun 2007
Location: Pennsylvania
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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(idtiduserid
{
    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(idtiduserid
{
    if (
confirm("Are you sure you want to delete this comment?")) {
        
window.location.href '?do=killcomment&id=' id '&tid=' tid +'&userid=' userid;
    }
}
function 
finishtmnt(idtitletopscore
{
    if (
confirm("Are you sure you want to finish '" title "'")) {
        
window.location.href '?do=finish&id=' id '&topscore=' topscore;
    }
}
function 
progress(iduseridusernameroundslot
{
    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(iduseridusernameround
{
    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(iduseridusernameroundslot
{
    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(idtiduserid
{
    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(idtiduserid
{
    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(idtitletopscore
{
    if (
confirm("Are you sure you want to finish '" title "'")) {
        
window.location.href '/competitions.php?do=finish&id=' id '&topscore=' topscore;
    }
}
function 
progress(iduseridusernameroundslot
{
    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(iduseridusernameround
{
    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(iduseridusernameroundslot
{
    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!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01303 seconds
  • Memory Usage 1,944KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete