Support Forums

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Horizontal Posbit Tutorial
02-05-2008, 10:41 AM (This post was last modified: 02-29-2008 07:17 PM by FirefoxWiz.)
Post: #1
Horizontal Posbit Tutorial
This is just a reference in case MyBBFans goes down one day...

This tutorial was originally made by DennisTT on MyBBFans..

To achieve the horizontal postbit, you will need to edit the postbit templates.

ACP > Templates > *Your Template Set* > Postbit Templates > postbit

Replace it with:
Code:
<td class="tcat" colspan="2" height="18" style="white-space: nowrap; text-align: left">{$post['posturl']}<div class="smalltext" style="float:left">{$post['postdate']} {$post['posttime']}</div>
{$post['icon']}<div class="smalltext" style="text-align: center"><strong> {$post['subject']}</strong></div>
</td>
</tr>
<tr>
<td class="{$altbg}" colspan="2" valign="top" style="white-space: nowrap; text-align: left;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
{$post['user_details']}
</td>
</tr>
<tr>
<td class="{$altbg}" colspan="2" width="85%" valign="top">
<table width="100%">
<tr><td>
<div id="pid_{$post['pid']}">
{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}
<div style="text-align: right; vertical-align: bottom;">
{$post['editedmsg']}
{$post['iplogged']}
</div>
</td></tr>
</table>
</td>
</tr>
<tr>
<td class="{$altbg}" colspan="2" width="100%" valign="middle" height="18">
    <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']}</span></td>
        <td align="right"><span class="smalltext">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}</span></td>
    </tr>
    </table>
</td>
</tr>
{$seperator}

Now open the postbit_author_guest and replace it with:
Code:
{$post['useravatar']}<strong><span class="largetext">{$post['profilelink']}</span></strong>
<br />
<span class="smalltext">
    {$post['usertitle']}<br />
    {$post['groupimage']}
</span>

Now the postbit_author_user template and replace it with:
Code:
<div class="smalltext" style="float: right">
    {$lang->postbit_posts} {$post['postnum']}<br />
<!--        {$post['userstars']} {$usergroup['title']}<br /> {$lang->postbit_joined} {$post['userregdate']}<br /> -->
    {$lang->postbit_status} {$post['onlinestatus']}{$post['replink']}<br />
</div>

{$post['useravatar']}<strong><span class="largetext">{$post['profilelink']}</span></strong><br />
<span class="smalltext">
    {$post['usertitle']}<br />
    {$post['groupimage']}<br />
</span>
(Notice the commented line. You can remove the comments if you want)

Now replace the postbit_avatar template with this:
Code:
<div style="float:left; padding-right: 10px;"><img src="{$post['avatar']}" alt="" {$avatar_width_height} /></div>

And you should be done. :) Arrange the stuff, and have fun!

Example:
   

~FFW
FYI: I'm not a sir, dude, or guy. I am a 'miss'. :rolleyes:
Visit this user's website Find all posts by this user
Quote this message in a reply
02-10-2008, 09:49 PM
Post: #2
RE: Horizontal Posbit Tutorial
Nice code! I'm using this right now.

[Image: Achievement.aspx?text=Sexy%20Beast%20-%205000G]
Visit this user's website Find all posts by this user
Quote this message in a reply
02-11-2008, 10:25 AM
Post: #3
RE: Horizontal Posbit Tutorial
I'm not sure how I would like it with all the author information on top... hmm

- Jade
Knowledge is Power!

Service with a smile... most of the time. ;)
Find all posts by this user
Quote this message in a reply
02-11-2008, 11:07 AM
Post: #4
RE: Horizontal Posbit Tutorial
Actually, Jade, it doesn't look so bad. I tried it and it looks pretty nice. :)

~FFW
FYI: I'm not a sir, dude, or guy. I am a 'miss'. :rolleyes:
Visit this user's website Find all posts by this user
Quote this message in a reply
02-11-2008, 03:03 PM
Post: #5
RE: Horizontal Posbit Tutorial
Yeah, I tried it too, and after a bit of tweaking looks pretty cool.
Find all posts by this user
Quote this message in a reply
02-11-2008, 03:20 PM
Post: #6
RE: Horizontal Posbit Tutorial
I think just about everything takes tweaking to get it to your preference. :D

~FFW
FYI: I'm not a sir, dude, or guy. I am a 'miss'. :rolleyes:
Visit this user's website Find all posts by this user
Quote this message in a reply
02-12-2008, 10:35 AM
Post: #7
RE: Horizontal Posbit Tutorial
It sure does, because sometimes when i download a skin, I edit it a little bit if I don't like a certain aspect :)

[Image: Achievement.aspx?text=Sexy%20Beast%20-%205000G]
Visit this user's website Find all posts by this user
Quote this message in a reply
02-12-2008, 10:58 AM
Post: #8
RE: Horizontal Posbit Tutorial
What is difference? I'm confused @_@

[Image: lorddonkcreationsig.png]
Latest Release: MyBB Christmas Tree for MyBB 1.4!
Visit this user's website Find all posts by this user
Quote this message in a reply
02-12-2008, 02:41 PM
Post: #9
RE: Horizontal Posbit Tutorial
This puts the author information (postbit) above the posts instead of on the left like it is by default. ;)

~FFW
FYI: I'm not a sir, dude, or guy. I am a 'miss'. :rolleyes:
Visit this user's website Find all posts by this user
Quote this message in a reply
02-12-2008, 05:15 PM (This post was last modified: 02-12-2008 05:16 PM by Tarazar.)
Post: #10
RE: Horizontal Posbit Tutorial
Will this replace the rounded corners stuff if we use this?
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: