Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Postbit Legacy Alignment (Centered + 2 Columns) Details »»
Postbit Legacy Alignment (Centered + 2 Columns)
Version: 1.00, by Thelonius Beck Thelonius Beck is offline
Developer Last Online: Jan 2012 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.4 Rating:
Released: 02-21-2010 Last Update: Never Installs: 5
Template Edits
Re-useable Code  
No support by the author.

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;

posbit_mod.png

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{
         background: #E0E0F6;
         color: #000000;
         border-bottom: 1px solid #22229C;
         font-weight: bold;
         font-size: 11px;
}
Now for the template edits.

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">
Replace with:


Code:
    <td class="alt2" align="center" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
Now we'll arrange the postbit data into columns.

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:
            <div class="smallfont">
                &nbsp;<br />
                <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                
                <!-- Rest of the posbit fields -->
                
            </div>
NOTE: I didn't include all of the data, just the first one and the closing div. No worries, just repeat the process for each of them.


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:
            <div class="smallfont">
            <table style="width: 100%">
                    <tr>
                <if condition="$post['joindate']">
                        <td class="postdata">$vbphrase[join_date]:</td>
                        <td class="postdata">$post[joindate]</td>
                                </if> 
                    </tr>
                    
                <!-- Rest of the posbit fields -->
                    
                    
            </table>
             </div>
This will take care of any/all vB default postbit fields. Don't forget, anything you add after the fact will need the same treatment.

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.

postbit_alignment.txt

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03619 seconds
  • Memory Usage 2,213KB
  • Queries Executed 15 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete