Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 link directory...can someone make this?
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #118
RE: link directory...can someone make this?
Requirement: XThreads
Last Edit: 7 October 2012

We will use one forum only for our Link Directory.

First, create a forum with these settings:
  • Template Prefix:

    Code:
    <if $mybb->input['xtldirgo'] == 'go' then>xtldirgo_,</if><if $mybb->input['xtldirmost'] == 'most' then>xtldirmost_,</if>xtldir_

  • Language File Prefix: xtldir_
  • Settings Overrides:
    Setting: Showthread Options -> Post Layout
    Value: horizontal

    Code:
    postlayout=horizontal

  • Allow Blank Post Message: Yes
  • Override Threads Per Page: 10
    We need this for displaying a very simple 10 most links, like 10 most viewed, 10 most Comments and etc. If we use 20 Threads Per Page here, it will displaying 20 most links. So, how many most links should be displayed depends on this settings.

Then, create custom thread fields:
  1. Textbox for Website URL:
    Create a Custom Thread Fields with this settings:
    • Title: Website URL
    • Key: xtldwww
    • Applicable Forums: 'select the Link Directory forum'
    • Input Field Type: Textbox
    • Editable by / Required Field?: Everyone (required)
    • Text Mask Filter: URL (HTTP/S)
  2. Textbox for Site Description:
    Create a Custom Thread Fields with this settings:
    • Title: Site Description
    • Key: xtlddesc
    • Applicable Forums: 'select the Link Directory forum'
    • Input Field Type: Textbox
    • Editable by / Required Field?: Everyone (required)
    • Display Order: 2
  3. Listbox for Links Category:
    Create a Custom Thread Fields with this settings:
    • Title: Link Category
    • Key: xtldcat
    • Applicable Forums: 'select the Link Directory forum'
    • Input Field Type: Listbox
    • Field Input Height: 1
    • Values List:

      Code:
      Search Engine
      MyBB Forum
      Entertainment
      News And Education

      Modify it as our needs.

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


New templates in Global Template.
Admin CP -> Templates & Style -> Templates -> Global Templates:
  1. xtldirgo_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
    <html>
    <head>
    <title>{$thread['subject']}</title>
    {$headerinclude}
    <meta http-equiv="refresh" content="2;URL={$GLOBALS['threadfields']['xtldwww']}" />
    <script type="text/javascript">
    <!--
    	var quickdelete_confirm = "{$lang->quickdelete_confirm}";
    // -->
    </script>
    <script type="text/javascript" src="jscripts/thread.js?ver=1600"></script>
    </head>
    <body>
    <div style="margin-top: 200px;">
    	<div style="margin: auto auto; width: 600px;" align="center">
    		<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    			<tr>
    				<td class="thead">
    					<strong>{$lang->xtldir_redirecting_to} {$thread['subject']}</strong>
    				</td>
    			</tr>
    			<tr>
    				<td class="trow1">
    					<div class="post_body" style="text-align: center;">
    						<img src="images/spinner_big.gif" alt="" title="{$lang->xtldir_redirecting_to} {$thread['subject']} ....." />
    						<div>{$lang->xtldir_redirecting_to} {$thread['subject']} .....</div>
    					</div>
    				</td>
    			</tr>
    			<tr>
    				<td class="trow2" align="right">
    					<a href="{$GLOBALS['threadfields']['xtldwww']}"><span class="smalltext">{$lang->click_no_wait}</span></a>
    				</td>
    			</tr>
    		</table>
    	</div>
    </div>
    </body>
    </html>

  2. xtldirmost_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
    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
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
    	<tr>
    		<td valign="top" width="300">
    			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    				<tr>
    					<td class="thead">
    						<div><strong>{$lang->xtldir_links_category}</strong></div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$forumurl_q}filtertf_xtldcat=Search Engine">Search Engine</a></strong>
    						<div class="smalltext">Links For Search Engines</div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$forumurl_q}filtertf_xtldcat=MyBB Forum">MyBB Forum</a></strong>
    						<div class="smalltext">Links For MyBB Forums</div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$forumurl_q}filtertf_xtldcat=Entertainment">Entertainment</a></strong>
    						<div class="smalltext">Links For Entertainment Sites</div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$forumurl_q}filtertf_xtldcat=News And Education">News And Education</a></strong>
    						<div class="smalltext">Links For News And Education Sites</div>
    					</td>
    				</tr>
    			</table>
    			<br />
    			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    				<tr>
    					<td class="thead">
    						<div><strong>{$lang->xtldir_misc}</strong></div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$sorturl}&amp;sortby=views&amp;order=desc&amp;xtldirmost=most">{$lang->xtldir_most_viewed}</a></strong>
    						<div class="smalltext">{$lang->xtldir_displaying} {$mybb->settings['threadsperpage']} {$lang->xtldir_most_viewed}</div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc&amp;xtldirmost=most">{$lang->xtldir_most_commented}</a></strong>
    						<div class="smalltext">{$lang->xtldir_displaying} {$mybb->settings['threadsperpage']} {$lang->xtldir_most_commented}</div>
    					</td>
    				</tr>
    				{$ratingcol}
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$sorturl}&amp;sortby=started&amp;order=desc&amp;xtldirmost=most">{$lang->xtldir_last_added}</a></strong>
    						<div class="smalltext">{$lang->xtldir_displaying} {$mybb->settings['threadsperpage']} {$lang->xtldir_last_added}</div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc&amp;xtldirmost=most">{$lang->xtldir_last_commented}</a></strong>
    						<div class="smalltext">{$lang->xtldir_displaying} {$mybb->settings['threadsperpage']} {$lang->xtldir_last_commented}</div>
    					</td>
    				</tr>
    			</table>
    		</td>
    		<td valign="top">
    			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    				<tr>
    					<td class="thead" colspan="2">
    						<div style="{$filters_set['xtldcat']['hiddencss']}">
    							<strong>{$foruminfo['name']}</strong>
    						</div>
    						<div style="{$filters_set['xtldcat']['visiblecss']}">
    							<strong>{$GLOBALS['threadcount']} {$lang->xtldir_links_in}</strong>
    						</div>
    					</td>
    					{$inlinemodcol}
    				</tr>
    				{$threads}{$nullthreads}
    			</table>
    			<div class="float_right">
    				{$newthread}
    			</div>
    		</td>
    	</tr>
    </table>
    <br style="clear: both;" />
    <br />
    <div class="float_right" style="text-align: right;">
    	{$inlinemod}
    </div>
    <br style="clear: both" />
    <div class="smalltext" align="center">
    	{$foruminfo['name']}<br />
    	Powered By <a href="http://mybbhacks.zingaburga.com">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
    </div>
    {$inline_edit_js}

  3. xtldir_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
    <html>
    <head>
    <title>{$mybb->settings['bbname']} - {$lang->xtldir_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->xtldir_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->xtldir_delete_1}<br /><span class="smalltext">{$lang->xtldir_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->xtldir_edit_post}</strong></td>
    		</tr>
    		<tr>
    			<td class="trow2"><strong>{$lang->xtldir_subject}</strong></td>
    			<td class="trow2"><input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
    		</tr>
    		{$extra_threadfields}
    		<tr style="display: none;">
    			<td class="trow2" valign="top">
    				<strong>{$lang->your_message}:</strong>
    			</td>
    			<td class="trow2">
    				<textarea name="message" id="message" rows="20" cols="70" tabindex="3">{$message}</textarea>
    			</td>
    		</tr>
    	</table>
    	<br />
    	<div align="center"><input type="submit" class="button" name="submit" value="{$lang->xtldir_update_post}" tabindex="3" /></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>

  4. xtldir_forumdisplay_inlinemoderation_col

    HTML Code
    <td class="thead" align="center" width="1"><input type="checkbox" name="allbox" onclick="inlineModeration.checkAll(this)" /></td>

  5. xtldir_forumdisplay_thread

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    <tr>
    	<td align="center" class="{$bgcolor}" width="1">
    		<img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" />
    	</td>
    	<td class="{$bgcolor}">
    		<strong>
    			<a href="{$thread['threadlink']}" class="{$inline_edit_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>
    		&ndash;
    			<a href="{$threadurl_q}xtldirgo=go" target="_blank">{$lang->go}</a>
    		</strong>
    		({$thread['views']} {$lang->views})
    		<div class="smalltext"><strong>{$lang->author} {$thread['profilelink']}</strong> - <em>{$thread['threaddate']} {$lang->at} {$thread['threadtime']}</em></div>
    		<div class="smalltext">{$GLOBALS['threadfields']['xtlddesc']}</div>
    	</td>
    	{$modbit}
    </tr>

  6. xtldir_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
    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
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
    	<tr>
    		<td valign="top" width="300">
    			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    				<tr>
    					<td class="thead">
    						<div><strong>{$lang->xtldir_links_category}</strong></div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$forumurl_q}filtertf_xtldcat=Search Engine">Search Engine</a></strong>
    						<div class="smalltext">Links For Search Engines</div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$forumurl_q}filtertf_xtldcat=MyBB Forum">MyBB Forum</a></strong>
    						<div class="smalltext">Links For MyBB Forums</div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$forumurl_q}filtertf_xtldcat=Entertainment">Entertainment</a></strong>
    						<div class="smalltext">Links For Entertainment Sites</div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$forumurl_q}filtertf_xtldcat=News And Education">News And Education</a></strong>
    						<div class="smalltext">Links For News And Education Sites</div>
    					</td>
    				</tr>
    			</table>
    			<br />
    			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    				<tr>
    					<td class="thead">
    						<div><strong>{$lang->xtldir_misc}</strong></div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$sorturl}&amp;sortby=views&amp;order=desc&amp;xtldirmost=most">{$lang->xtldir_most_viewed}</a></strong>
    						<div class="smalltext">{$lang->xtldir_displaying} {$mybb->settings['threadsperpage']} {$lang->xtldir_most_viewed}</div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$sorturl}&amp;sortby=replies&amp;order=desc&amp;xtldirmost=most">{$lang->xtldir_most_commented}</a></strong>
    						<div class="smalltext">{$lang->xtldir_displaying} {$mybb->settings['threadsperpage']} {$lang->xtldir_most_commented}</div>
    					</td>
    				</tr>
    				{$ratingcol}
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$sorturl}&amp;sortby=started&amp;order=desc&amp;xtldirmost=most">{$lang->xtldir_last_added}</a></strong>
    						<div class="smalltext">{$lang->xtldir_displaying} {$mybb->settings['threadsperpage']} {$lang->xtldir_last_added}</div>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc&amp;xtldirmost=most">{$lang->xtldir_last_commented}</a></strong>
    						<div class="smalltext">{$lang->xtldir_displaying} {$mybb->settings['threadsperpage']} {$lang->xtldir_last_commented}</div>
    					</td>
    				</tr>
    			</table>
    		</td>
    		<td valign="top">
    			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    				<tr>
    					<td class="thead" colspan="2">
    						<div style="{$filters_set['xtldcat']['hiddencss']}">
    							<strong>{$foruminfo['name']}</strong>
    						</div>
    						<div style="{$filters_set['xtldcat']['visiblecss']}">
    							<strong>{$GLOBALS['threadcount']} {$lang->xtldir_links_in}</strong>
    						</div>
    					</td>
    					{$inlinemodcol}
    				</tr>
    				{$threads}{$nullthreads}
    			</table>
    			<div class="float_right">
    				{$newthread}
    			</div>
    			<br class="clear" />
    			<div class="tc">
    				{$multipage}
    			</div>
    		</td>
    	</tr>
    </table>
    <br style="clear: both;" />
    <br />
    <div class="float_right" style="text-align: right;">
    	{$inlinemod}
    </div>
    <br style="clear: both" />
    <div class="smalltext" align="center">
    	{$foruminfo['name']}<br />
    	Powered By <a href="http://mybbhacks.zingaburga.com">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
    </div>
    {$inline_edit_js}

  7. xtldir_forumdisplay_threadlist_rating

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    <tr>
    	<td class="trow1">
    		<strong><a href="{$sorturl}&amp;sortby=rating&amp;order=desc&amp;xtldirmost=most">{$lang->xtldir_most_rated}</a></strong>
    		<div class="smalltext">{$lang->xtldir_displaying} {$mybb->settings['threadsperpage']} {$lang->xtldir_most_rated}</div>
    		<script type="text/javascript" src="jscripts/rating.js?ver=1400"></script>
    		<script type="text/javascript">
    		<!--
    			lang.stars = new Array();
    			lang.stars[1] = "{$lang->one_star}";
    			lang.stars[2] = "{$lang->two_stars}";
    			lang.stars[3] = "{$lang->three_stars}";
    			lang.stars[4] = "{$lang->four_stars}";
    			lang.stars[5] = "{$lang->five_stars}";
    		// -->
    		</script>
    	</td>
    </tr>

  8. xtldir_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
    <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}" />
    	<div style="width: 600px; margin: auto auto">
    		<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="trow2" width="30%"><strong>{$lang->thread_subject}</strong></td>
    				<td class="trow2">
    					<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" />
    				</td>
    			</tr>
    			{$extra_threadfields}
    			{$modoptions}
    			{$captcha}
    		</table>
    	</div>
    	<br />
    	<div style="text-align:center">
    		<input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" />
    	</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>

  9. xtldir_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
    {$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="trow1">
    				<div class="float_left smalltext">
    					{$post['onlinestatus']} <strong><span class="smalltext">{$post['profilelink']}</span></strong> -
    					{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}"></span>
    				</div>
    				{$post['posturl']}
    			</td>
    		</tr>
    
    		<tr>
    			<td class="trow2 post_content {$unapproved_shade}">
    				<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">{$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>

  10. xtldir_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
    {$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="thead">
    				<strong>{$lang->xtldir_submitter_info}</strong>
    			</td>
    		</tr>
    		<tr>
    			<td class="trow1" style="{$post['avatar_padding']}" align="center">
    				<div>
    					<strong><span class="largetext">{$post['profilelink']}</span></strong>
    					{$post['onlinestatus']}
    				</div>
    				{$post['useravatar']}
    				<div>
    					<span class="smalltext">
    						{$post['usertitle']}<br />
    						{$post['userstars']}
    						{$post['groupimage']}
    					</span>
    				</div>
    				<div class="smalltext post_author_info">
    					{$post['user_details']}
    				</div>
    				<div class="post_meta" id="post_meta_{$post['pid']}">{$post['iplogged']}</div>
    				<div class="post_management_buttons">
    					{$post['button_edit']}{$post['button_quickdelete']}{$post['button_report']}{$post['button_warn']}
    				</div>
    				{$post['posturl']}
    			</td>
    		</tr>
    	</tbody>
    </table>

  11. xtldir_postbit_first_posturl

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

  12. xtldir_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
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    <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}
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
    	<tr>
    		<td valign="top" width="300">
    			{$first_post}
    		</td>
    		<td valign="top">
    			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    				<tr>
    					<td class="thead" colspan="2">
    						<strong>{$lang->xtldir_link_info}</strong>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						<div class="largetext">
    							<a href="{$threadurl_q}xtldirgo=go" target="_blank">{$thread['subject']}</a>
    						</div>
    						<br />
    						<table border="0" width="100%">
    							<tr>
    								<td width="100" valign="top">{$GLOBALS['threadfields_x']['xtldwww']['title']}</td>
    								<td width="1" valign="top">:</td>
    								<td valign="top">{$GLOBALS['threadfields']['xtldwww']}</td>
    							</tr>
    							<tr>
    								<td valign="top">{$lang->xtldir_submitted}</td>
    								<td valign="top">:</td>
    								<td valign="top">{$thread['threaddate']}, {$thread['threadtime']}</td>
    							</tr>
    							<tr>
    								<td valign="top">{$lang->views}</td>
    								<td valign="top">:</td>
    								<td valign="top">{$thread['views']}</td>
    							</tr>
    							<tr>
    								<td valign="top">{$lang->replies}</td>
    								<td valign="top">:</td>
    								<td valign="top">{$thread['replies']}</td>
    							</tr>
    							{$ratethread}
    						</table>
    					</td>
    				</tr>
    			</table>
    			<br />
    			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    				<tr>
    					<td class="thead">
    						<strong>{$GLOBALS['threadfields_x']['xtlddesc']['title']}</strong>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						{$GLOBALS['threadfields']['xtlddesc']}
    					</td>
    				</tr>
    			</table>
    			<br class="clear" />
    			<div class="float_right clear largetext">{$lang->xtldir_user_comments}</div>
    			<div id="posts" class="clear">{$posts}</div>
    		</td>
    	</tr>
    </table>
    <br class="clear" />
    {$quickreply}
    <div class="float_right" style="text-align: right;">
    	{$moderationoptions}
    	{$forumjump}
    </div>
    <br style="clear: both;" />
    {$usersbrowsing}
    <div class="smalltext tc">
    	{$forum['name']}<br />
    	Powered By <a href="http://mybbhacks.zingaburga.com">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
    </div>
    <br />
    {$footer}
    </body>
    </html>

  13. xtldir_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="trow1">
    			<div style="text-align: center;"><em>{$GLOBALS['lang']->xtldir_no_replies}</em></div>
    		</td>
    	</tr>
    </table>

  14. xtldir_showthread_ratethread

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    <tr>
    	<td valign="top">{$lang->thread_rating}</td>
    	<td valign="top">:</td>
    	<td valign="top">
    		<div class="float_left">
    			<script type="text/javascript" src="jscripts/rating.js?ver=1400"></script>
    			<div id="success_rating_{$thread['tid']}"></div>
    			<div class="inline_rating">
    				<ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}">
    					<li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li>
    					<li><a class="one_star" title="{$lang->one_star}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=1&amp;my_post_key={$mybb->post_code}">1</a></li>
    					<li><a class="two_stars" title="{$lang->two_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=2&amp;my_post_key={$mybb->post_code}">2</a></li>
    					<li><a class="three_stars" title="{$lang->three_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=3&amp;my_post_key={$mybb->post_code}">3</a></li>
    					<li><a class="four_stars" title="{$lang->four_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=4&amp;my_post_key={$mybb->post_code}">4</a></li>
    					<li><a class="five_stars" title="{$lang->five_stars}" href="./ratethread.php?tid={$thread['tid']}&amp;rating=5&amp;my_post_key={$mybb->post_code}">5</a></li>
    				</ul>
    			</div>
    		</div>
    	</td>
    </tr>



Additional Info:

This version uses language variable. So, we need to upload the language files (attached) to our inc/languages/english folder, or to our languages folder.

The "standard" Link Directory example application above doesn't use a link thumbnail. If we want to use a link thumbnail, we need a link thumbnail service.
In this example, we will use thumbshot link thumbnail service. It is a free link thumbnail service.
Because the link thumbnail service is a third party site, so, please follow this procedure:
1. Register to thumbshots.com
2. After registered, we will be provided two type of links.
3. Put the second link in our footer template. Just after the MyBB Copyright codes.
4. Then, replace xtldir_forumdisplay_thread and xtldir_showthread templates with these templates:
  • xtldir_forumdisplay_thread

    HTML Code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    <tr>
    	<td align="center" class="{$bgcolor}" width="1">
    		<a href="{$thread['threadlink']}"><img src="http://open.thumbshots.org/image.aspx?url={$GLOBALS['threadfields']['xtldwww']}" alt="{$thread['subject']}" title="{$thread['subject']}" /></a>
    	</td>
    	<td class="{$bgcolor}">
    		<strong>
    			<a href="{$thread['threadlink']}" class="{$inline_edit_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>
    		&ndash;
    			<a href="{$threadurl_q}xtldirgo=go" target="_blank">{$lang->go}</a>
    		</strong>
    		({$thread['views']} {$lang->views})
    		<div class="smalltext"><strong>{$lang->author} {$thread['profilelink']}</strong> - <em>{$thread['threaddate']} {$lang->at} {$thread['threadtime']}</em></div>
    		<div class="smalltext">{$GLOBALS['threadfields']['xtlddesc']}</div>
    	</td>
    	{$modbit}
    </tr>

  • xtldir_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
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    <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}
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
    	<tr>
    		<td valign="top" width="300">
    			{$first_post}
    		</td>
    		<td valign="top">
    			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    				<tr>
    					<td class="thead" colspan="2">
    						<strong>{$lang->xtldir_link_info}</strong>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1" width="205" align="center">
    						<div>
    							<a href="{$threadurl_q}xtldirgo=go" target="_blank"><img src="http://open.thumbshots.org/image.aspx?url={$GLOBALS['threadfields']['xtldwww']}" alt="{$thread['subject']}" title="{$thread['subject']}" style="width: 200px;" /></a>
    						</div>
    					</td>
    					<td class="trow1">
    						<div class="largetext">
    							<a href="{$threadurl_q}xtldirgo=go" target="_blank">{$thread['subject']}</a>
    						</div>
    						<br />
    						<table border="0" width="100%">
    							<tr>
    								<td width="100" valign="top">{$GLOBALS['threadfields_x']['xtldwww']['title']}</td>
    								<td width="1" valign="top">:</td>
    								<td valign="top">{$GLOBALS['threadfields']['xtldwww']}</td>
    							</tr>
    							<tr>
    								<td valign="top">{$lang->xtldir_submitted}</td>
    								<td valign="top">:</td>
    								<td valign="top">{$thread['threaddate']}, {$thread['threadtime']}</td>
    							</tr>
    							<tr>
    								<td valign="top">{$lang->views}</td>
    								<td valign="top">:</td>
    								<td valign="top">{$thread['views']}</td>
    							</tr>
    							<tr>
    								<td valign="top">{$lang->replies}</td>
    								<td valign="top">:</td>
    								<td valign="top">{$thread['replies']}</td>
    							</tr>
    							{$ratethread}
    						</table>
    					</td>
    				</tr>
    			</table>
    			<br />
    			<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    				<tr>
    					<td class="thead">
    						<strong>{$GLOBALS['threadfields_x']['xtlddesc']['title']}</strong>
    					</td>
    				</tr>
    				<tr>
    					<td class="trow1">
    						{$GLOBALS['threadfields']['xtlddesc']}
    					</td>
    				</tr>
    			</table>
    			<br class="clear" />
    			<div class="float_right clear largetext">{$lang->xtldir_user_comments}</div>
    			<div id="posts" class="clear">{$posts}</div>
    		</td>
    	</tr>
    </table>
    <br class="clear" />
    {$quickreply}
    <div class="float_right" style="text-align: right;">
    	{$moderationoptions}
    	{$forumjump}
    </div>
    <br style="clear: both;" />
    {$usersbrowsing}
    <div class="smalltext tc">
    	{$forum['name']}<br />
    	Powered By <a href="http://mybbhacks.zingaburga.com">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
    </div>
    <br />
    {$footer}
    </body>
    </html>


Screenshots:
Threadlist:
This is our Link Directory. We have two links for each link. The Thread Subject will lead us to the showthread page. Here our users can comments and discuss the site, like a usual thread. And the Go link will lead us to the redirect page.
   

Showthread:
   

Redirect:
   

Live Demo:
http://www.14.mynie.co.cc/forumdisplay.php?fid=46


Attached File(s)
.7z  XThreads Link Directory Lang.7z (Size: 1.47 KB / Downloads: 549)

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

« Next Oldest | Next Newest »

Messages In This Thread
RE: link directory...can someone make this? - RateU - 02-05-2011 09:10 AM

 Standard Tools
Forum Jump: