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

Reply
 
Thread Tools
Neater Postbit Legacy Fields Details »»
Neater Postbit Legacy Fields
Version: 1.00, by Adam21 Adam21 is offline
Developer Last Online: Jul 2010 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.7 Rating:
Released: 05-26-2007 Last Update: Never Installs: 61
Template Edits
 
No support by the author.

Hi.I would like to share my postbit_legacy template codes with you guys.Here's another way to make your postbit legacy info look neater.Your Post counts,Location and any other info which you want,can be 'boxed' up nicely under your avatar.This should work in most versions of vb i believe and should be able to use it in the postbit template too though i havent try that out yet.Anyway,here how to do it....

1)In your Admincp,under Style Manager,Main CSS options,add inside the Additional CSS box
Code:
.postdata { 
	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: #FFFFFF;
	font-size: 10px; 
}
and click Save

NOTE:You should change the color of the background of the box or size accordingly to the style you are using.

2)In your AdminCP,Style Manager,Edit Templates options,go to edit the Postbit_Legacy option,under this code,

Code:
					<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
					<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
			<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
				<div>
					$vbphrase[posts]: $post[posts]
				</div>
				<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
Edit the relavent <div> tags that you wish to become enclosed in the box to become <div class="postdata">.Meaning,you should get something like this

Code:
				<if condition="$post['joindate']"><div class="postdata">$vbphrase[join_date]: $post[joindate]</div></if>
				<if condition="$post['field2']"><div class="postdata">$vbphrase[location_perm]: $post[field2]</div></if>
				<if condition="$post['age']"> <div class="postdata">$vbphrase[age]: $post[age]</div></if>
				<div class="postdata">
					$vbphrase[posts]: $post[posts]
				</div>
				<if condition="$show['infraction']"><div class="postdata">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
See those changes i've made in red to what i meant.You can have as many details as enclosed neatly in the boxes and in what colors as you wish(just edit the values in the Step 1)

Screenshot below.I'm just sharing what i think is neat,i'm not a designer nor coder,so dont be hard on me!Thanks for reading!

Show Your Support

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

Comments
  #12  
Old 06-06-2007, 01:27 PM
killa101 killa101 is offline
 
Join Date: Aug 2004
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Adam21 View Post
1)Ah.sorry,my wrong,that's part of my whole add.css codes i just added.its not necessary for the postbit legacy fields.you can omit that out if you wish

2)tha'ts the color you can change it as you wish.try playing around with it to suit your styles

3)what you mean by align with everything else in the postbit?try add the texts without the brackets [align="left"] after the <div tag and see? you have a screenshot?
Hey thanks for your response, I got everything sorted now.

in regards to number 2, "color" didnt seem to do anything as background set the background colour and the border colours were set by the the border attributes.

in regards to number 3, for some reason on mine the tables were indented. I dont know how better to explain it but I got it sorted now by playing with the margin.

Now I want to add a note to this mod. If you want to put your messenger icons in one of these tables, then you will need to add a conditional around the icons div tag that will make the table hidden if the person does not fill out any messengers. I had to do this on mine at least. Here is the conditional.

Code:
<if condition="$post[icqicon] OR $post[aimicon] OR $post[msnicon] OR $post[yahooicon] OR $post[skypeicon]">
So your full messenger part should look like this:

Code:
<if condition="$post[icqicon] OR $post[aimicon] OR $post[msnicon] OR $post[yahooicon] OR $post[skypeicon]"><div class="postdata">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></if>
Reply With Quote
  #13  
Old 06-16-2007, 08:57 PM
hexus.net hexus.net is offline
 
Join Date: Oct 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly, cheers
Reply With Quote
  #14  
Old 06-20-2007, 07:25 PM
inteller2k7's Avatar
inteller2k7 inteller2k7 is offline
 
Join Date: Jun 2007
Location: NYC
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could someone fix it up for me cant seen to get the reputation and thanks under this this is what i have could someone give me the fixed version
Code:
				<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
				$template_hook[postbit_userinfo_right]
Reply With Quote
  #15  
Old 07-05-2007, 04:37 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why do i get this error when i try to add

VIEW Attached Screen Shot

.postdata {
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: #FFFFFF;
font-size: 10px;
}

into the

Main CSS options,add inside the Additional CSS box

any help would be great full

also i amd useing

vB version 3.6.7
Reply With Quote
  #16  
Old 07-05-2007, 09:53 PM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MiahBeSmokin420 View Post
why do i get this error when i try to add

VIEW Attached Screen Shot

.postdata {
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: #FFFFFF;
font-size: 10px;
}


into the


Main CSS options,add inside the Additional CSS box



any help would be great full

also i amd useing

vB version 3.6.7
common people any ideas?
Reply With Quote
  #17  
Old 07-06-2007, 09:05 PM
Adam21 Adam21 is offline
 
Join Date: Apr 2005
Location: In The Network!
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MiahBeSmokin420 View Post
common people any ideas?
This error is not related to this modification.
Reply With Quote
  #18  
Old 07-06-2007, 09:06 PM
Adam21 Adam21 is offline
 
Join Date: Apr 2005
Location: In The Network!
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by inteller2k7 View Post
Could someone fix it up for me cant seen to get the reputation and thanks under this this is what i have could someone give me the fixed version
Code:
				<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
				$template_hook[postbit_userinfo_right]
Try this

Code:
				<if condition="$show['reputation']"><div class="postdata"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
				$template_hook[postbit_userinfo_right]
Reply With Quote
  #19  
Old 07-07-2007, 05:05 AM
MiahBeSmokin420 MiahBeSmokin420 is offline
 
Join Date: May 2007
Location: Ohio
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Adam21 View Post
This error is not related to this modification.
ok thanks i acculy figured out what it was

i disabled

users defined reputaion points and it let me add it

so thanks for you help

i know you didnt do much but

just letting me know that it has to be something else helped me enough to disable other sheit
Reply With Quote
  #20  
Old 07-25-2007, 03:57 PM
Ohiosweetheart Ohiosweetheart is offline
 
Join Date: Dec 2005
Location: N.E. Ohio
Posts: 2,291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This has been done by a few different designers. Some are adding it into their skins as well.

I like it on some skins. While on other skins, I prefer to use fieldset around the postbit info.
Reply With Quote
  #21  
Old 08-05-2007, 12:38 AM
LjubavnaZona LjubavnaZona is offline
 
Join Date: Feb 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not sure what I was doing wrong but whatever I did I wasnt able to make it look like yours... but I wanted it. Sorry!
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 03:00 PM.


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.08067 seconds
  • Memory Usage 2,319KB
  • 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
  • (8)bbcode_code
  • (5)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
  • (2)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