MyBB Themes Community

Full Version: vBulletin styled last post column for MyBB 1.4.x
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This lil tutorial will show you how to change your "Last Post" and "Post" and "Threads" columns around to be styled like vBulletin.

Preview:


[Image: lastpostcolumnfr2.th.jpg]





Open up your Forum Bit Templates > forumbit_depth1_cat template.


Now find:
Code:
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>

And replace with:
Code:
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>

Now open your Forum Bit Templates > forumbit_depth2_forum template.

And find:
Code:
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>

And replace with:
Code:
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>

Now open your Forum Display Templates > forumdisplay_subforums template.

And find:
Code:
<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="15%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>

And replace with:

Code:
<td class="tcat" width="15%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>

Now you have vBulletin styled columns for MyBB!
Cool brother. Any screenshot?
(10-01-2008 08:05 AM)kane Wrote: [ -> ]Cool brother. Any screenshot?

Yep..., look again :P
Screenshot its, grat tutorial very thx
Thank you very much. Hey vintagedaddyo you havemade it so far why not include the LAST POST IMAGE AS in VBulletin this would be really appreciate. Thanks in advance
(10-13-2008 07:02 AM)neovirus Wrote: [ -> ]Thank you very much. Hey vintagedaddyo you havemade it so far why not include the LAST POST IMAGE AS in VBulletin this would be really appreciate. Thanks in advance

Okay I will have a look see in the near future and expand the tutorial to include that as well. Sorry for the delays.
(10-13-2008 07:02 AM)neovirus Wrote: [ -> ]Thank you very much. Hey vintagedaddyo you havemade it so far why not include the LAST POST IMAGE AS in VBulletin this would be really appreciate. Thanks in advance
delete the code in the forumbit_depth2_forum_lastpost first.
and copy the new one in forumbit_depth2_forum_lastpost

<span class="smalltext">
<img src="{$theme['imgdir']}/post.png" alt="" style="vertical-align:right"/> <a href="showthread.php?tid={$lastposttid}&amp;action=lastpost" title="{$full_lastpost_subject}"><strong>{$lastpost_subject}</strong></a>
<br />
{$lang->by} {$lastpost_profilelink}</span><br />
<div align="middle"><span class="smalltext">{$lastpost_date} {$lastpost_time}</span> <a href="showthread.php?tid={$lastposttid}&amp;action=lastpost" title="{$full_lastpost_subject}"><img src="{$theme['imgdir']}/lastpost.png" alt="" style="vertical-align:left"/></a></div>

And load the image to the Theme that You use.
If the image is a gif change the .png to .gif

Satbox4all
Really cool, and easy to do. Thanks!
Thanks alot, works great!
Tried and working. thank you!
Reference URL's