MyBB Hacks

Full Version: X-Threads Garage?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9
Thanks Smile I've added your garage forum as a live demo Smile
Update:

Using number format for price and odometer. Required Xthreads 1.32:
Custom thread fields #3 (Textbox for price):
Display Format:

Code:
$ <?=number_format({VALUE},2)?>


Custom thread fields #4 (Textbox for odometer):
Display Format:

Code:
<?=number_format({VALUE})?> Miles

I think I asked this before, but my members really love the new garage and would like a link to their garages added to their postbit (post profile and maybe in the full profile as well.  Does anyone know how I could do this? Wink  It would really make the garage more useful by allowing members to find other member's garages more easily.  Thanks!
If we use the newest XThreads Version (at least v 1.337), we can do that, RocketFoot.
Look at this thread to know how to do that:
http://mybbhacks.zingaburga.com/showthread.php?tid=415
Ah, so I can add this to my postbit (using the proper forum id, of course)...

<a href="forumdisplay.php?fid=9&amp;filterxt_uid={$post['uid']}">Display All Images By {$post['username_formatted']}</a>

This is awesome!  Works like a charm!  Biggrin

Thanks guys...just when I thought you couldn't impress me anymore...you knock another one outta the park!  

Well done!!
You can "improve" it by using button image (if you want), and put it beside the FIND, EMAIL, WWW, PM buttons in postbit/postbit_classic. Something like this:

HTML Code
<a href="forumdisplay.php?fid=9&amp;filterxt_uid={$post['uid']}"><img src="path_to_image/my_garage.png" alt="View This User Garage" title="View This User Garage" /></a>  


In the profile page:
member_profile template, put:

HTML Code
<a href="forumdisplay.php?fid=9&amp;filterxt_uid={$memprofile['uid']}"><img src="path_to_image/my_garage.png" alt="View This User Garage" title="View This User Garage" /></a>  


You can add it to header (member panel) and member list too if you want.

What determines how many vehicles will appear on the first page?  I'm up to 19  vehicles on the first page but I'm wondering when a second page will be created?

http://www.7173mustangs.com/forum-garage

ETA:  Never mind!  I answered my own question by exploring the forum display settings in my admin cp>config>settings

Mine is set to 20 threads to display so I tried 15 and it created the 2nd page.  I decided to keep it at 20 per page for now.

I did do some formatting with the help of Lee's box layout!  How can I make the box borders match the boxes on the left of the page?  You can take a look if you like!
Thats looking really cool! What I did do was I changed the way I did the box layout by wrapping the box in a div I called "swordfish" and "dalfish", rather than inline styling. So where it says table class "trow1" + lots of inline styles, create a div style in your CSS that is like the styling of the box. Then wrap the boxes in that.

So, for the top half (the visible css) in your templateprefix_forumdisplay_thread

HTML Code
<div style="float: left; height: 220px; padding: 3px; max-height: 220px;{$filters_set['__all']['hiddencss']}">
<table class="dalfish">
<tr>
<td align="center">
<table align="center">
<tbody>
<tr>
<td align="center">
<div class="swordfish">
<a href="{$threadurl}"><img src="{$GLOBALS['threadfields']['pfpic']['url']}/thumb160x120" alt="View {$thread['subject']}" title="View {$thread['subject']}" /></a>
</div><br />
<span class="smalltext">
			<a href="{$thread['threadlink']}">{$thread['subject']}</a><br />{$GLOBALS['threadfields']['prefix']}{$GLOBALS['threadfields']['dld_ep_prefix']}<br />
</span>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<br />
<br />
</div>


and the css

Code:
.swordfish {
align: center; 
height: 140px; 
padding: 1px;
max-height: 120px;
}

.dalfish {
background: #FDE5FB;
border-top: 1px solid rgb(239, 239, 239);
border: 1px solid #efefef; 
width:185px; 
min-height:218px;
}


You can change border styling etc to match your theme.

I'm pretty happy with the way it is now, but I would like to shorten the distance between the thumbnail and the thread title in each box?  Any ideas?

ETA:  OK, I think I got it!  I just started changing on height number at a time and checking to see what changed in the layout!  I think it looks good now!  I would like to figure out how to use the same css as the boxes on the left though?
Your left box uses tborder class for the table.
So, I think you need to use that class for your box too.
Pages: 1 2 3 4 5 6 7 8 9
Reference URL's