Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Trivia Forum
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #11
RE: Trivia Forum
Not a problem!  

I decided to have a go at it and so far, I am happy with the results.  I just have one problem...

http://www.7173mustangs.com/thread-vip-question-test

If you click on the same tab twice, the content disappears!  Any ideas??

[Image: gallery_2_628_39582.jpg]
(This post was last modified: 01-13-2011 03:11 AM by RocketFoot.)
01-13-2011 02:49 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #12
RE: Trivia Forum
Could you post your template_prefix_postbit_first_classic and your template_prefix_showthread template?
And your custom thread fields setting for that tabs.

01-13-2011 03:47 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #13
RE: Trivia Forum
tf_postbit_first

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
{$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" colspan="3">
				<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="trow1 {$unapproved_shade}" colspan="3">
				<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
					<tr>
						<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</td>
						<td class="post_author">
							<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
							<span class="smalltext">
								{$post['usertitle']}<br />
								{$post['userstars']}
								{$post['groupimage']}
							</span>
						</td>
						<td class="smalltext post_author_info" width="165">
							{$post['user_details']}
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="tcat at tab" title="Main" style="cursor: pointer; text-align: center; width: 33%;" abbr="tc1">
				<strong>Main</strong>
			</td>
			{$GLOBALS['threadfields']['tc2']}
			{$GLOBALS['threadfields']['tc3']}
		</tr>
		<tr>
			<td class="trow2 post_content {$unapproved_shade}" colspan="3">
				<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
				<div id="tc1" class="content">
					<div class="post_body" id="pid_{$post['pid']}">
						{$post['message']}
					</div>
				</div>
				{$GLOBALS['threadfields']['tc2c']}
				{$GLOBALS['threadfields']['tc3c']}
				{$post['attachments']}
				{$post['signature']}

				<div class="post_meta" id="post_meta_{$post['pid']}">
				{$post['iplogged']}
				</div>
			</td>
		</tr>

		<tr>
			<td class="trow1 post_buttons {$unapproved_shade}" colspan="3">
				<div class="author_buttons float_left">
					{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}
				</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>


tf_showthread

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<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="Overview" style="cursor: pointer; text-align: center;" abbr="overview">
						<strong>Question</strong>
					</td>
					<td class="tcat tab" title="Images" style="cursor: pointer; text-align: center;" abbr="image">
						<strong>Answer</strong>
					</td>
					<td class="tcat tab" title="Vehicle Modification" style="cursor: pointer; text-align: center;" abbr="mod">
						<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 id="overview" class="content">
				{$first_post}
			</div>
			<div id="image" class="content">
				<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
					<tr>
						<td class="tcat">
							<div class="float_left smalltext">
								<strong>{$thread['subject']} - Official Answer</strong>
							</div>
						</td>
					</tr>
					<tr>
						<td class="trow1" align="center">
							{$GLOBALS['threadfields']['tc2c']}
						</td>
					</tr>
				</table>
			</div>
			<div id="mod" class="content">
				<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
					<tr>
						<td class="tcat">
							<div class="float_left smalltext">
								<strong>{$thread['subject']} - Winner</strong>
							</div>
						</td>
					</tr>
					<tr>
						<td class="trow1" align="center">
							{$GLOBALS['threadfields']['tc3c']}
						</td>
					</tr>
				</table>
			</div>
			
			<br class="clear" />
			<div 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 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>


Multiline Textbox for Tabs Contents:

    * Title: Contents 2
    * Key: tc2c
    * 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>


[Image: gallery_2_628_39582.jpg]
01-13-2011 03:57 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #14
RE: Trivia Forum
Not quite sure why you need two sets of tabs there?
(01-13-2011 03:57 AM)RocketFoot Wrote:  tf_postbit_first

Code:
1
2
3
4
5
6
			<td class="tcat at tab" title="Main" style="cursor: pointer; text-align: center; width: 33%;" abbr="tc1">
				<strong>Main</strong>
			</td>
			{$GLOBALS['threadfields']['tc2']}
			{$GLOBALS['threadfields']['tc3']}
		</tr>


tf_showthread

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
			<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="Overview" style="cursor: pointer; text-align: center;" abbr="overview">
						<strong>Question</strong>
					</td>
					<td class="tcat tab" title="Images" style="cursor: pointer; text-align: center;" abbr="image">
						<strong>Answer</strong>
					</td>
					<td class="tcat tab" title="Vehicle Modification" style="cursor: pointer; text-align: center;" abbr="mod">
						<strong>Winner</strong>
					</td>
				</tr>
			</table>


And, you have {$GLOBALS['threadfields']['tc2c']} variable in tf_showthread and tf_postbit_first.

01-13-2011 04:06 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #15
RE: Trivia Forum
I ended up not using the tab titles, I just hard coded them so they would be the same in every post.  

Does this cause the disappearing content?  How should I go about fixing?

I've tried this but still no good...

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
{$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" colspan="3">
				<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="trow1 {$unapproved_shade}" colspan="3">
				<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
					<tr>
						<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</td>
						<td class="post_author">
							<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
							<span class="smalltext">
								{$post['usertitle']}<br />
								{$post['userstars']}
								{$post['groupimage']}
							</span>
						</td>
						<td class="smalltext post_author_info" width="165">
							{$post['user_details']}
						</td>
					</tr>
				</table>
			</td>
		</tr>

		<tr>
			<td class="trow2 post_content {$unapproved_shade}" colspan="3">
				<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
				<div id="tc1" class="content">
					<div class="post_body" id="pid_{$post['pid']}">
						{$post['message']}
					</div>
				</div>
				{$post['attachments']}
				{$post['signature']}

				<div class="post_meta" id="post_meta_{$post['pid']}">
				{$post['iplogged']}
				</div>
			</td>
		</tr>

		<tr>
			<td class="trow1 post_buttons {$unapproved_shade}" colspan="3">
				<div class="author_buttons float_left">
					{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}
				</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>


I am using the tc2c globals but not the tc2...


[Image: gallery_2_628_39582.jpg]
(This post was last modified: 01-13-2011 04:25 AM by RocketFoot.)
01-13-2011 04:12 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #16
RE: Trivia Forum
Do you use postbit_classic there?

01-13-2011 04:33 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #17
RE: Trivia Forum
My whole forum is set to classic

[Image: gallery_2_628_39582.jpg]
01-13-2011 04:39 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #18
RE: Trivia Forum
Could you post your tf_postbit_first_classic template?

01-13-2011 04:40 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #19
RE: Trivia Forum
I don't have that template...I only created tf_postbit_first

Forum/Xthread setting is set to not force layout.  So I'm not sure what to do...LOL

Would it be easier for me to PM you admin access?

[Image: gallery_2_628_39582.jpg]
(This post was last modified: 01-13-2011 04:45 AM by RocketFoot.)
01-13-2011 04:44 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #20
RE: Trivia Forum
Post your postbit_classic here.

01-13-2011 04:47 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: