Try this template:
Create a new template, call it tf_postbit_first_classic
HTML Code
{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tr>
<td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<strong><span class="largetext">{$post['profilelink']}</span></strong><br />
<span class="smalltext">
{$post['useravatar']}<br />
{$post['userstars']}
{$post['usertitle']}<br />
{$post['groupimage']}
{$post['user_details']}
</span>
</td>
<td class="{$altbg}" valign="top">
<table width="100%">
<tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
<br />
<div id="tc1" class="content">
<div id="pid_{$post['pid']}" style="padding: 5px 0 5px 0;">
{$post['message']}
</div>
</div>
{$GLOBALS['threadfields']['tc2c']}
{$GLOBALS['threadfields']['tc3c']}
{$post['attachments']}
{$post['signature']}
<div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
<div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
{$post['iplogged']}
</div>
</td></tr>
</table>
</td>
</tr>
<tr>
<td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['onlinestatus']}{$post['postdate']} {$post['posttime']}</span></td>
<td class="{$altbg}" style="vertical-align: middle;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></td>
<td align="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']}</td>
</tr>
</table>
</td>
</tr>
</table>
|
Replace your tf_showthread template with:
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=1400"></script>
<script type="text/javascript" src="jscripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$.noConflict();
</script>
<style type="text/css">
.at {background: #026CB1 url(images/thead_bg.gif) top left repeat-x;color: #ffffff;}
#image, #mod, #details {display: none;}
</style>
</head>
<body>
{$header}
{$pollbox}
<div class="float_left">
{$multipage}
</div>
<div class="float_right">
{$newreply}
</div>
<br style="clear: both;" />
<table border="0" width="100%">
<tr>
<td width="200" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<strong>{$forum['name']}</strong>
</td>
</tr>
<tr>
<td class="trow1" colspan="{$colspan}">
<strong><a href="{$forumurl}">Member's WFQ Index</a></strong>
</td>
</tr>
<tr>
<td class="trow1" colspan="{$colspan}">
<strong><a href="http://www.7173mustangs.com/forum-vip-weekly-fun-questions">VIP's WFQ Index</a></strong>
</td>
</tr>
</table><P>
{$search_thread}
</td>
<td valign="top">
<script type="text/javascript">
jQuery(document).ready(function($){
$('.tab').click(function(){
$('.at').removeClass('at');
$(this).addClass('at');
$('.content').slideUp();
var catshow = $(this).attr('abbr');
$('#'+ catshow).slideDown();
});
});
</script>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;">
<tr>
<td class="tcat at tab" title="Question" style="cursor: pointer; text-align: center;" abbr="tc1">
<strong>Question</strong>
</td>
<td class="tcat tab" title="Answer" style="cursor: pointer; text-align: center;" abbr="tc2">
<strong>Answer</strong>
</td>
<td class="tcat tab" title="Winner" style="cursor: pointer; text-align: center;" abbr="tc3">
<strong>Winner</strong>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0; border-top-width: 0;">
<tr>
<td class="thead" colspan="2">
{$ratethread}
<strong><a href="{$threadurl}">{$thread['subject']}</a></strong>
</td>
</tr>
</table>
<div>
{$first_post}
</div>
<br class="clear" />
<div align="center">
<strong>« <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> »</strong>
</div>
<br class="clear" />
<strong>Comments</strong>
<div id="posts">
{$posts}
</div>
<div class="float_left">
{$multipage}
</div>
<div style="padding-top: 4px;" class="float_right">
{$newreply}
</div>
<br style="clear: both;" />
{$quickreply}
{$threadexbox}
{$similarthreads}
<br />
<div class="float_right" style="text-align: right;">
{$moderationoptions}
{$forumjump}
</div>
</td>
</tr>
</table>
<br style="clear: both;" />
<div class="smalltext" align="center">
<b>Trivia Forum</b><br />
Powered By <b><a href="http://mybbhacks.zingaburga.com">XThreads</a></b>
</div>
{$footer}
</body>
</html>
|
(01-13-2011 04:58 AM)RateU Wrote: [ -> ]Try this template:
Create a new template, call it tf_postbit_first_classic
HTML Code
{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tr>
<td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<strong><span class="largetext">{$post['profilelink']}</span></strong><br />
<span class="smalltext">
{$post['useravatar']}<br />
{$post['userstars']}
{$post['usertitle']}<br />
{$post['groupimage']}
{$post['user_details']}
</span>
</td>
<td class="{$altbg}" valign="top">
<table width="100%">
<tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
<br />
<div id="tc1" class="content">
<div id="pid_{$post['pid']}" style="padding: 5px 0 5px 0;">
{$post['message']}
</div>
</div>
{$GLOBALS['threadfields']['tc2c']}
{$GLOBALS['threadfields']['tc3c']}
{$post['attachments']}
{$post['signature']}
<div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
<div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
{$post['iplogged']}
</div>
</td></tr>
</table>
</td>
</tr>
<tr>
<td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['onlinestatus']}{$post['postdate']} {$post['posttime']}</span></td>
<td class="{$altbg}" style="vertical-align: middle;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></td>
<td align="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']}</td>
</tr>
</table>
</td>
</tr>
</table>
|
Replace your tf_showthread template with:
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=1400"></script>
<script type="text/javascript" src="jscripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$.noConflict();
</script>
<style type="text/css">
.at {background: #026CB1 url(images/thead_bg.gif) top left repeat-x;color: #ffffff;}
#image, #mod, #details {display: none;}
</style>
</head>
<body>
{$header}
{$pollbox}
<div class="float_left">
{$multipage}
</div>
<div class="float_right">
{$newreply}
</div>
<br style="clear: both;" />
<table border="0" width="100%">
<tr>
<td width="200" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<strong>{$forum['name']}</strong>
</td>
</tr>
<tr>
<td class="trow1" colspan="{$colspan}">
<strong><a href="{$forumurl}">Member's WFQ Index</a></strong>
</td>
</tr>
<tr>
<td class="trow1" colspan="{$colspan}">
<strong><a href="http://www.7173mustangs.com/forum-vip-weekly-fun-questions">VIP's WFQ Index</a></strong>
</td>
</tr>
</table><P>
{$search_thread}
</td>
<td valign="top">
<script type="text/javascript">
jQuery(document).ready(function($){
$('.tab').click(function(){
$('.at').removeClass('at');
$(this).addClass('at');
$('.content').slideUp();
var catshow = $(this).attr('abbr');
$('#'+ catshow).slideDown();
});
});
</script>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;">
<tr>
<td class="tcat at tab" title="Question" style="cursor: pointer; text-align: center;" abbr="tc1">
<strong>Question</strong>
</td>
<td class="tcat tab" title="Answer" style="cursor: pointer; text-align: center;" abbr="tc2">
<strong>Answer</strong>
</td>
<td class="tcat tab" title="Winner" style="cursor: pointer; text-align: center;" abbr="tc3">
<strong>Winner</strong>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0; border-top-width: 0;">
<tr>
<td class="thead" colspan="2">
{$ratethread}
<strong><a href="{$threadurl}">{$thread['subject']}</a></strong>
</td>
</tr>
</table>
<div>
{$first_post}
</div>
<br class="clear" />
<div align="center">
<strong>« <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> »</strong>
</div>
<br class="clear" />
<strong>Comments</strong>
<div id="posts">
{$posts}
</div>
<div class="float_left">
{$multipage}
</div>
<div style="padding-top: 4px;" class="float_right">
{$newreply}
</div>
<br style="clear: both;" />
{$quickreply}
{$threadexbox}
{$similarthreads}
<br />
<div class="float_right" style="text-align: right;">
{$moderationoptions}
{$forumjump}
</div>
</td>
</tr>
</table>
<br style="clear: both;" />
<div class="smalltext" align="center">
<b>Trivia Forum</b><br />
Powered By <b><a href="http://mybbhacks.zingaburga.com">XThreads</a></b>
</div>
{$footer}
</body>
</html>
|
Seems better, but the Winner content is missing
http://www.7173mustangs.com/thread-test-question
How your system works to input the Winner?
Winner comes from tc3c...entered in the regular post editor.
Also, I noticed that all three fields show when you first open the thread...they then disappear after the next tab is clicked
http://www.7173mustangs.com/thread-test-2
What is your tc3c settings?
(01-13-2011 05:25 AM)RateU Wrote: [ -> ]What is your tc3c settings?
# Title: Contents 2
# Key: tc3c
# Applicable Forums: select forum that we want to apply the tabs
# Input Field Type: Multiline Textbox
# Editable by / Required Field?: Everyone
# Display Parsing : Use MyBB Parser (MyCode)
# MyBB Parser Options : Check all except Allow HTML.
# Display Format :
Code:
<div id="tc2" class="content">{VALUE}</div>
|
Find this code in your tf_shothread (around line #17):
HTML Code
#image, #mod, #details {display: none;}
|
Change it to:
HTML Code
#tc2, #tc3 {display: none;}
|
Genius! that fixed all 3 fields showin at post open but still no content under winner. It should say "winner's name goes here"