Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Themes Downloads
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #1
Themes Downloads
Requirement: XThreads

Based on the Topic Images and Thread Description example application, and the MyBB Downloads Area, we will try to create a very simple Themes Downloads / Portfolio.

Create or edit a forum with these settings:
  • Template Prefix:

    Code:
    <if $mybb->input['download'] == 'download' then>thdld_download_,</if>thdld_

  • Language File Prefix: thdld_
  • Enable XThreads' Inline Forum Search: Yes
  • Offset forumdisplay {$colspan}: 1
  • Custom WOL Text:
    • Forum Display:

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

    • New Thread:

      HTML Code
      Submitting a new Theme

    • New Reply:

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

    • Show Thread:

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


Create a Custom Thread Fields with these settings:
AdminCP -> Configuration -> Custom Thread Fields
  1. Textbox for Short Description:
    • Title: Short Description
    • Key: thdld_desc
    • Applicable Forums: 'select our Themes Downloads forum'
    • Editable by / Required Field?: Everyone (required)
    • Display Order: 1
    • Display Format:

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

    • Hide Input Field: Yes
  2. Listbox for Color:
    • Title: Color
    • Key: thdld_color
    • Applicable Forums: 'select our Themes Downloads forum'
    • Input Field Type: Listbox
    • Field Input Width: 10
    • Field Input Height: 1
    • Values List:

      Code:
      Dark
      Light

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

      HTML Code
      <strong><a href="{$forumurl_q}filtertf_thdld_color={VALUE}">{VALUE}</a></strong>

    • Hide Input Field: Yes
  3. Listbox for Style:
    • Title: Style
    • Key: thdld_style
    • Applicable Forums: 'select our Themes Downloads forum'
    • Input Field Type: Listbox
    • Field Input Width: 18
    • Field Input Height: 1
    • Values List:

      Code:
      Entertainment
      Social Network
      Corporate
      General

      Modify it as our needs. Please remember to edit our thdld_forumdisplay_searchforum_inline template if we edit the value.

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

      HTML Code
      <strong><a href="{$foumurl_q}filtertf_thdld_style={VALUE}">{VALUE}</a></strong>

    • Hide Input Field: Yes
  4. Listbox for Width:
    • Title: Width
    • Key: thdld_width
    • Applicable Forums: 'select our Themes Downloads forum'
    • Input Field Type: Listbox
    • Field Input Width: 10
    • Field Input Height: 1
    • Values List:

      Code:
      Fluid
      Fixed

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

      HTML Code
      <strong><a href="{$forumurl_q}filtertf_thdld_width={VALUE}">{VALUE}</a></strong>

    • Hide Input Field: Yes
  5. File input field type for File Downloads:
    • Title: File
    • Key: thdld_file
    • Applicable Forums: 'select our Themes Downloads forum'
    • Input Field Type: File
    • Valid File Extensions: rar|zip|7z
      Modify it as our needs.
    • Maximum File Size: 1048576
      Modify it as our needs. It is a maximum file size (in bytes) that can be uploaded.
    • Editable by / Required Field?: Everyone (required)
    • Display Order: 5
    • Display Format:

      Code:
      <if $GLOBALS['mybb']->input['download'] == 'download' then>
      <a href="{URL}"><span class="largetext">{$lang->thdld_agree}</span></a>
      <else>
      <a href="{$threadurl_q}download=download#thdld_lc"><span class="largetext">{$lang->thdld_download}</span></a>
      </if>

    • Hide Input Field: Yes
  6. File input field type for Main Preview:
    • Title: Main Preview
    • Key: thdld_img1
    • Applicable Forums: 'select our Themes Downloads forum'
    • Input Field Type: File
    • Valid File Extensions: jpg|jpeg|gif|png
    • Maximum File Size: 1048576
      Modify it as our needs. It is a maximum file size (in bytes) that can be uploaded.
    • Editable by / Required Field?: Everyone (required)
    • Display Order: 6
    • Only Accept Image Files: Yes
    • Image Thumbnail Generation: 120x90
    • Display Format:

      HTML Code
      <a href="{$threadurl}"><img src="{URL}/thumb120x90" alt="{$thread['subject']}" title="{$thread['subject']}" /></a>

    • Hide Input Field: Yes
  7. File input field type for Index Preview:
    • Title: Index Preview
    • Key: thdld_img2
    • Applicable Forums: 'select our Themes Downloads forum'
    • Input Field Type: File
    • Valid File Extensions: jpg|jpeg|gif|png
    • Maximum File Size: 1048576
      Modify it as our needs.
    • Editable by / Required Field?: Everyone (required)
    • Display Order: 7
    • Only Accept Image Files: Yes
    • Image Thumbnail Generation: 120x90
    • Display Format:

      HTML Code
      <a href="{URL}" target="_blank"><img src="{URL}/thumb120x90" alt="{$lang->thdld_img2}" title="{$lang->thdld_img2}" /></a>

    • Hide Input Field: Yes
  8. File input field type for Forumdisplay Preview:
    • Title: Forumdisplay Preview
    • Key: thdld_img3
    • Applicable Forums: 'select our Themes Downloads forum'
    • Input Field Type: File
    • Valid File Extensions: jpg|jpeg|gif|png
    • Maximum File Size: 1048576
      Modify it as our needs.
    • Editable by / Required Field?: Everyone (required)
    • Display Order: 8
    • Only Accept Image Files: Yes
    • Image Thumbnail Generation: 120x90
    • Display Format:

      HTML Code
      <a href="{URL}" target="_blank"><img src="{URL}/thumb120x90" alt="{$lang->thdld_img3}" title="{$lang->thdld_img3}" /></a>

    • Hide Input Field: Yes
  9. File input field type for Showthread Preview:
    • Title: Showthread Preview
    • Key: thdld_img4
    • Applicable Forums: 'select our Themes Downloads forum'
    • Input Field Type: File
    • Valid File Extensions: jpg|jpeg|gif|png
    • Maximum File Size: 1048576
      Modify it as our needs.
    • Editable by / Required Field?: Everyone (required)
    • Display Order: 9
    • Only Accept Image Files: Yes
    • Image Thumbnail Generation: 120x90
    • Display Format:

      HTML Code
      <a href="{URL}" target="_blank"><img src="{URL}/thumb120x90" alt="{$lang->thdld_img4}" title="{$lang->thdld_img4}" /></a>

    • Hide Input Field: Yes
  10. Multiline Textbox for Installation Instruction:
    • Title: Installation Instruction
    • Key: thdld_install
    • Applicable Forums: 'select our Themes Downloads forum'
    • Editable by / Required Field?: Everyone (required)
    • Display Parsing: Use MyBB Parser (MyCode)
    • MyBB Parser Options: Allow newlines, Filter Badwords, Allow MyCode
    • Display Order: 10
    • Display Format:

      HTML Code
      <br class="clear" /><br />
      <a name="thdld_ins" id="thdld_ins"><span class="largetext">{$lang->thdld_install}</span></a><br /><br />{VALUE}

    • Hide Input Field: Yes
  11. Multiline Textbox for License:
    • Title: License
    • Key: thdld_license
    • Applicable Forums: 'select our Themes Downloads forum'
    • Editable by / Required Field?: Everyone (required)
    • Display Parsing: Use MyBB Parser (MyCode)
    • MyBB Parser Options: Allow newlines, Filter Badwords, Allow MyCode
    • Display Order: 11
    • Display Format:

      HTML Code
      <a name="thdld_lc" id="thdld_lc"><span class="largetext">License</span></a><br /><br />{VALUE}

    • Hide Input Field: Yes



Create new templates in Global Template.
Admin CP -> Templates & Style -> Templates -> Global Templates:
  1. thdld_download_postbit_first and thdld_download_postbit_first_classic
    This template will be used as License page. This page will be displayed after users click the Download link in the default postbit_first/classic page. In tThe actual download link is in this page.

    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
    {$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="tcat">
    				<div class="float_left smalltext">
    					{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
    				</div>
    				{$post['posturl']}
    			</td>
    		</tr>
    		<tr>
    			<td class="trow2 post_content {$unapproved_shade}">
    				<div class="post_body" id="pid_{$post['pid']}">
    					<div class="float_right">
    						{$GLOBALS['threadfields']['thdld_img2']['value']}
    						{$GLOBALS['threadfields']['thdld_img3']['value']}
    						{$GLOBALS['threadfields']['thdld_img4']['value']}
    						<br />
    						<span class="float_right">
    							<strong>
    								<a href="{$GLOBALS['threadurl']}#fdesc">{$lang->thdld_full_desc}</a> |
    								<a href="{$GLOBALS['threadurl']}#thdld_ins">{$lang->thdld_install}</a>
    							</strong>
    						</span>
    					</div>
    					<div>
    						<span class="largetext"><strong><a href="{$GLOBALS['threadurl']}">{$post['subject']} {$post['subject_extra']}</a></strong></span><br />
    						<span>{$GLOBALS['threadfields']['thdld_color']}{$lang->comma} {$GLOBALS['threadfields']['thdld_width']}{$lang->comma} {$GLOBALS['threadfields']['thdld_style']}</span><br />
    						<strong>{$lang->author}:</strong> {$post['profilelink']}<br />
    						<strong>{$lang->thdld_uploaded}:</strong> {$GLOBALS['threadfields']['thdld_file']['upload_date']}{$lang->comma} {$GLOBALS['threadfields']['thdld_file']['upload_time']}<br />
    						<strong>{$lang->thdld_last_updated}:</strong> {$GLOBALS['threadfields']['thdld_file']['update_date']}{$lang->comma} {$GLOBALS['threadfields']['thdld_file']['update_time']}<br />
    					</div>
    					<br class="clear" />
    					{$GLOBALS['threadfields']['thdld_license']}
    					<br class="clear" />
    					<br />
    					<div style="text-align: center;" class="largetext">
    						{$GLOBALS['threadfields']['thdld_file']['value']}
    					</div>
    				</div>
    				{$post['attachments']}
    				{$post['signature']}
    				<div class="post_meta" id="post_meta_{$post['pid']}">{$post['iplogged']}</div>
    			</td>
    		</tr>
    		<tr>
    			<td class="trow1 post_buttons {$unapproved_shade}">
    				<div class="author_buttons float_left">
    					{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
    				</div>
    				<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
    				</div>
    			</td>
    		</tr>
    	</tbody>
    </table>

  2. thdld_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
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    <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" colspan="2"><strong>{$lang->edit_post}</strong></td>
    		</tr>
    		<tr>
    			<td class="tcat" width="50%"><strong>{$lang->thdld_general}</strong></td>
    			<td class="tcat"><strong>{$lang->thdld_preview}</strong></td>
    		</tr>
    		<tr>
    			<td class="trow2">
    				<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="width: 100%;">
    					<tr>
    						<td class="trow2">
    							<strong>{$lang->thdld_title}</strong><br />{$prefixselect}<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" />
    						</td>
    					</tr>
    					{$tfinputrow['thdld_desc']}
    					<tr>
    						<td class="trow2">
    							<div class="float_left">
    								<strong>{$lang->thdld_color}</strong><br />{$tfinput['thdld_color']}
    							</div>
    							<div class="float_left" style="margin-left: 5px;">
    								<strong>{$lang->thdld_style}</strong><br />{$tfinput['thdld_style']}
    							</div>
    							<div class="float_left" style="margin-left: 5px;">
    								<strong>{$lang->thdld_width}</strong><br />{$tfinput['thdld_width']}
    							</div>
    						</td>
    					</tr>
    					{$tfinputrow['thdld_file']}
    					{$tfinputrow['thdld_img1']}
    				</table>
    			</td>
    			<td class="trow2">
    				<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="width: 100%;">
    					{$tfinputrow['thdld_img2']}
    					{$tfinputrow['thdld_img3']}
    					{$tfinputrow['thdld_img4']}
    				</table>
    			</td>
    		</tr>
    		{$extra_threadfields}
    		<tr>
    			<td class="tcat"><strong>{$lang->thdld_installation_and_license}</strong></td>
    			<td class="tcat"><strong>{$lang->thdld_full_desc}</strong></td>
    		</tr>
    		<tr>
    			<td class="trow2" valign="top">
    				<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="width: 100%;">
    					{$tfinputrow['thdld_install']}
    					{$tfinputrow['thdld_license']}
    				</table>
    			</td>
    			<td class="trow2">
    				<textarea name="message" id="message" rows="20" cols="70" tabindex="3">{$message}</textarea>
    				{$codebuttons}
    			</td>
    		</tr>
    		<tr>
    			<td class="tcat" colspan="2"><strong>{$lang->thdld_misc}</strong></td>
    		</tr>
    		{$loginbox}
    		<tr>
    			<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
    			<td class="trow1"><span class="smalltext">
    				<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="6"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
    				{$disablesmilies}</span>
    			</td>
    		</tr>
    		{$subscriptionmethod}
    		{$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>

  3. thdld_forumdisplay_searchforum_inline

    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
    <tr>
    	<td class="tfoot" align="right" colspan="8">
    		<form action="forumdisplay.php" method="get">
    			<span class="smalltext"><strong>{$lang->thdld_color}</strong></span>
    			<select name="filtertf_thdld_color">
    				<option value="">All</option>
    				<option value="Dark"{$GLOBALS['filters_set']['thdld_color']['selected']['Dark']}>Dark</option>
    				<option value="Light"{$GLOBALS['filters_set']['thdld_color']['selected']['Light']}>Light</option>
    			</select>
    			<span class="smalltext"><strong>{$lang->thdld_style}</strong></span>
    			<select name="filtertf_thdld_style">
    				<option value="">All</option>
    				<option value="Entertainment"{$GLOBALS['filters_set']['thdld_style']['selected']['Entertainment']}>Entertainment</option>
    				<option value="Social Network"{$GLOBALS['filters_set']['thdld_style']['selected']['Social Network']}>Social Network</option>
    				<option value="Corporate"{$GLOBALS['filters_set']['thdld_style']['selected']['Corporate']}>Corporate</option>
    				<option value="General"{$GLOBALS['filters_set']['thdld_style']['selected']['General']}>General</option>
    			</select>
    			<span class="smalltext"><strong>{$lang->thdld_width}</strong></span>
    			<select name="filtertf_thdld_width">
    				<option value="">All</option>
    				<option value="Fluid"{$GLOBALS['filters_set']['thdld_width']['selected']['Fluid']}>Fluid</option>
    				<option value="Fixed"{$GLOBALS['filters_set']['thdld_width']['selected']['Fixed']}>Fixed</option>
    			</select>
    			<span class="smalltext"><strong>{$lang->thdld_title}</strong></span>
    			<input type="text" class="textbox" name="search" value="{$searchval}" /> {$gobutton}
    			<input type="hidden" name="fid" value="{$fid}" />
    			<input type="hidden" name="sortby" value="{$sortby}" />
    			<input type="hidden" name="order" value="{$sortordernow}" />
    			<input type="hidden" name="datecut" value="{$datecut}" />
    			{$xthreads_forum_filter_form}
    		</form>
    	</td>
    </tr>

  4. thdld_forumdisplay_thread

    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
    <tr>
    	<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">
    		{$GLOBALS['threadfields']['thdld_img1']['value']}
    	</td>
    	<td class="{$bgcolor}{$thread_type_class}">
    		<div>
    			<span class="largetext">{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
    			<div class="smalltext"><em>{$GLOBALS['threadfields']['thdld_color']}{$lang->comma} {$GLOBALS['threadfields']['thdld_width']}{$lang->comma} {$GLOBALS['threadfields']['thdld_style']}</em></div>
    			{$GLOBALS['threadfields']['thdld_desc']}
    			<div class="smalltext" style="margin-top: 5px;">
    				<a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts} {$lang->replies}{$lang->comma}
    				{$thread['views']} {$lang->views}
    				<span class="float_right">
    					<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}{$lang->comma}
    					{$lastpostdate} {$lastposttime}
    				</span>
    			</div>
    		</div>
    	</td>
    	<td align="center" class="{$bgcolor}{$thread_type_class}">
    		{$thread['profilelink']}
    		<div class="smalltext">
    			<a href="{$forumurl_q}filterxt_uid={$thread['uid']}" title="{$lang->thdld_view_author_desc}">{$lang->thdld_view_author}</a>
    		</div>
    	</td>
    	<td align="center" class="{$bgcolor}{$thread_type_class}">{$GLOBALS['threadfields']['thdld_file']['downloads']}</td>
    	{$rating}
    	{$modbit}
    </tr>

  5. thdld_forumdisplay_threadlist
    Can sort by downloads.

    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']}" class="tborder" style="clear: both;">
    	<tr>
    		<td class="thead" colspan="{$colspan}">
    			<div style="float: right;">
    				<span class="smalltext"><strong><a href="misc.php?action=markread&amp;fid={$fid}{$post_code_string}">{$lang->markforum_read}</a> | <a href="usercp2.php?action={$add_remove_subscription}subscription&amp;type=forum&amp;fid={$fid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a>{$clearstoredpass}</strong></span>
    			</div>
    			<div>
    				<strong>{$foruminfo['name']}</strong>
    			</div>
    		</td>
    	</tr>
    	<tr>
    		<td class="tcat" colspan="2" width="66%" style="text-align: center;"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thdld_title}</a> {$orderarrow['subject']}</strong></span></td>
    		<td class="tcat" align="center" width="10%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span></td>
    		<td class="tcat" align="center" width="7%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=tfa_downloads_thdld_file&amp;order=asc">{$lang->thdld_downloads}</a> {$orderarrow['tfa_downloads_thdld_file']}</strong></span></td>
    		{$ratingcol}
    		{$inlinemodcol}
    	</tr>
    	{$selectall}
    	{$announcementlist}
    	{$threads}{$nullthreads}
    	{$searchforum}
    </table>
    <div class="float_left">
    	{$multipage}
    </div>
    <div class="float_right" style="margin-top: 4px;">
    	{$newthread}
    </div>
    <br style="clear: both;" />
    <div class="float_right" style="text-align: right;">
    	{$inlinemod}
    	{$forumjump}
    </div>
    <br style="clear: both" />
    <div class="smalltext" align="center">
    	{$foruminfo['name']}<br />
    	Powered By <a href="http://mybbhacks.zingaburga.com/showthread.php?tid=288">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
    </div>
    {$inline_edit_js}

  6. thdld_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
    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
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    <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" colspan="2"><strong>{$lang->post_new_thread}</strong></td>
    		</tr>
    		<tr>
    			<td class="tcat" width="50%"><strong>{$lang->thdld_general}</strong></td>
    			<td class="tcat"><strong>{$lang->thdld_preview}</strong></td>
    		</tr>
    		<tr>
    			<td class="trow2">
    				<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="width: 100%;">
    					<tr>
    						<td class="trow2">
    							<strong>{$lang->thdld_title}</strong><br />{$prefixselect}<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" />
    						</td>
    					</tr>
    					{$tfinputrow['thdld_desc']}
    					<tr>
    						<td class="trow2">
    							<div class="float_left">
    								<strong>{$lang->thdld_color}</strong><br />{$tfinput['thdld_color']}
    							</div>
    							<div class="float_left" style="margin-left: 5px;">
    								<strong>{$lang->thdld_style}</strong><br />{$tfinput['thdld_style']}
    							</div>
    							<div class="float_left" style="margin-left: 5px;">
    								<strong>{$lang->thdld_width}</strong><br />{$tfinput['thdld_width']}
    							</div>
    						</td>
    					</tr>
    					{$tfinputrow['thdld_file']}
    					{$tfinputrow['thdld_img1']}
    				</table>
    			</td>
    			<td class="trow2">
    				<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="width: 100%;">
    					{$tfinputrow['thdld_img2']}
    					{$tfinputrow['thdld_img3']}
    					{$tfinputrow['thdld_img4']}
    				</table>
    			</td>
    		</tr>
    		{$extra_threadfields}
    		<tr>
    			<td class="tcat"><strong>{$lang->thdld_installation_and_license}</strong></td>
    			<td class="tcat"><strong>{$lang->thdld_full_desc}</strong></td>
    		</tr>
    		<tr>
    			<td class="trow2" valign="top">
    				<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" style="width: 100%;">
    					{$tfinputrow['thdld_install']}
    					{$tfinputrow['thdld_license']}
    				</table>
    			</td>
    			<td class="trow2">
    				<textarea name="message" id="message" rows="20" cols="70" tabindex="2">{$message}</textarea>
    				{$codebuttons}
    				{$multiquote_external}
    			</td>
    		</tr>
    		<tr>
    			<td class="tcat" colspan="2"><strong>{$lang->thdld_misc}</strong></td>
    		</tr>
    		{$loginbox}
    		<tr>
    			<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
    			<td class="trow1"><span class="smalltext">
    			<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="7"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
    			{$disablesmilies}</span></td>
    		</tr>
    		{$modoptions}
    		{$subscriptionmethod}
    		{$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>

  7. thdld_postbit_first and thdld_postbit_first_classic
    Will be used as Default page. The Download link in this page will leads users to the License Page.

    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
    {$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="tcat">
    				<div class="float_left smalltext">
    					{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
    				</div>
    				{$post['posturl']}
    			</td>
    		</tr>
    		<tr>
    			<td class="trow2 post_content {$unapproved_shade}">
    				<div class="post_body" id="pid_{$post['pid']}">
    					<div class="float_right">
    						{$GLOBALS['threadfields']['thdld_img2']['value']}
    						{$GLOBALS['threadfields']['thdld_img3']['value']}
    						{$GLOBALS['threadfields']['thdld_img4']['value']}
    						<br />
    						<span class="float_right">
    							<strong>
    								<a href="{$GLOBALS['threadurl']}#fdesc">{$lang->thdld_full_desc}</a> |
    								<a href="{$GLOBALS['threadurl']}#thdld_ins">{$lang->thdld_install}</a>
    							</strong>
    						</span>
    					</div>
    					<div>
    						<span class="largetext"><strong><a href="{$GLOBALS['threadurl']}">{$post['subject']} {$post['subject_extra']}</a></strong></span><br />
    						<span>{$GLOBALS['threadfields']['thdld_color']}{$lang->comma} {$GLOBALS['threadfields']['thdld_width']}{$lang->comma} {$GLOBALS['threadfields']['thdld_style']}</span><br />
    						<strong>{$lang->author}:</strong> {$post['profilelink']}<br />
    						<strong>{$lang->thdld_uploaded}:</strong> {$GLOBALS['threadfields']['thdld_file']['upload_date']}{$lang->comma} {$GLOBALS['threadfields']['thdld_file']['upload_time']}<br />
    						<strong>{$lang->thdld_last_updated}:</strong> {$GLOBALS['threadfields']['thdld_file']['update_date']}{$lang->comma} {$GLOBALS['threadfields']['thdld_file']['update_time']}<br />
    					</div>
    					<br class="clear" /><br />
    					<a name="fdesc" id="fdesc"><span class="largetext">{$lang->thdld_full_desc}</span></a>
    					<br class="clear" /><br />
    					<div class="float_left" style="margin: 0px 10px 5px 0px;">
    						{$GLOBALS['threadfields']['thdld_img1']['value']}
    					</div>
    					{$post['message']}
    					{$GLOBALS['threadfields']['thdld_install']}
    					<br class="clear" />
    					<br />
    					<div style="text-align: center;" class="largetext">
    						{$GLOBALS['threadfields']['thdld_file']['value']}
    					</div>
    				</div>
    				{$post['attachments']}
    				{$post['signature']}
    
    				<div class="post_meta" id="post_meta_{$post['pid']}">{$post['iplogged']}</div>
    			</td>
    		</tr>
    		<tr>
    			<td class="trow1 post_buttons {$unapproved_shade}">
    				<div class="author_buttons float_left">
    					{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
    				</div>
    				<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
    				</div>
    			</td>
    		</tr>
    	</tbody>
    </table>

  8. thdld_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
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    <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=1603"></script>
    </head>
    <body>
    {$header}
    {$pollbox}
    <div class="float_left">
    	{$multipage}
    </div>
    <div class="float_right">
    	{$newreply}
    </div>
    {$ratethread}
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;">
    	<tr>
    		<td class="thead" colspan="2">
    			<div style="float: right;">
    				<span class="smalltext"><strong><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
    			</div>
    			<div>
    				<strong>{$thread['threadprefix']}{$thread['subject']}</strong>
    			</div>
    		</td>
    	</tr>
    </table>
    <div id="posts">
    	{$first_post}{$posts}
    </div>
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top-width: 0;">
    	<tr>
    		<td colspan="2" class="tfoot">
    			{$search_thread}
    			<div>
    				<strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
    			</div>
    		</td>
    	</tr>
    </table>
    <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}
    <div class="smalltext" style="text-align: center;">
    	{$forum['name']}<br />
    	Powered by <a href="http://mybbhacks.zingaburga.com/showthread.php?tid=288">XThreads</a> &ndash; <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
    </div>
    {$footer}
    </body>
    </html>

  9. thdld_threadfields_inputrow

    HTML Code
    <tr><td class="trow2" title="{$tf['desc']}"><strong>{$tf['title']}</strong><br />{$inputfield}</td></tr>




Additional Info:
  1. We use language prefix for this (attached). Upload it to our inc/languages/english folder.
  2. The templates above based on MyBB 1.6.3 templates.

That's the basic. Just modify it as our needs.
Please tell me if there is something wrong with the code above. I'm still learning.

Screenshot:

1. Newthread / Editpost:
   

2. Thread List:
   

3. Showthread:
Default Page and License Page (will be displayed after clicking the Download link in the Default Page).
       

Live Demo:
http://www.14.mynie.co.cc/forumdisplay.php?fid=16
I don't have a stock of themes, so I just put color images there.


Attached File(s)
.7z  themes_downloads.7z (Size: 517 bytes / Downloads: 615)

06-12-2011 12:40 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #2
RE: Themes Downloads
This looks nice, may be using it soon (project on mind) Biggrin
Tanks RateU

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 06-12-2011 01:17 PM by Sama34.)
06-12-2011 01:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #3
RE: Themes Downloads
This looks very slick RateU - just as I was thinking of offering themes for download. Thank you.


[Image: leelink.gif]
MYBB1.6 & XThreads
06-12-2011 06:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
techu Offline
Member
***
Posts: 154
Joined: Sep 2010
Post: #4
RE: Themes Downloads
nice layout..
I think mybb.com should stop using wordpress for blog and the custom script for mod site because anything and everything is possible using only mybb+xthread... Smile

[Image: banner.png]
06-12-2011 10:21 PM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #5
RE: Themes Downloads
damn it. xthreads is awesome. rateu, i wanna take classes from you to know the working and usage of xthreads Tongue
06-12-2011 10:41 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #6
RE: Themes Downloads
Thanks Biggrin

06-13-2011 06:39 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #7
RE: Themes Downloads
Looks great Biggrin

My Blog
06-13-2011 11:02 AM
Find all posts by this user Quote this message in a reply
davidedison Offline
Junior Member
**
Posts: 11
Joined: Mar 2012
Post: #8
RE: Themes Downloads
Thanks!
03-30-2012 02:29 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: