vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - [Postbit-Legacy Hack] Attractive User Info Boxes for Posts (https://vborg.vbsupport.ru/showthread.php?t=309239)

addamroy 03-05-2014 11:00 PM

[Postbit-Legacy Hack] Attractive User Info Boxes for Posts
 
1 Attachment(s)
This mod will allow you to create attractive custom containers for your member's user info in postbit. For example, Join date, post count, location, thanks etc.

See screenshot in attachments for example.

First, you need to add a class to your additional.css files.

Go to styles and templates > edit templates > css templates > additional.css

Add to the bottom:
HTML Code:

.postbitboxes {

color:white;
display:inline-block;
padding:3px;
padding-left:7px;
margin:2px;
border:1px solid #000000;
border-radius:5px;
background-color:#2b2b2b;
width:90%;
box-shadow: 2px 2px 1px #888888;

}

Change color, width, and background-color to suit your sites needs.

Now you need to make some edits to your postbit_legacy template.

Go to styles and templates > edit templates > postbit templates > postbit_legacy

Find:
HTML Code:

<dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd>
Change it to:
HTML Code:

<div class="postbitboxes">
<dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd>
</div>


Find:
HTML Code:

<dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd>
Change it to:
HTML Code:

<div class="postbitboxes">
<dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd>
</div>


Find:
HTML Code:

<dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd>
Change it to:
HTML Code:

<div class="postbitboxes">
<dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd>
</div>


Find:
HTML Code:

<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>
Change it to:
HTML Code:

<div class="postbitboxes">
<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>
</div>


Essentially all that you've done here is wrapped the new div tag around each element of your user info displayed in the sidebar.

So the above template edits can also be applied to templates for other mods which display info here such as Abe's Post Thank You Hack.

NOTE: To also include place BLOG ENTRIES inside the same box, see post #3 https://vborg.vbsupport.ru/showpost....70&postcount=3

Enjoy!

Check out my other Template Modifications for 4.x!

Link Private Forums to thread instead of error message

Sidebar Anywhere Enhancement - Custom Blocks Per Forum or Page

Change Thread Title Color for Specific Forums on Homepage

Change Background Color for Specific Forums on Homepage

Change Title Color of Specific Forums on Homepage

Thread Starter Image in Postbit for OP

CUSTOM BUTTONS that look like your forum!

Custom User Rank Box in Posts

tbworld 03-06-2014 12:44 PM

Thanks for sharing! :)

ged 03-17-2014 08:32 AM

"Blog entries: x" block is not in postbit_legacy template.

Open blog_postbit_entries_link template and replace its contents with these:

HTML Code:

<div class="postbitboxes"><dt>{vb:rawphrase blog_entries}</dt><dd><a href="{vb:link blog, {vb:raw post}, null, 'userid', 'blog_title'}">{vb:raw post.entries}</a></dd></div>

SwollenCranium 03-30-2014 07:10 PM

Thanks !!

Looks great.

Spangle 05-04-2014 04:19 PM

I love this hack, it gives a more professional look to the postbit

Max Taxable 05-04-2014 04:22 PM

Ha. I've had this for my v3 for several years. Cool to see someone did it for v4.

thetechgenius 06-19-2014 12:02 AM

I added this to my forum, with a few modifications to the CSS to match my Custom Style. Thank you for this! *Installed*

john7911 06-20-2014 04:52 AM

Thank you :)

john7911 06-20-2014 05:11 PM

I have added the modification but there are some problem
http://oi62.tinypic.com/i3dnw3.jpg
What I have to do?
Thank you :)

addamroy 06-22-2014 10:17 AM

Looks to me like you forgot to close a DIV tag, or left some other tag open...

I would recommend starting over and repeating the steps again, making sure to do it correctly.

I hope that helps, should be a simple fix if my assumption is correct.


All times are GMT. The time now is 06:03 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
  • Page Generation 0.01135 seconds
  • Memory Usage 1,748KB
  • 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
  • (10)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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