Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 X-Threads Garage?
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #19
RE: X-Threads Garage?
The example is a basic function, RocketFoot. There are some modification we can do to it. Like adding more custom thread fields for car information like Year, Engine and etc, so, we can have a different information in our Details tabs. If we have other filter fields, we can use it in XThreads inline search. For example, if we specified the year by listbox, and make it as filter threads, then apply it in Xthreads inline search, our user can search a car by year.

The "main" part for this garage is gf_showthread and gf_forumdisplay_thread template. So, if we want to edit or change something, maybe we need to look at those templates. I think Leefish already tell it in the #14 post.

And, because we didn't force postbit layout here. if we change or edit the gf_postbit_first template, we need to change or edit the gf_postbit_first_classic too. Maybe you already know this. But if you don't want to deal with two postbit template, set the force postbit layout in XThreads Option to one of the postbit layout.

For the gf_forumdisplay_thread template, basically, the template contains two layout:

The first layout, for Garage Home:

HTML Code
1
2
3
4
5
6
7
8
9
10
<div class="float_left" style="width: 49%;{$filters_set['__all']['hiddencss']}">
	<div style="text-align: center; width: 80%; margin: auto auto;">
		<div style="height: 100px; vertical align: middle;">
			<a href="{$threadurl}"><img src="{$GLOBALS['threadfields']['gfvimg']['url']}/thumb120x90" alt="View {$thread['subject']}" title="View {$thread['subject']}" /></a>
		</div>
		<span><a href="{$thread['threadlink']}">{$thread['subject']}</a>{$thread['multipage']}</span>
		<div class="author smalltext">Owner: {$thread['profilelink']}</div>
		<div class="author smalltext">Added: {$thread['threaddate']} - {$thread['threadtime']}</div>
	</div>
</div>

There are no much fields in this layout. If we want to change how many thread per row, try to play with the width in the first line (line #1). Example: using 33% maybe will get three threads/garages per row. Just be careful with visitor/user with a small screen resolution if we want to play with it. The main thing for us to set the width is the thumbnail width we use for the image. For example, if we use 120x90 image thumbnail, and have 5 thread/garages per row, it already takes minimum 600px at the right side, not included the navigation at the left side and other properties of our template, like padding to the container and etc. Maybe in this condition, the layout will break/overlap for a user/visitor with a small screen resolution. Because I only have a max resolution 1024x768 (15" CRT monitor, yeah, a veeeeeery old computer Biggrin), that's why I set it to two threads/garages per row.

The second layout, for the Vehicles Details:

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
<div style="{$filters_set['__all']['visiblecss']}">
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border: 0px;">
		<tr>
			{$rating}
			<td class="tcat smalltext" align="center" colspan="{$colspan}">
				<strong><a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a></strong>
			</td>
			{$modbit}
		</tr>
		<tr>
			<td class="{$bgcolor} smalltext" rowspan="2" width="1" align="center" valign="middle">
				<a href="{$threadurl}"><img src="{$GLOBALS['threadfields']['gfvimg']['url']}/thumb120x90" alt="View {$thread['subject']}" title="View {$thread['subject']}" /></a>
			</td>
			<td class="{$bgcolor}" colspan="4">
				<div>Owner: {$thread['profilelink']}</div>
				<div>Added: {$thread['threaddate']} - {$thread['threadtime']}</div>
			</td>
		</tr>
		<tr>
			<td class="{$bgcolor} smalltext" align="center" height="25">
				Comments: <a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}
			</td>
			<td class="{$bgcolor} smalltext" align="center" width="25%">
				Odometer: {$GLOBALS['threadfields']['gfodometer']}
			</td>
			<td class="{$bgcolor} smalltext" align="center" width="15%">
				Views: {$thread['views']}
			</td>
			<td class="{$bgcolor} smalltext" align="center" width="15%">
				Price: {$GLOBALS['threadfields']['gfprice']}
			</td>
		</tr>
	</table>
</div>


We can see that this layout has more information than the first layout. Pay attention to this layout if we change/edit our custom thread fields.

I hope this make it clearer, RocketFoot Smile

BTW, may I add your garage forum as one of the live demo in the example post? Biggrin


(This post was last modified: 09-16-2010 02:19 AM by RateU.)
09-16-2010 01:49 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
X-Threads Garage? - RocketFoot - 09-07-2010, 10:58 PM
RE: X-Threads Garage? - RateU - 09-09-2010, 08:35 AM
RE: X-Threads Garage? - techu - 09-09-2010, 01:26 PM
RE: X-Threads Garage? - ZiNgA BuRgA - 09-09-2010, 02:59 PM
RE: X-Threads Garage? - RocketFoot - 09-10-2010, 06:35 AM
RE: X-Threads Garage? - RateU - 09-10-2010, 09:36 AM
RE: X-Threads Garage? - RocketFoot - 09-10-2010, 08:43 PM
RE: X-Threads Garage? - ZiNgA BuRgA - 09-10-2010, 08:57 PM
RE: X-Threads Garage? - RocketFoot - 09-10-2010, 09:11 PM
RE: X-Threads Garage? - ZiNgA BuRgA - 09-10-2010, 10:23 PM
RE: X-Threads Garage? - RocketFoot - 09-10-2010, 10:37 PM
RE: X-Threads Garage? - RateU - 09-11-2010, 02:40 AM
RE: X-Threads Garage? - RocketFoot - 09-11-2010, 03:09 AM
RE: X-Threads Garage? - leefish - 09-11-2010, 08:00 AM
RE: X-Threads Garage? - RateU - 09-12-2010, 02:34 AM
RE: X-Threads Garage? - RocketFoot - 09-15-2010, 01:46 AM
RE: X-Threads Garage? - RateU - 09-15-2010, 04:30 AM
RE: X-Threads Garage? - RocketFoot - 09-15-2010, 10:00 PM
RE: X-Threads Garage? - RateU - 09-16-2010 01:49 AM
RE: X-Threads Garage? - RocketFoot - 09-16-2010, 09:54 PM
RE: X-Threads Garage? - RateU - 09-17-2010, 04:37 AM
RE: X-Threads Garage? - RateU - 10-05-2010, 05:40 AM
RE: X-Threads Garage? - RocketFoot - 11-22-2010, 09:45 PM
RE: X-Threads Garage? - RateU - 11-23-2010, 01:30 AM
RE: X-Threads Garage? - RocketFoot - 11-23-2010, 03:01 AM
RE: X-Threads Garage? - RateU - 11-23-2010, 03:15 AM
RE: X-Threads Garage? - RocketFoot - 12-09-2010, 10:45 PM
RE: X-Threads Garage? - leefish - 12-10-2010, 03:13 AM
RE: X-Threads Garage? - RocketFoot - 12-10-2010, 05:26 AM
RE: X-Threads Garage? - RateU - 12-10-2010, 06:16 AM
RE: X-Threads Garage? - RocketFoot - 12-10-2010, 07:47 AM
RE: X-Threads Garage? - RateU - 12-10-2010, 07:57 AM
RE: X-Threads Garage? - RocketFoot - 12-10-2010, 08:02 AM
RE: X-Threads Garage? - RateU - 12-10-2010, 08:12 AM
RE: X-Threads Garage? - RocketFoot - 12-12-2010, 07:12 AM
RE: X-Threads Garage? - RateU - 12-12-2010, 07:22 AM
RE: X-Threads Garage? - RocketFoot - 12-12-2010, 07:25 AM
RE: X-Threads Garage? - RateU - 12-12-2010, 07:29 AM
RE: X-Threads Garage? - RocketFoot - 12-12-2010, 07:36 AM
RE: X-Threads Garage? - ZiNgA BuRgA - 12-12-2010, 07:40 AM
RE: X-Threads Garage? - RateU - 12-12-2010, 07:40 AM
RE: X-Threads Garage? - RocketFoot - 12-12-2010, 07:41 AM
RE: X-Threads Garage? - RocketFoot - 12-16-2010, 02:22 AM
RE: X-Threads Garage? - ZiNgA BuRgA - 12-16-2010, 09:39 AM
RE: X-Threads Garage? - RocketFoot - 01-11-2011, 08:09 AM
RE: X-Threads Garage? - ZiNgA BuRgA - 01-11-2011, 08:27 AM
RE: X-Threads Garage? - RocketFoot - 01-11-2011, 09:06 AM
RE: X-Threads Garage? - burntcav - 04-14-2011, 04:55 PM
RE: X-Threads Garage? - ZiNgA BuRgA - 04-14-2011, 07:11 PM
RE: X-Threads Garage? - burntcav - 04-15-2011, 12:20 AM
RE: X-Threads Garage? - RocketFoot - 07-09-2011, 08:19 PM
RE: X-Threads Garage? - leefish - 07-09-2011, 11:20 PM
RE: X-Threads Garage? - RateU - 07-14-2011, 03:36 AM
RE: X-Threads Garage? - zigi - 10-02-2011, 10:12 PM
RE: X-Threads Garage? - RateU - 10-03-2011, 01:26 AM
RE: X-Threads Garage? - zigi - 10-03-2011, 01:45 AM
RE: X-Threads Garage? - RateU - 10-23-2011, 04:38 AM
RE: X-Threads Garage? - Tortoise - 11-12-2011, 06:26 AM
RE: X-Threads Garage? - RateU - 11-12-2011, 08:04 AM
RE: X-Threads Garage? - Tortoise - 11-15-2011, 04:20 AM
RE: X-Threads Garage? - RateU - 11-15-2011, 05:19 AM
RE: X-Threads Garage? - Tortoise - 11-17-2011, 05:40 AM
RE: X-Threads Garage? - Zevil - 01-15-2012, 07:38 AM
RE: X-Threads Garage? - RateU - 01-15-2012, 08:06 AM
RE: X-Threads Garage? - Zevil - 01-15-2012, 07:31 PM
RE: X-Threads Garage? - RateU - 01-16-2012, 01:55 AM
RE: X-Threads Garage? - Zevil - 01-16-2012, 04:29 AM
RE: X-Threads Garage? - RateU - 01-16-2012, 04:52 AM
RE: X-Threads Garage? - Zevil - 01-16-2012, 05:45 AM
RE: X-Threads Garage? - RateU - 01-16-2012, 06:16 AM
RE: X-Threads Garage? - Zevil - 01-16-2012, 06:36 AM
RE: X-Threads Garage? - bigvin - 01-31-2014, 11:48 PM
RE: X-Threads Garage? - cakissimo - 03-20-2014, 09:59 PM
RE: X-Threads Garage? - bigvin - 04-07-2015, 08:06 AM
RE: X-Threads Garage? - ZiNgA BuRgA - 04-07-2015, 05:17 PM
RE: X-Threads Garage? - bigvin - 04-07-2015, 11:16 PM
RE: X-Threads Garage? - ZiNgA BuRgA - 04-08-2015, 09:45 AM
RE: X-Threads Garage? - bigvin - 04-09-2015, 04:09 AM
RE: X-Threads Garage? - RocketFoot - 02-14-2017, 02:04 AM
RE: X-Threads Garage? - RateU - 02-14-2017, 02:23 AM
RE: X-Threads Garage? - RocketFoot - 02-14-2017, 03:26 AM

 Standard Tools
Forum Jump: