Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 link directory...can someone make this?
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #111
RE: link directory...can someone make this?
Yea, I was afraid something like this might happen with offsite thumb generation - I added the thumbnails as a an XThreads field....so I have the thumbs on my FTP.

HTML Code
1
2
3
4
5
6
7
8
9
10
<tr>
	<td align="left" class="{$bgcolor}" width="200"><a href="{$thread['threadlink']}" target="_blank"><img src="{$GLOBALS['threadfields']['xtldicon']['url']}/thumb180x60"}alt="no pic" /></a></td>
	<td class="{$bgcolor}">
		<strong><a href="{$thread['threadlink']}" target="_blank" class="{$inline_edit_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a></strong>
		({$thread['views']} {$lang->views}){$GLOBALS['threadfields']['xtldback']} 
		<div class="smalltext">{$GLOBALS['threadfields']['xtlddesc']}</div>
	</td>
	{$modbit}

</tr>


and I made a custom threadfield called xtldicon - its a file field, set to display only pictures, 1 thumbsize 180x60

Downside: you are hosting the files, users can get confused re acceptable sizes etc

Upside: less prone to borkage



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 01-29-2011 11:34 PM by leefish.)
01-29-2011 11:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #112
RE: link directory...can someone make this?
(01-29-2011 09:48 PM)RocketFoot Wrote:  Is there any other services to replace the original thumbnail service?

http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=295&pid=64
And read the next posts.

01-30-2011 02:23 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #113
RE: link directory...can someone make this?
(12-26-2010 10:49 PM)ZiNgA BuRgA Wrote:  No he didn't.  inc/functions_forumlist.php is a MyBB file.
It's something related to this thing?

PHP Code:
1
2
3
4
5
6
7
			if(isset($fcache[$forum['fid']]))
			{
				$forum_info = build_forumbits($forum['fid'], $depth+1);

				// Increment forum counters with counters from child forums
				$forum['threads'] += $forum_info['counters']['threads'];
....


But I don't know how to code it to display the number :/ any tip please!


[Image: 468x602b.png]
01-30-2011 05:17 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #114
RE: link directory...can someone make this?
(01-30-2011 02:23 AM)RateU Wrote:  
(01-29-2011 09:48 PM)RocketFoot Wrote:  Is there any other services to replace the original thumbnail service?

http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=295&pid=64
And read the next posts.



OK, I replaced this:

Code:
<img src="http://www.iwebtool2.com/img/?r={$mybb->settings['bburl']}/&amp;domain={$GLOBALS['threadfields']['xtldwww']}" alt="{$thread['subject']}" title="{$thread['subject']}" style="width: 120px; height: 90px;" />



With this:

Code:
<img src="http://open.thumbshots.org/image.aspx?url=http://{$GLOBALS['threadfields']['xtldwww']}" alt="{$GLOBALS['threadfields']['xtldwww']} Preview" title="{$GLOBALS['threadfields']['xtldwww']} Preview" />


It seems to be linked right, but no images??

http://www.7173mustangs.com/forum-71-73-mustang-links


[Image: gallery_2_628_39582.jpg]
(This post was last modified: 01-30-2011 08:57 AM by RocketFoot.)
01-30-2011 08:56 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #115
RE: link directory...can someone make this?
Try removing the http://:

HTML Code
<img src="http://open.thumbshots.org/image.aspx?url={$GLOBALS['threadfields']['xtldwww']}" alt="{$GLOBALS['threadfields']['xtldwww']} Preview" title="{$GLOBALS['threadfields']['xtldwww']} Preview" />


01-30-2011 09:06 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #116
RE: link directory...can someone make this?
(01-30-2011 09:06 AM)RateU Wrote:  Try removing the http://:

HTML Code
<img src="http://open.thumbshots.org/image.aspx?url={$GLOBALS['threadfields']['xtldwww']}" alt="{$GLOBALS['threadfields']['xtldwww']} Preview" title="{$GLOBALS['threadfields']['xtldwww']} Preview" />


That was it! Worked immediately after the edit!

Thanks!

[Image: gallery_2_628_39582.jpg]
01-30-2011 09:13 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #117
RE: link directory...can someone make this?
(01-30-2011 05:17 AM)Skiilz Wrote:  
(12-26-2010 10:49 PM)ZiNgA BuRgA Wrote:  No he didn't.  inc/functions_forumlist.php is a MyBB file.
It's something related to this thing?

PHP Code:
1
2
3
4
5
6
7
			if(isset($fcache[$forum['fid']]))
			{
				$forum_info = build_forumbits($forum['fid'], $depth+1);

				// Increment forum counters with counters from child forums
				$forum['threads'] += $forum_info['counters']['threads'];
....


But I don't know how to code it to display the number :/ any tip please!

Somewhat, but as I said, it's not an easy task, which is why you're probably not going to be able to get us to do it (in other words, the best chance of doing it is to try to learn it yourself).
If you do try to do it yourself, you'll need to recursively sum up the counts of all the subforums, if you can figure out how to do that.

Hope that helps.

My Blog
01-30-2011 12:50 PM
Find all posts by this user Quote this message in a reply
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
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #119
RE: link directory...can someone make this?
Upgrading:
This is one of the way to upgrade/convert our existing link directory from previous version to this version (for MyBB 1.6):

  1. Create a new forum, look at the forum set up and settings above.
  2. Create all templates above.
  3. Create a custom thread fields for Listbox for Links Category (the #3 custom thread fields, xtldcat). Assign it to our new Link Directory.
  4. Edit the custom thread fields xtldww (#1 custom thread field, Textbox For Website URL) and xtlddesc (#2 custom thread field, Textbox For Site Description). Assign those custom thread fields to our new Link Directory. Please remember that we already had these custom thread fields, so, we don't need to create it again.
  5. Create Custom Moderation Tools:
    Admin CP -> Configuration -> Moderator Tools -> Add New Thread Tool:
    • Name Copy Links and Set As Entertainment Category
    • Short Description Copy these links to the new Link Directory and set it to Entertainment Category
    • Available in forums Select forums -> Select Entertainment Category forum from the previous Link Directory.
    • Copy thread? Select our new Link Directory.
    • Modify Custom Thread Field(s)
      • Field xtldcat
      • Value Entertainment
      After we save the changes, the textarea will be filled with text like this:
      xtldcat=Entertainment

      Please remember that in the previous version, we use one forum for each category. So, repeat this step for each forum in our previous Link Directory.

      Example for Search Engine category:
    • Name Copy Links and Set As Search Engine Category
    • Short Description Copy these links to the new Link Directory and set it to Search Engine Category
    • Available in forums Select forums -> Select Search Engine Category forum from the previous Link Directory.
    • Copy thread? Select our new Link Directory.
    • Modify Custom Thread Field(s)
      • Field xtldcat
      • Value Search Engine
      So, the Value above based on our Value List in our xtldcat custom thread field
  6. Then, go to a forum in our previous Link Directory, select all threads / links there from threadlist page, and run the Custom Moderator Tools.
    Repeat this step for each forum in our previous Link Directory.
  7. Check all functionality in our new Link Directory, like post a new link, edit a link, the redirection and etc. If it works, then we can delete xtldrd and xtldback custom thread fields. And delete our previous Link Directory forum.

If we added the link to our Link Directory in our header template, don't forget to change the link to the new Link Directory.

02-05-2011 11:35 AM
Find all posts by this user Quote this message in a reply
Shemo Offline
Member
***
Posts: 184
Joined: Jan 2008
Post: #120
RE: link directory...can someone make this?
rateu,

I just added this mod on another forum I manage and after doing that, and adding a link, I noticed this at the top when it goes to redirect to the site:

Back;URL=http://www.youtube.com/user/mantic59" />

   
(This post was last modified: 08-27-2011 08:48 AM by Shemo.)
08-27-2011 08:47 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: