vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - PS - Boxed Postbit Information & Centered Postbit (https://vborg.vbsupport.ru/showthread.php?t=170238)

PaulSonny 02-10-2008 10:00 PM

PS - Boxed Postbit Information & Centered Postbit
 
Please Mark As Installed!

Hello Everybody,

I thought I would share this here for everybody. This template modification will involve editing your postbit_legacy template. This will place the information displayed in the postbit such as the Post Count, Location, Join Date etc into boxes beneath the avatar to give the postbit a more professional look.

Live Demo

Below is how to do it.

1) In your AdminCP > Styles & Templates > Style Manager > Main CSS Options > Additional CSS place the following code:

Code:

.postinfo {
        border-top: solid 1px #E0E0E0;
        border-left: solid 1px #E0E0E0;
        border-right: solid 1px #D7D7D7;
        border-bottom: solid 1px #D7D7D7;
        margin: 3px 5px;
        padding: 2px;
        color: #808080;
        background: #d2dee3;
        font-size: 10px;
}

2) You should change the background colour to suit your style. Then click Save.

3) In your AdminCP > Styles & Templates > Style Manager > Edit Templates > postbit_legacy find the following code:

For Join Date: (other Examples At The Bottom!)

Code:

<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
4) Replace the relevant DIV tags as shown below.

Code:

<if condition="$post['joindate']"><div class="postinfo">$vbphrase[join_date]: $post[joindate]</div></if>
5) Replace the revevant DIV tags for any other information you wish to be shown boxed.

Other Examples.

Code:

For Total Posts:

Find:

<div>
        $vbphrase[posts]: $post[posts]
</div>

Replace With:

<div class="postinfo">
        $vbphrase[posts]: $post[posts]
</div>

Code:

For Post Thank You Hack:

Find:

<tr><td class="alt1" colspan="3"><div>$post[post_thanks_bit]</div></td></tr>

Replace With:

<tr><td class="alt1" colspan="3"><div class="postinfo">$post[post_thanks_bit]</div></td></tr>

Screenshot Provided.

Update: I have added another file "centered postbit" to help make everything appear centralised like shown in the demo.

Pcwolfx? 02-11-2008 05:52 PM

thnks.nice.

hrk 02-11-2008 06:07 PM

Nice hack.

need more sample on other div as well.

thank you.

hrk 02-11-2008 06:09 PM

how to get the exact same look like the demo ? its nice.
what item need to enable at the acp ?
i am at default settings.

thanks

PaulSonny 02-11-2008 06:11 PM

Quote:

Originally Posted by hrk (Post 1440938)
how to get the exact same look like the demo ? its nice.
what item need to enable at the acp ?
i am at default settings.

thanks

By The exact same look do you mean you want everything in the centre?

If not can you please explain further?

Thanks, Paul.

hrk 02-11-2008 06:16 PM

Quote:

Originally Posted by PaulSonny (Post 1440941)
By The exact same look do you mean you want everything in the centre?

If not can you please explain further?

Thanks, Paul.


yes . everything in center and how to get the join date, locations, post, in position , is there some div to add in or select options in acp ?

thanks

PaulSonny 02-11-2008 06:19 PM

In order to make everything in the postbit_legacy to appear centre i'm afraid it is not as simple of selecting an option in the AdminCP, you will have to edit the postbit_legacy.

I will put together another tutorial file to help make everything central and add it on.

Thanks, Paul.

hrk 02-11-2008 06:23 PM

Quote:

Originally Posted by PaulSonny (Post 1440949)
In order to make everything in the postbit_legacy to appear centre i'm afraid it is not as simple of selecting an option in the AdminCP, you will have to edit the postbit_legacy.

I will put together another tutorial file to help make everything central and add it on.

Thanks, Paul.

Thats would be nice.

thanks Paul.:)

PaulSonny 02-11-2008 06:27 PM

I have added the centralised postbit file.

If you need any further help then please feel free to post.

Thanks, Paul.

hrk 02-11-2008 06:33 PM

Quote:

Originally Posted by PaulSonny (Post 1440956)
I have added the centralised postbit file.

If you need any further help then please feel free to post.

Thanks, Paul.

thanks Paul. installed and working fine. another minor question tought
i could not get the post count in the list.
whats the code ?

the code u provide for join date only i guess?


All times are GMT. The time now is 07:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01154 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete