Thread: Major Additions - Forum Tournaments & Ladders
View Single Post
  #1340  
Old 02-09-2009, 03:07 AM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why do all your templates have the timecodes set to 1969? I make a lot of changes to the templates because you make some odd choices with the layout. So I have been working to fix these changes. However, since you always set your timecodes to 1969; I never know when YOU make an update to the template, thus prompting me to update my changes. So when you update your templates, I wont ever know, and I'll always be using the old tempaltes. I jsut made a post asking if you were ever going to update the top-nav bar; because it was outdated... turns out, you DID update the top-nav bar, but it was dated 40 years old, so vB never notified me. This is a MAJOR oversight that you should take care of.

I made the following changes to your templates... this fixes some skin design issues...

tnmt_edit:
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody><tr>
	<td class="tcat">$vbphrase[tmnt_editing]</td>
</tr>
<tr>
	<td class="thead">$vbphrase[title]: <span style="font-weight: normal;"> $title </span></td>
</tr>

<tr>
	<td class="panelsurround" align="center">
<form action="" method="post" enctype="multipart/form-data" <if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.title.value, 4)"</if>>
<input type="hidden" name="do" value="update" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input name="id" type="hidden" value="$id" />
<input name="status" type="hidden" value="$status" />
<input name="userid" type="hidden" value="$bbuserinfo[userid]" />
<input name="username" type="hidden" value="$bbuserinfo[username]" />
<input name="noplayers" type="hidden" value="$noplayers" />
<input name="origdate" type="hidden" value="$origdate" />
	<div class="panel">
		<div style="width:$stylevar[formwidth]" align="left">
		<table style="margin-bottom: 3px;" border="0" cellpadding="0" cellspacing="0">
		<tbody><tr>
			<td class="smallfont" colspan="3">$vbphrase[tmnt_title]</td>
		</tr>
		<tr>
			<td>
				<input class="bginput" name="title" type="text" id="title" size="60" maxlength="64" value="$title" />
			</td>
		</tr>
		</tbody></table>
        <if condition="$status == $vbphrase[tmnt_waiting]">
        <div class="fieldset">
			$vbphrase[tmnt_type]:<br>
			<select name="type">
				<option value="1v1" <if condition="$type == $vbphrase[tmnt_1v1]">selected="selected"</if>>$vbphrase[tmnt_1v1]</option>
				<option value="LMS" <if condition="$type == $vbphrase[tmnt_lms]">selected="selected"</if>>$vbphrase[tmnt_lms]</option>
			</select>
		</div>
        <else />
		<input name="type" type="hidden" value="$tmnts[type]" /></if>
        <div class="fieldset">
			Current Tournament $vbphrase[tmnt_date] in your Timezone:
			<div class="time" style="font-style: italic;">$properdate</div>
		</div>
		<div class="fieldset">
			Change tournament time:<br>
			<input type="radio" name="changedate" value="0" onClick="showhide(this.value,'divtxta')" checked="checked">$vbphrase[no] <input type="radio" name="changedate" value="1" onClick="showhide(this.value,'divtxta')">$vbphrase[yes] 
<div id="divtxta" style="display: none;">
<!-- start / end date / time -->
					<select name="month" title="month" tabindex="1">
						<option value="1" title="Month">January</option>
						<option value="2" title="Month">February</option>
						<option value="3" title="Month">March</option>
						<option value="4" title="Month">April</option>
						<option value="5" title="Month">May</option>
						<option value="6" title="Month">June</option>
						<option value="7" title="Month">July</option>
						<option value="8" title="Month">August</option>
						<option value="9" title="Month">September</option>
						<option value="10" title="Month">October</option>
						<option value="11" title="Month">November</option>
						<option value="12" title="Month">December</option>
					</select>
					<input class="bginput" style="font-size: 11px;" name="day" value="$thisday" size="3" maxlength="2" title="day" tabindex="1" type="text" />
					<select name="year" title="year" tabindex="1">
						<option title="year" value="2008">2008</option>
						<option title="year" value="2009">2009</option>
						<option title="year" value="2010">2010</option>
						<option title="year" value="2011">2011</option>
						<option title="year" value="2012">2012</option>
					</select>
					<select name="time" title="time" tabindex="1">
						<option title="time" value="0" class="">Midnight</option>
						<option title="time" value="1" class="">01:00 am</option>
						<option title="time" value="2" class="">02:00 am</option>
						<option title="time" value="3" class="">03:00 am</option>
						<option title="time" value="4" class="">04:00 am</option>
						<option title="time" value="5" class="">05:00 am</option>
						<option title="time" value="6" class="">06:00 am</option>
						<option title="time" value="7" class="">07:00 am</option>
						<option title="time" value="8" class="">08:00 am</option>
						<option title="time" value="9" class="">09:00 am</option>
						<option title="time" value="10" class="">10:00 am</option>
						<option title="time" value="11" class="">11:00 am</option>
						<option title="time" value="12" class="">Midday</option>
						<option title="time" value="13" class="">01:00 pm</option>
						<option title="time" value="14" class="">02:00 pm</option>
						<option title="time" value="15" class="">03:00 pm</option>
						<option title="time" value="16" class="">04:00 pm</option>
						<option title="time" value="17" class="">05:00 pm</option>
						<option title="time" value="18" class="">06:00 pm</option>
						<option title="time" value="19" class="">07:00 pm</option>
						<option title="time" value="20" class="">08:00 pm</option>
						<option title="time" value="21" class="">09:00 pm</option>
						<option title="time" value="22" class="">10:00 pm</option>
						<option title="time" value="23" class="">11:00 pm</option>
					</select>
					<div class="smallfont"> $vbphrase[tmnt_gmt] </div>
		<!-- / start / end date / time -->	
</div>
		</div>
        <if condition="$tmnt[type] == $vbphrase[tmnt_lms]">
		<div class="fieldset">
			$vbphrase[tmnt_scoretype] (Singular Form eg. Point not Points):<br>
			<input class="bginput" name="scoretype" type="text" id="scoretype" size="40" maxlength="64" value="$scoretype" />
		</div><else />
		<input name="scoretype" type="hidden" value="$scoretype" /></if>
		<if condition="$team">
        <div class="fieldset">
			 Minimum/ Maximum Team Members:<br>
			<input class="bginput" name="tmin" value="$tmin" size="5" maxlength="3" type="text" />
            <input class="bginput" name="tmax" value="$tmax" size="5" maxlength="3" type="text" />
		</div>
		</if>
        <div class="smallfont">$vbphrase[tmnt_desc]:</div>
		$messagearea <br />
		<fieldset class="fieldset">
			<legend>$vbphrase[options]</legend>
			<div style="padding: 3px;">
				<div><label for="archive"><input name="archive" value="1" id="archive" <if condition="$archive == 1">checked="checked"</if> type="checkbox" />Tournament is closed: Users cannot comment in this tournament</label></div>
				<div><label for="sticky"><input name="sticky" value="1" id="sticky" <if condition="$sticky == 1">checked="checked"</if> type="checkbox" />Tournament is sticky: Tournament remains at top of tournament listings</label></div>				
			</div>
		</fieldset>
		</div>
	</div>
	<div style="margin-top: 6px;">
		<input class="button" name="edit" type="submit" id="edit" value="$vbphrase[tmnt_edit]" />
        <input class="button" value="$vbphrase[tmnt_cancel]" onclick="window.location.href='competitions.php&do=view&id=$id'" type="button" />
	</div>
    </form>
	</td>
</tr>
</tbody>
</table>
tnmt_editann:
Code:
$vBeditTemplate[clientscript]
<form action="" name="vbform" method="post" enctype="multipart/form-data" <if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.title.value, 0)"</if>>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
  <tr>
    <td class="tcat"><span class="smallfont" style="float:right"><strong>$vbphrase[announcement]</strong>: <a href="competitions.php?do=viewannouncement&amp;id=$id">$title</a></span> $vbphrase[tmnt_editann] </td>
  </tr>
  <tr>
    <td class="panelsurround" align="center"><div class="panel">
        <div style="width:$stylevar[formwidth]" align="left">
          <table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:3px">
            <tr>
              <td class="smallfont">$vbphrase[title]:</td>
            </tr>
            <tr>
              <td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="100" />
              </td>
            </tr>
          </table>
          <div class="smallfont">$vbphrase[announcement]:</div>
          $messagearea
        </div>
      </div>
      </div>
      <div style="margin-top:6px">
<input type="hidden" name="do" value="updateannouncement" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input name="id" type="hidden" value="$id" />
<input name="userid" type="hidden" value="$bbuserinfo[userid]" />
<input name="username" type="hidden" value="$bbuserinfo[username]" />
        <input name="edit" type="submit" id="edit" value="$vbphrase[tmnt_edit]" />
        <input value="$vbphrase[tmnt_cancel]" onclick="window.location.href='competitions.php?do=viewannouncement&amp;id=$id'" type="button" />
      </div></td>
  </tr>
</table>
</form>
tnmt_editrules:
Code:
$vBeditTemplate[clientscript]
<form action="" name="vbform" method="post" enctype="multipart/form-data" 
<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.title.value, 0)"</if>
>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
  <tr>
    <td class="tcat">$vbphrase[tmnt_editrules] </td>
  </tr>
  <tr>
    <td class="panelsurround" align="center"><div class="panel">
        <div style="width:$stylevar[formwidth]" align="left">
          <div class="smallfont">$vbphrase[tmnt_rules]:</div>
          $messagearea
        </div>
      </div>
      </div>
      <div style="margin-top:6px">
<input type="hidden" name="do" value="updaterules" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input name="userid" type="hidden" value="$bbuserinfo[userid]" />
<input name="username" type="hidden" value="$bbuserinfo[username]" />
        <input name="edit" type="submit" id="edit" value="$vbphrase[tmnt_edit]" />
        <input value="$vbphrase[tmnt_cancel]" onclick="window.location.href='competitions.php?do=rules'" type="button" />
      </div></td>
  </tr>
</table>
</form>
tmnt_editteam:
Code:
$vBeditTemplate[clientscript]
<form action="" name="vbform" method="post" enctype="multipart/form-data" 
<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.title.value, 0)"</if>
>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
  <tr>
    <td class="tcat"><span class="smallfont" style="float:right"><strong>$vbphrase[tmnt_team]</strong>: <a href="competitions.php?do=viewteam&amp;id=$id">$teamname</a></span> $vbphrase[tmnt_editteam] </td>
  </tr>
  <tr>
    <td class="panelsurround" align="center"><div class="panel">
        <div style="width:$stylevar[formwidth]" align="left">
          <table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:3px">
            <tr>
              <td class="smallfont">$vbphrase[tmnt_teamname]:</td>
            </tr>
            <tr>
              <td><input name="title" type="text" id="title" size="60" maxlength="100" value="$teamname" />
              </td>
            </tr>
            <tr>
              <td class="smallfont">$vbphrase[tmnt_teamslogan]:</td>
            </tr>
            <tr>
              <td><input name="slogan" type="text" id="slogan" size="60" maxlength="100" value="$slogan" />
              </td>
            </tr>
            <tr>
              <td class="smallfont">$vbphrase[tmnt_teamtags]:</td>
            </tr>
            <tr>
              <td><input name="tag" type="text" id="tag" size="60" maxlength="80" value="$tag" />
              </td>
            </tr>
          </table>
          <div class="smallfont">$vbphrase[tmnt_shortteamdescription]:</div>
          $messagearea
          <br />
				<fieldset class="fieldset">
					<legend>$vbphrase[tmnt_newteamlogo]</legend>
					<table width="100%" border="0" cellpadding="0" cellspacing="3">
					<tbody><tr valign="bottom">
						<td>
							<span class="smallfont">Upload Image From Your Computer</span>
							<br />
                            <input name="teamlogo" size="30" type="file" id="teamlogo" class="bginput" />
							<br>
							<span class="smallfont">Note: Leave field above blank to keep current team logo</span>
						</td>
					</tr>
					</tbody></table>
				</fieldset>
        </div>
      </div>
      </div>
      <div style="margin-top:6px">
<input type="hidden" name="do" value="updateteam" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input name="id" type="hidden" value="$id" />
<input name="oldteamlogo" value="$team[teamlogo]" type="hidden" />
<input name="userid" type="hidden" value="$bbuserinfo[userid]" />
<input name="username" type="hidden" value="$bbuserinfo[username]" />
        <input name="edit" type="submit" id="edit" value="$vbphrase[tmnt_edit]" />
        <input value="$vbphrase[tmnt_cancel]" onclick="window.location.href='competitions.php?do=viewteam&amp;id=$id'" type="button" />
      </div></td>
  </tr>
</table>
</form>
tmnt_ladder_edit:
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody><tr>
	<td class="tcat">$vbphrase[ladder_editing]</td>
</tr>
<tr>
	<td class="thead">$vbphrase[title]: <span style="font-weight: normal;"> $title </span></td>
</tr>

<tr>
	<td class="panelsurround" align="center">
<form action="" method="post" enctype="multipart/form-data" <if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.title.value, 4)"</if>>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input name="id" type="hidden" value="$id" />
<input name="status" type="hidden" value="$status" />
<input name="userid" type="hidden" value="$bbuserinfo[userid]" />
<input name="username" type="hidden" value="$bbuserinfo[username]" />
<input name="noplayers" type="hidden" value="$noplayers" />
<input type="hidden" name="do" value="updateladder" />
	<div class="panel">
        <div style="width:$stylevar[formwidth]" align="left">
		<table style="margin-bottom: 3px;" border="0" cellpadding="0" cellspacing="0">
		<tbody><tr>
			<td class="smallfont" colspan="3">$vbphrase[ladder_title]</td>
		</tr>
		<tr>
			<td>
				<input class="bginput" name="title" type="text" id="title" size="40" maxlength="64" value="$title" />
			</td>
		</tr>
		</tbody></table>
		<if condition="$team">
        <div class="fieldset">
			 Minimum/ Maximum Team Members:<br>
			<input class="bginput" name="tmin" value="$tmin" size="5" maxlength="3" type="text" />
            <input class="bginput" name="tmax" value="$tmax" size="5" maxlength="3" type="text" />
		</div>
		</if>
        <div class="smallfont">$vbphrase[ladder_description]:</div>
		$messagearea <br />
		<fieldset class="fieldset">
			<legend>$vbphrase[options]</legend>
			<div style="padding: 3px;">
				<label for="archive"><input name="archive" value="1" id="archive" <if condition="$archive == 1">checked="checked"</if> type="checkbox" />Ladder is closed: Users cannot join or challenge in this ladder</label>
				<div><label for="sticky"><input name="sticky" value="1" id="sticky" <if condition="$sticky == 1">checked="checked"</if> type="checkbox" />Ladder is sticky: Ladder remains at top of ladder listings</label></div>				
			</div>
		</fieldset>
		</div>
	</div>
	<div style="margin-top: 6px;">
		<input class="button" name="edit" type="submit" id="edit" value="$vbphrase[submit]" />
        <input class="button" value="$vbphrase[cancel]" onclick="window.location.href='competitions.php?do=viewladder&amp;id=$id'" type="button" />
	</div>
    </form>
	</td>
</tr>
</tbody>
</table>
tmnt_ladder_new:
Code:
$vBeditTemplate[clientscript]
<form action="" method="post" enctype="multipart/form-data" name="vbform" <if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.title.value, 5)"</if>>
<input type="hidden" name="do" value="insertladder" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input name="userid" type="hidden" value="$bbuserinfo[userid]" />
<input name="username" type="hidden" value="$bbuserinfo[username]" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
  <tr>
    <td class="tcat"> $vbphrase[tmnt_newladder] </td>
  </tr>
  <tr>
    <td class="panelsurround" align="center"><div class="panel">
        <div style="width:$stylevar[formwidth]" align="left">
          <table cellpadding="0" cellspacing="0" border="0" class="fieldset">
            <tr>
              <td class="smallfont">$vbphrase[ladder_title]:</td>
            </tr>
            <tr>
              <td><input name="title" type="text" id="title" class="bginput" size="60" />
              </td>
            </tr>
          </table>
		  <table cellpadding="0" cellspacing="0" border="0" class="fieldset">
            <tr>
              <td class="smallfont" nowrap="nowrap">$vbphrase[tmnt_pot_long]:</td>
            </tr>
			<tr>
              <td><select name="pot" id="pot"><option value="0" selected="selected" title="pot">$vbphrase[tmnt_players]</option><option value="1">$vbphrase[tmnt_teams_short]</option></select>
              </td>
			 </tr>
		   </table>
          <div class="smallfont">$vbphrase[ladder_desc]:</div>
          $messagearea </div>
      </div>
      <div style="margin-top:6px"><input name="add" type="submit" id="add" value="$vbphrase[submit]" /> <input value="$vbphrase[cancel]" onclick="window.location.href='competitions.php?do=ladders'" type="button" /></div></td>
  </tr>
</table>
</form>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01288 seconds
  • Memory Usage 1,891KB
  • 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
  • (6)bbcode_code
  • (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