![]() |
Postbit Legacy Alignment (Centered + 2 Columns)
1 Attachment(s)
Some folks were requesting this in another thread, so I jotted down a quick tutorial. I am hardly a coding wiz, so if anyone has a better way, I'd love to see it.
This will make your postbit (legacy) look like this; Attachment 112821 Bear in mind, this was all done on an unmodified, default themed board. So all colors, code etc. reflect that. You'll need to make any changes to match your own style. Here we go. First, we'll add one CSS class. In your Admin CP go: Style Manager -> Your Style -> All Style Options Add the following to you Additional CSS Definitions Code:
.postdata{ Style Manager -> Your Style -> Edit Templates -> postbit_legacy First, we'll center all the data in the postbit. Find: Code:
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"> Code:
<td class="alt2" align="center" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"> Find the data fields (<if condition="$post['joindate']"> is a good search phrase if you cannot find it). By default, the code is written like this; Code:
The edit is quite simple, really. Simply place a table with a width of 100% inside the existing div code. Then, separate the actual "Title: Data" into separate td classes (the class we created in step one). Remember that each item gets it's own row. Don't forget to close the table at the end. Code:
Also, some modifications use template hooks to place data into your postbit. For these, you'll have to find the templates the modification uses and edit them accordingly. Attachment 112824 |
All times are GMT. The time now is 04:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|