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

Reply
 
Thread Tools
PS - Boxed Postbit Information & Centered Postbit Details »»
PS - Boxed Postbit Information & Centered Postbit
Version: 1.00, by PaulSonny PaulSonny is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.0 Beta 4 Rating:
Released: 02-10-2008 Last Update: 02-11-2008 Installs: 124
Template Edits
 
No support by the author.

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.

Show Your Support

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

Comments
  #52  
Old 04-04-2008, 08:33 AM
F0xy's Avatar
F0xy F0xy is offline
 
Join Date: Mar 2008
Location: Ireland
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PaulSonny View Post
Hello Foxy,

Please see the original thread and download the centered_postbit.txt file.

Thanks, Paul.
yep worked a treat, thanks mate
Reply With Quote
  #53  
Old 04-07-2008, 04:21 AM
mblb mblb is offline
 
Join Date: Mar 2008
Location: Sydney
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, so with VB 7.0 RC2 they have their own templates. I modified template: post_thanks_postbit_info
Quote:
<if condition="$post[userid]">
<div class="postinfo">$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount_formatted]</div>
<div>
<if condition="$post[post_thanks_thanked_times] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts] == 1">
<phrase 1="$post[post_thanks_thanked_times_formatted]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times_formatted]" 2="$post[post_thanks_thanked_posts_formatted]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</div>
</if>
This worked for the "thanks" but i can not figure out the "thanked" one.

Theres also a template: post_thanks_postbit_legacy
Quote:
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td class="alt2" width="175">
<if condition="$post['post_thanks_amount'] == 1">
<strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
<else />
<strong><phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
</if>
<if condition="$bbuserinfo['usergroupid'] == 6">
<br /><a href="post_thanks.php?do=post_thanks_remove_all&am p;p=$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</if>
<if condition="$post['show_thanks_remove_option']">
<br /><a href="post_thanks.php?do=post_thanks_remove_user&a mp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a>
</if>
</td>
<td class="alt1"><div>$post[post_thanks_bit]</div class="postinfo"></td>
</tr>
</table>
</div>

and a template: post_thanks_postbit

Quote:
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt2" style="padding:0px">
<if condition="$post['post_thanks_amount'] == 1">
<strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
<else />
<strong><phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
</if>
</td>
<if condition="$bbuserinfo['usergroupid'] == 6">
<td class="alt2" style="padding:0px" align="right" nowrap="nowrap">
<a href="post_thanks.php?do=post_thanks_remove_all&am p;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="post_thanks_remove_all($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove]</a>
</td>
</if>
<if condition="$post['show_thanks_remove_option']">
<td class="alt2" style="padding:0px" align="right" nowrap="nowrap">
<a href="post_thanks.php?do=post_thanks_remove_user&a mp;p=$post[postid]"<if condition="$vboptions['disable_ajax'] != 2"> onclick="post_thanks_remove_user($post[postid], <if condition="$vboptions['post_groan_integrate']">true<else />false</if>); return false;"</if> rel="nofollow">$vbphrase[post_thanks_remove_user]</a>
</td>
</if>
</tr>
<tr><td class="alt1" colspan="3"><div>$post[post_thanks_bit]</div class="postinfo"></td></tr>
</table>
</div>

Anyhelp?!?
Reply With Quote
  #54  
Old 04-07-2008, 06:34 AM
mblb mblb is offline
 
Join Date: Mar 2008
Location: Sydney
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked it out.

Not i just need to figure out how to do the arcade high score!
Reply With Quote
  #55  
Old 04-09-2008, 09:35 AM
PaulSonny PaulSonny is offline
 
Join Date: Dec 2006
Location: Middlesbrough, UK
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mblb View Post
Worked it out.

Not i just need to figure out how to do the arcade high score!
I'm glad you managed to work it out mblb, care you post your solution here for everybody else?

As for the arcade, what Arcade system are you using and ill try and find the solution for you and post it here.

Thanks, Paul.
Reply With Quote
  #56  
Old 04-09-2008, 11:18 PM
mblb mblb is offline
 
Join Date: Mar 2008
Location: Sydney
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the post_thanks_postbit_info template
find
Quote:
<if condition="$post[userid]">
<div>$vbphrase[post_thanks_thanks]
Replace the relevant DIV tags as shown below.

Quote:
<if condition="$post[userid]">
<div class="postinfo">$vbphrase[post_thanks_thanks]

Then find
Quote:
[post_thanks_user_amount_formatted]</div>
<div>
Replace the relevant DIV tags as shown below.



Quote:
[post_thanks_user_amount_formatted]</div>
<div class="postinfo">

Thanks! I'm still kind of new to this and still haven't worked the arcade out. I am using ibProArcade v2.6.6+
Reply With Quote
  #57  
Old 04-20-2008, 07:33 AM
M-Tuning's Avatar
M-Tuning M-Tuning is offline
 
Join Date: Jul 2005
Location: Winschoten (NL)
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, This is how I got it:

Reply With Quote
  #58  
Old 05-02-2008, 12:34 PM
XnaMe XnaMe is offline
 
Join Date: Sep 2007
Location: Europe
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mblb View Post
In the post_thanks_postbit_info template
find

Replace the relevant DIV tags as shown below.




Then find


Replace the relevant DIV tags as shown below.






Thanks! I'm still kind of new to this and still haven't worked the arcade out. I am using ibProArcade v2.6.6+
It works! Thanks!
Reply With Quote
  #59  
Old 05-06-2008, 02:46 PM
DISLEX DISLEX is offline
 
Join Date: Apr 2006
Location: Odessa
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using it with 3.7. It looks great! Thank you.
Reply With Quote
  #60  
Old 05-06-2008, 04:52 PM
Erika Erika is offline
 
Join Date: Jan 2007
Location: Maryland
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this - I am so happy to have found it - makes my life so much simpler and it looks so nice!
Reply With Quote
  #61  
Old 05-11-2008, 06:35 PM
hrk hrk is offline
 
Join Date: May 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HI Paul

How to get the online /offline image to appear center?

thanks
Reply With Quote
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 06:52 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.05339 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
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
  • (10)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete