Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Football Fixtures
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #1
Football Fixtures
Requirement: XThreads
Last Updated: 7 October 2012

We will try to create a very simple Football Fixtures. We will use EPL fixtures only as example fixtures.

Here is a simple example to do that:

Create or edit a forum with these settings:
  • Template Prefix: xtff_
  • Show first post on every showthread page: Yes
  • Settings Overrides:
    • Setting: Showthread Options -> Post Layout
      Value: horizontal

      Code:
      postlayout=horizontal

  • Custom WOL Text:
    • Forum Display:

      HTML Code
      Viewing <a href="{1}">{2}</a>

    • New Thread:

      HTML Code
      Submitting a new match

    • New Reply:

      HTML Code
      Commenting <a href="{1}">{2}</a> match

    • Show Thread:

      HTML Code
      Viewing <a href="{1}">{2}</a> match


Create a Custom Thread Fields with these settings:
AdminCP -> Configuration -> Custom Thread Fields
  1. Listbox for Home Team
    • Title: Home Team
    • Key: xtff_ht
    • Applicable Forums: 'select our Football Fixtures forum.'
    • Input Field Type: Listbox
    • Input Field Type: 1
    • Values List:

      Code:
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      Arsenal
      Aston Villa
      Birmingham City
      Blackburn Rovers
      Blackpool
      Bolton Wanderers
      Chelsea
      Everton
      Fulham
      Liverpool
      Manchester City
      Manchester United
      Newcastle United
      Stoke City
      Sunderland
      Tottenham Hotspur
      West Bromwich Albion
      West Ham United
      Wigan Athletic
      Wolverhampton Wanderers

      Should enough for EPL 2010/2011 Biggrin

    • Editable by / Required Field?: Everyone (required)
    • Allow Filtering: Yes
    • Display Format:

      Code:
      <setvar img_ht>'<img src="images/club_logo/'.str_replace(' ','',{VALUE}).'.jpg" title="'.{VALUE}.'" alt="'.{VALUE}.'" />'</setvar><setvar text_ht>{VALUE}</setvar><setvar img_htp>'<img src="images/club_logo/'.str_replace(' ','',{VALUE}).'_b.jpg" title="'.{VALUE}.'" alt="'.{VALUE}.'" />'</setvar>

  2. Listbox for Away Team
    The Value List of this custom thread fields is the same as the custom thread fields above.
    • Title: Away Team
    • Key: xtff_at
    • Applicable Forums: 'select our Football Fixtures forum.'
    • Input Field Type: Listbox
    • Input Field Type: 2
    • Values List:

      Code:
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      Arsenal
      Aston Villa
      Birmingham City
      Blackburn Rovers
      Blackpool
      Bolton Wanderers
      Chelsea
      Everton
      Fulham
      Liverpool
      Manchester City
      Manchester United
      Newcastle United
      Stoke City
      Sunderland
      Tottenham Hotspur
      West Bromwich Albion
      West Ham United
      Wigan Athletic
      Wolverhampton Wanderers

    • Editable by / Required Field?: Everyone (required)
    • Allow Filtering: Yes
    • Display Format:

      Code:
      <setvar img_at>'<img src="images/club_logo/'.str_replace(' ','',{VALUE}).'.jpg" title="'.{VALUE}.'" alt="'.{VALUE}.'" />'</setvar><setvar text_at>{VALUE}</setvar><setvar img_atp>'<img src="images/club_logo/'.str_replace(' ','',{VALUE}).'_b.jpg" title="'.{VALUE}.'" alt="'.{VALUE}.'" />'</setvar>

  3. Textbox for Match Day / Date of The Match
    • Title: Match Day
    • Key: xtff_md
    • Applicable Forums: 'select our Football Fixtures forum.'
    • Input Field Type: Texbox
    • Maximum Text Length: 10
    • Field Input Width: 10
    • Editable by / Required Field?: Everyone (required)
    • Text Mask Filter: Date (mm/dd/yyyy)
  4. Textbox for Score Home Team (Full Time)
    • Title: Score Home Team (FT)
    • Key: xtff_hft
    • Applicable Forums: 'select our Football Fixtures forum.'
    • Input Field Type: Texbox
    • Maximum Text Length: 2
    • Field Input Width: 2
      Max score: 99
    • Editable by / Required Field?: Everyone
      We make this not a required field, because we should be able to add the next fixtures.
      Later, after the game played, we need to edit the thread, and put the result.
    • Blank Replacement Value:

      HTML Code
      <strong>&ndash;</strong>

    • Display Format:

      HTML Code
      <strong>{VALUE}</strong>

    • Text Mask Filter: Digits
  5. Textbox for Score Away Team (Full Time)
    This custom thread fields is very similar like the custom thread fields above.
    • Title: Score Away Team (FT)
    • Key: xtff_aft
    • Applicable Forums: 'select our Football Fixtures forum.'
    • Input Field Type: Texbox
    • Maximum Text Length: 2
    • Field Input Width: 2
    • Editable by / Required Field?: Everyone
    • Blank Replacement Value:

      HTML Code
      <strong>&ndash;</strong>

    • Display Format:

      HTML Code
      <strong>{VALUE}</strong>

    • Text Mask Filter: Digits



Create new templates in Global Template:
AdminCP -> Templates & Style -> Templates -> Global Templates
  1. xtff_editpost_first

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    <html>
    <head>
    <title>{$mybb->settings['bbname']} - {$lang->edit_post}</title>
    {$headerinclude}
    <script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
    </head>
    <body>
    {$header}
    {$preview}
    {$post_errors}
    {$attacherror}
    <form action="editpost.php" method="post" name="editpost">
    	<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
    	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    		<tr>
    			<td class="thead" colspan="3"><strong>{$lang->delete_post}</strong></td>
    		</tr>
    		<tr>
    			<td class="trow1" style="white-space: nowrap"><input type="checkbox" class="checkbox" name="delete" value="1" tabindex="9" /> <strong>{$lang->delete_q}</strong></td>
    			<td class="trow1" width="100%">{$lang->delete_1}<br /><span class="smalltext">{$lang->delete_2}</span></td>
    			<td class="trow1"><input type="submit" class="button" name="submit" value="{$lang->delete_now}" tabindex="10" /></td>
    		</tr>
    	</table>
    	<input type="hidden" name="action" value="deletepost" />
    	<input type="hidden" name="pid" value="{$pid}" />
    </form>
    <br />
    <form action="editpost.php?pid={$pid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
    	<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
    	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    		<tr>
    			<td class="thead largetext" colspan="2" align="center"><strong>Edit Match</strong></td>
    		</tr>
    		<tr>
    			<td class="tcat" align="center" width="1"><strong>Match Review</strong></td>
    			<td class="tcat" align="center"><strong>Match Info</strong></td>
    		</tr>
    		<tr>
    			<td class="trow2" align="center" valign="top">
    				<textarea name="message" id="message" rows="20" cols="70" tabindex="3">{$message}</textarea>
    				{$codebuttons}
    			</td>
    			<td class="trow2" align="center" valign="top">
    				<table border="0" width="100%">
    					<tr>
    						<td class="trow2">
    							<div><strong>Match Title:</strong></div>
    							{$prefixselect}<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" />
    						</td>
    					</tr>
    					{$extra_threadfields}
    				</table>
    			</td>
    		</tr>
    		{$pollbox}
    	</table>
    	{$attachbox}
    	<br />
    	<div align="center"><input type="submit" class="button" name="submit" value="{$lang->update_post}" tabindex="3" accesskey="s" />  <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="4" /></div>
    	<input type="hidden" name="action" value="do_editpost" />
    	<input type="hidden" name="posthash" value="{$posthash}" />
    	<input type="hidden" name="attachmentaid" value="" />
    	<input type="hidden" name="attachmentact" value="" />
    </form>
    {$footer}
    </body>
    </html>

  2. xtff_forumdisplay_thread

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    <tr>
    	<td class="{$bgcolor}{$thread_type_class}" style="text-align: center;"><a href="{$thread['threadlink']}" title="{$thread['subject']}">{$GLOBALS['threadfields']['xtff_md']}</a></td>
    	<td class="{$bgcolor}{$thread_type_class}" style="text-align: center;">{$tplvars['img_ht']}</td>
    	<td class="{$bgcolor}{$thread_type_class}" style="text-align: center;">
    		<a href="{$forumurl_q}filtertf_xtff_ht={$tplvars['text_ht']}"><strong>{$tplvars['text_ht']}</strong></a>
    	</td>
    	<td class="{$bgcolor}{$thread_type_class}" style="text-align: center;">
    		<a href="{$forumurl_q}filtertf_xtff_ht={$tplvars['text_ht']}&amp;filtertf_xtff_at={$tplvars['text_at']}" title="History">
    			<span style="margin-right: 3px;"><strong>{$GLOBALS['threadfields']['xtff_hft']}</strong></span>
    			<span class="largetext"><strong>:</strong></span>
    			<span style="margin-left: 3px;"><strong>{$GLOBALS['threadfields']['xtff_aft']}</strong></span>
    		</a>
    	</td>
    	<td class="{$bgcolor}{$thread_type_class}" style="text-align: center;">
    		<a href="{$forumurl_q}filtertf_xtff_at={$tplvars['text_at']}"><strong>{$tplvars['text_at']}</strong></a>
    	</td>
    	<td class="{$bgcolor}{$thread_type_class}" style="text-align: center;">{$tplvars['img_at']}</td>
    	{$modbit}
    </tr>

  3. xtff_forumdisplay_threadlist

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    <div class="float_left">
    	{$multipage}
    </div>
    <div class="float_right">
    	{$newthread}
    </div>
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="clear: both; width: 100%;">
    	<tr>
    		<td valign="top">
    			<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
    				<tr>
    					<td class="thead" colspan="{$colspan}">
    						<div>
    							<a href="{$forumurl}"><strong>{$foruminfo['name']}</strong></a>
    						</div>
    					</td>
    				</tr>
    				<tr>
    					<td class="tcat smalltext" width="100" style="text-align: center;"><strong>Date</strong></td>
    					<td class="tcat smalltext" width="1">&nbsp;</td>
    					<td class="tcat smalltext" style="text-align: center;"><strong>Home Team</strong></td>
    					<td class="tcat smalltext" width="100" style="text-align: center;"><strong>Score</strong></td>
    					<td class="tcat smalltext" style="text-align: center;"><strong>Away Team</strong></td>
    					<td class="tcat smalltext" width="1">&nbsp;</td>
    					{$inlinemodcol}
    				</tr>
    				{$threads}{$nullthreads}
    			</table>
    		</td>
    	</tr>
    </table>
    <div class="float_left">
    	{$multipage}
    </div>
    <div class="float_right" style="margin-top: 4px;">
    	{$newthread}
    </div>
    <br style="clear: both;" />
    <br />
    <div class="float_right" style="text-align: right;">
    	{$inlinemod}
    	{$searchforum}
    	{$forumjump}
    </div>
    <br style="clear: both" />
    {$inline_edit_js}

  4. xtff_newthread

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    <html>
    <head>
    <title>{$lang->newthread_in}</title>
    {$headerinclude}
    <script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
    </head>
    <body>
    {$header}
    {$preview}
    {$thread_errors}
    {$attacherror}
    <form action="newthread.php?fid={$fid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
    	<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
    	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    		<tr>
    			<td class="thead largetext" colspan="2" align="center"><strong>New Match</strong></td>
    		</tr>
    		<tr>
    			<td class="tcat" align="center" width="1"><strong>Match Review</strong></td>
    			<td class="tcat" align="center"><strong>Match Info</strong></td>
    		</tr>
    		<tr>
    			<td class="trow2" align="center" valign="top">
    				<textarea name="message" id="message" rows="20" cols="70" tabindex="2">{$message}</textarea>
    				{$codebuttons}
    				{$multiquote_external}
    			</td>
    			<td class="trow2" align="center" valign="top">
    				<table border="0" width="100%">
    					<tr>
    						<td class="trow2">
    							<div><strong>Match Title:</strong></div>
    							{$prefixselect}<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" />
    						</td>
    					</tr>
    					{$extra_threadfields}
    				</table>
    			</td>
    		</tr>
    		{$modoptions}
    		{$pollbox}
    		{$captcha}
    	</table>
    	{$attachbox}
    	<br />
    	<div style="text-align:center"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" />  <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />{$savedraftbutton}</div>
    	<input type="hidden" name="action" value="do_newthread" />
    	<input type="hidden" name="posthash" value="{$posthash}" />
    	<input type="hidden" name="attachmentaid" value="" />
    	<input type="hidden" name="attachmentact" value="" />
    	<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
    	<input type="hidden" name="tid" value="{$tid}" />
    	{$editdraftpid}
    </form>
    {$forumrules}
    {$footer}
    </body>
    </html>

  5. xtff_postbit

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    {$ignore_bit}
    <a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    	<tbody>
    		<tr>
    			<td class="trow2 post_content {$unapproved_shade}">
    				{$post['posturl']}
    				<div class="smalltext">
    					Comment by:
    					<a href="{$post['profilelink_plain']}" id="profile_{$post['pid']}">{$post['username_formatted']}</a>
    				</div>
    				<div class="smalltext">
    					Submitted: {$post['postdate']}, {$post['posttime']}
    				</div>
    				<div><span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></div>
    				<div id="profile_{$post['pid']}_popup" class="popup_menu" style="display: none;">
    					<div class="popup_item_container">
    						<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
    							<tr>
    								<td class="trow1" valign="top" align="center">
    									<div><strong>{$post['profilelink']}</strong></div>
    									<div class="smalltext">{$post['useravatar']}</div>
    									<div class="smalltext">{$post['usertitle']}</div>
    									<div class="smalltext">{$post['userstars']}</div>
    									<div class="smalltext">{$post['groupimage']}</div>
    									<div class="smalltext">{$post['user_details']}</div>
    								</td>
    							</tr>
    							<tr>
    								<td class="tcat" align="center">
    									{$post['button_email']}
    									{$post['button_pm']}
    									{$post['button_www']}
    									{$post['button_find']}
    									{$post['button_rep']}
    								</td>
    							</tr>
    						</table>
    					</div>
    				</div>
    				<div class="post_body" id="pid_{$post['pid']}">
    					{$post['message']}
    				</div>
    				<div class="post_meta" id="post_meta_{$post['pid']}">
    					{$post['iplogged']}
    				</div>
    				<div class="post_management_buttons float_right clear">
    					{$post['button_edit']}
    					{$post['button_quickdelete']}
    					{$post['button_quote']}
    					{$post['button_multiquote']}
    					{$post['button_report']}
    					{$post['button_warn']}
    				</div>
    			</td>
    		</tr>
    	</tbody>
    </table>
    <script type="text/javascript">
    // <!--
    	if(use_xmlhttprequest == "1")
    	{
    		new PopupMenu("profile_{$post['pid']}");
    	}
    // -->
    </script>

  6. xtff_postbit_first

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    {$ignore_bit}
    <a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    	<tbody>
    		<tr>
    			<td class="trow2 post_content {$unapproved_shade}">
    				<div class="largetext">Match Day: {$GLOBALS['threadfields']['xtff_md']}</div>
    				<br />
    				<table width="100%" border="0">
    					<tr>
    						<td class="trow2 {$unapproved_shade}" style="text-align: center;" width="300">
    							<div>{$GLOBALS['tplvars']['img_htp']}</div>
    							<div class="largetext"><strong>{$GLOBALS['tplvars']['text_ht']}</strong></div>
    						</td>
    						<td class="trow2 largetext {$unapproved_shade}" style="text-align: center;">
    							<span style="margin-right: 3px;"><strong>{$GLOBALS['threadfields']['xtff_hft']}</strong></span>
    							<span class="largetext"><strong>:</strong></span>
    							<span style="margin-left: 3px;"><strong>{$GLOBALS['threadfields']['xtff_aft']}</strong></span>
    						</td>
    						<td class="trow2 {$unapproved_shade}" style="text-align: center;" width="300">
    							<div>{$GLOBALS['tplvars']['img_atp']}</div>
    							<div class="largetext"><strong>{$GLOBALS['tplvars']['text_at']}</strong></div>
    						</td>
    					</tr>
    				</table>
    				<br class="clear" />
    				{$post['posturl']}
    				<div><strong>{$post['subject']} {$post['subject_extra']}</strong></div>
    				<div class="smalltext">
    					Match Review by:
    					<a href="{$post['profilelink_plain']}" id="profile_{$post['pid']}">{$post['username_formatted']}</a>
    				</div>
    				<div class="smalltext">
    					Submitted: {$post['postdate']}, {$post['posttime']}
    				</div>
    				<div><span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></div>
    				<div id="profile_{$post['pid']}_popup" class="popup_menu" style="display: none;">
    					<div class="popup_item_container">
    						<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
    							<tr>
    								<td class="trow1" valign="top" align="center">
    									<div><strong>{$post['profilelink']}</strong></div>
    									<div class="smalltext">{$post['useravatar']}</div>
    									<div class="smalltext">{$post['usertitle']}</div>
    									<div class="smalltext">{$post['userstars']}</div>
    									<div class="smalltext">{$post['groupimage']}</div>
    									<div class="smalltext">{$post['user_details']}</div>
    								</td>
    							</tr>
    							<tr>
    								<td class="tcat" align="center">
    									{$post['button_email']}
    									{$post['button_pm']}
    									{$post['button_www']}
    									{$post['button_find']}
    									{$post['button_rep']}
    								</td>
    							</tr>
    						</table>
    					</div>
    				</div>
    				<br class="clear" />
    				<div class="post_body" id="pid_{$post['pid']}">
    					{$post['message']}
    				</div>
    				<div class="post_meta" id="post_meta_{$post['pid']}">
    					{$post['iplogged']}
    				</div>
    				<div class="post_management_buttons float_right clear">
    					{$post['button_edit']}
    					{$post['button_quickdelete']}
    					{$post['button_quote']}
    					{$post['button_multiquote']}
    					{$post['button_report']}
    					{$post['button_warn']}
    				</div>
    			</td>
    		</tr>
    	</tbody>
    </table>
    <script type="text/javascript">
    // <!--
    	if(use_xmlhttprequest == "1")
    	{
    		new PopupMenu("profile_{$post['pid']}");
    	}
    // -->
    </script>

  7. xtff_postbit_first_posturl

    HTML Code
    <div style="float: right; width: auto; vertical-align: top"><span class="smalltext">{$post['inlinecheck']}</span></div>

  8. xtff_postbit_posturl

    HTML Code
    <div style="float: right; width: auto; vertical-align: top"><span class="smalltext"><strong><a href="{$post['postlink']}#pid{$post['pid']}">#{$postcounter}</a></strong>{$post['inlinecheck']}</span></div>

  9. xtff_showthread

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    <html>
    <head>
    <title>{$thread['subject']}</title>
    {$headerinclude}
    <script type="text/javascript">
    <!--
    	var quickdelete_confirm = "{$lang->quickdelete_confirm}";
    // -->
    </script>
    <script type="text/javascript" src="jscripts/thread.js?ver=1600"></script>
    </head>
    <body>
    {$header}
    {$pollbox}
    <div>
    	{$first_post}
    </div>
    <br class="clear" />
    <div style="text-align: center;">
    	<strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
    </div>
    <br class="clear" />
    <div class="largetext float_right">Match Comments</div>
    <div id="posts" class="clear">
    	{$posts}
    </div>
    
    <div class="float_left">
    	{$multipage}
    </div>
    <div style="padding-top: 4px;" class="float_right">
    	{$newreply}
    </div>
    <br style="clear: both;" />
    {$quickreply}
    {$threadexbox}
    {$similarthreads}
    <br />
    <div class="float_left">
    	<ul class="thread_tools">
    		<li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
    		<li class="sendthread"><a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></li>
    		<li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a></li>
    	</ul>
    </div>
    <div class="float_right" style="text-align: right;">
    	{$moderationoptions}
    	{$forumjump}
    </div>
    <br style="clear: both;" />
    {$usersbrowsing}
    {$footer}
    </body>
    </html>

  10. xtff_showthread_noreplies

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    <table border="0" cellspacing="{$GLOBALS['theme']['borderwidth']}" cellpadding="{$GLOBALS['theme']['tablespace']}" class="tborder" id="xthreads_noreplies">
    	<tr>
    		<td class="trow2" style="text-align: center;">
    			<div style="padding: 5px;">There is no comment in this match.</div>
    		</td>
    	</tr>
    </table>

  11. xtff_threadfields_inputrow

    HTML Code
    1
    2
    3
    4
    5
    6
    <tr>
    <td class="{$altbg}">
    <div><strong>{$tf['title']}</strong></div>
    {$inputfield}<small style="display: block;">{$tf['desc']}</small>
    </td>
    </tr>



Additional Info:
  • We need two images for each clubs, small image (for threadlist) and big image (for showthread).
    Example:
    1. Club: Liverpool - Small Image: Liverpool.jpg - Big Image: Liverpool_b.jpg
    2. Club: Manchester United - Small Image: ManchesterUnited.jpg - Big Image: ManchesterUnited_b.jpg
    Upload the images to our images/club_logo folder.
  • The example above is a very simple example. It is only for the basic system, like club match history as home/away team and head to head story as home/away team. There are some aspects can be expanded with more custom thread fields, like adding Half Time Score, Season, League, and etc. It will make this forum doesn't have ending story Biggrin
  • We can use MyBB Polling as Users Prediction for each match. Or, use the polling as Users Prediction just for Big Match.
  • The templates above based on MyBB 1.6 template.

Please tell me if there is something wrong with the code above. I'm still learning Biggrin

Screenshots:
Showthread - Threadlist
       

Live Demo: http://www.14.mynie.co.cc/forumdisplay.php?fid=44
Because I really love football, so, I make it based on the actual fixtures (not finished yet) Biggrin

(This post was last modified: 10-08-2012 02:33 AM by RateU.)
02-03-2011 10:45 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Football Fixtures - RateU - 02-03-2011 10:45 AM
RE: Football Fixtures - RocketFoot - 02-04-2011, 07:02 AM
RE: Football Fixtures - maggi_kawah - 02-12-2011, 07:27 AM
RE: Football Fixtures - ZiNgA BuRgA - 02-12-2011, 08:43 AM
RE: Football Fixtures - leefish - 02-12-2011, 10:00 AM
RE: Football Fixtures - RateU - 02-13-2011, 03:09 AM
RE: Football Fixtures - AglioEoliO - 04-27-2011, 08:38 AM
RE: Football Fixtures - Skatman - 04-28-2011, 07:50 AM
RE: Football Fixtures - ZerOne01 - 06-01-2011, 03:26 PM
RE: Football Fixtures - RateU - 06-02-2011, 02:32 AM
RE: Football Fixtures - ZerOne01 - 06-02-2011, 03:43 AM
RE: Football Fixtures - RateU - 06-02-2011, 04:26 AM
RE: Football Fixtures - ZerOne01 - 06-02-2011, 09:43 AM
RE: Football Fixtures - ZiNgA BuRgA - 06-02-2011, 12:37 PM
RE: Football Fixtures - ZerOne01 - 06-02-2011, 06:48 PM
RE: Football Fixtures - RateU - 10-08-2012, 02:32 AM
RE: Football Fixtures - dthiago - 08-24-2013, 06:30 AM
RE: Football Fixtures - SaintSinner - 02-12-2014, 10:55 PM
RE: Football Fixtures - SaintSinner - 02-15-2014, 06:21 AM
RE: Football Fixtures - SaintSinner - 02-16-2014, 11:22 PM
RE: Football Fixtures - SaintSinner - 02-21-2014, 08:14 PM
RE: Football Fixtures - basha - 08-18-2016, 02:44 AM

 Standard Tools
Forum Jump: