MyBB Hacks

Full Version: xthreads request
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Yes like that. Leave the comments part in there. I'm still not sure if I will use the facebook comments, or MyBB replies as comments.
xtfblp_showthread

HTML Code
<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
	var quickdelete_confirm = "{$lang->quickdelete_confirm}";
// -->
</script>
<script type="text/javascript" src="jscripts/thread.js?ver=1600"></script>
</head>
<body>
{$header}
{$pollbox}
<div class="float_left">
	{$multipage}
</div>
<div class="float_right">
	{$newreply}
</div>
<br class="clear" />
<div>
	{$first_post}
</div>
<br />
<div style="text-align: center;">
	<strong>&laquo; <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> &raquo;</strong>
</div>
<br />
<div id="posts">
	{$posts}
</div>
<br />
{$search_thread}
<br class="clear" />
<div class="float_left">
	{$multipage}
</div>
<br style="clear: both;" />
{$quickreply}
{$threadexbox}
{$similarthreads}
<br />

<div class="float_right" style="text-align: right;">
	{$moderationoptions}
	{$forumjump}
</div>
<br style="clear: both;" />
{$usersbrowsing}
{$footer}
</body>
</html>

Modify it as your needs. If you use the Facebook comments, maybe you need to remove some variable from that template, like {$multipage}, {$newreply}, {$quickreply} and etc. And maybe you need to place the Facebook comments code in the template above.

xtfblp_postbit_first

HTML Code
{$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}">
				<strong><span class="largetext">
					{$post['onlinestatus']} {$post['profilelink']} :
					{$post['subject']} {$post['subject_extra']}
				</strong></span>
				<div class="post_body" id="pid_{$post['pid']}">
					{$post['message']}
				</div>
				<div class="post_management_buttons float_left">
					<img src="images/english/newthread.gif" alt="" title="" />				
				</div>
				<div class="author_buttons float_right">
					{$post['button_report']}{$post['button_warn']}
				</div>
				<br class="clear" />
				<div class="post_meta" id="post_meta_{$post['pid']}">
					{$post['iplogged']}
				</div>
			</td>
		</tr>
	</tbody>
</table>

Modify it as your needs. Replace the image tag in line #23 with the Facebook Like Button code.

Skip this template if you use the Facebook Comments:
xtfblp_postbit

HTML Code
{$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']}">
					<strong><span class="smalltext">
						{$post['onlinestatus']} {$post['profilelink']} :
					</strong></span>
					{$post['message']}
				</div>
				<div class="author_buttons float_right">
					{$post['button_report']}{$post['button_warn']}
				</div>
				<br class="clear" />
				<div class="post_meta" id="post_meta_{$post['pid']}">
					{$post['iplogged']}
				</div>
			</td>
		</tr>
	</tbody>
</table>

That's perfect!
Thanks so much...how can I ever repay you.

Now I have to run off and add the FB button and test the FB comments.
Pages: 1 2
Reference URL's