vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Getting boxes in postbit_legacy (https://vborg.vbsupport.ru/showthread.php?t=193333)

Abid 10-11-2008 07:25 AM

Getting boxes in postbit_legacy
 
I want to put little boxes surrounding my text such as posts and location...I know this can be done in some skins as I've seen it done in APPLIED skin

Can someone please help me get the code for the boxes?

Cheers

veenuisthebest 10-11-2008 07:53 AM

That would be done through css.

So:-

1. Put this in your stlye's additional CSS box (the second box)

Code:

.postinfo {
        background-color: #F1F4F6;
        color: #283A5E;
        padding: 2px;
        border: 1px inset;
        margin-bottom: 2px;
}

You may change the colors as desired.

2. Then in your postbit_legacy/postbit template:-

Find this:-

HTML Code:

<div class="smallfont">
                                &nbsp;<br />
                                <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>
                                $template_hook[postbit_userinfo_right_after_posts]
                                <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                                <if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                                $template_hook[postbit_userinfo_right]
                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                        </div>

And replace with this:-

HTML Code:

<div class="smallfont">
                                &nbsp;<br />
                                <if condition="$post['joindate']"><div class="postinfo">$vbphrase[join_date]: $post[joindate]</div></if>
                                <if condition="$post['field2']"><div class="postinfo">$vbphrase[location_perm]: $post[field2]</div></if>
                                <if condition="$post['age']"><div class="postinfo">$vbphrase[age]: $post[age]</div></if>
                                <div class="postinfo">
                                        $vbphrase[posts]: $post[posts]
                                </div>
                                $template_hook[postbit_userinfo_right_after_posts]
                                <if condition="$show['infraction']"><div class="postinfo">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                                <if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div class="postinfo"><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                                $template_hook[postbit_userinfo_right]
                                <div class="postinfo">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                        </div>

Hope this helps !

Abid 10-11-2008 08:25 AM

Quote:

Originally Posted by veenuisthebest (Post 1642526)
That would be done through css.

So:-

1. Put this in your stlye's additional CSS box (the second box)

Code:

.postinfo {
        background-color: #F1F4F6;
        color: #283A5E;
        padding: 2px;
        border: 1px inset;
        margin-bottom: 2px;
}

You may change the colors as desired.

2. Then in your postbit_legacy/postbit template:-

Find this:-

HTML Code:

<div class="smallfont">
                                &nbsp;<br />
                                <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>
                                $template_hook[postbit_userinfo_right_after_posts]
                                <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                                <if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                                $template_hook[postbit_userinfo_right]
                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                        </div>

And replace with this:-

HTML Code:

<div class="smallfont">
                                &nbsp;<br />
                                <if condition="$post['joindate']"><div class="postinfo">$vbphrase[join_date]: $post[joindate]</div></if>
                                <if condition="$post['field2']"><div class="postinfo">$vbphrase[location_perm]: $post[field2]</div></if>
                                <if condition="$post['age']"><div class="postinfo">$vbphrase[age]: $post[age]</div></if>
                                <div class="postinfo">
                                        $vbphrase[posts]: $post[posts]
                                </div>
                                $template_hook[postbit_userinfo_right_after_posts]
                                <if condition="$show['infraction']"><div class="postinfo">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                                <if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div class="postinfo"><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                                $template_hook[postbit_userinfo_right]
                                <div class="postinfo">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                        </div>

Hope this helps !

Where do I edit the css from?

I went to the main css page but can't find the box you said for

veenuisthebest 10-11-2008 08:29 AM

Style Manager->Your style Dropdown->Main CSS->Scroll down to the bottom and you"ll see two boxes of Additional CSS Definitions. Put that code in the second box. Simple !

Abid 10-11-2008 08:30 AM

Oh...I found the css page..Cheers

My postbit_legacy template has more added things to it:

Quote:

&nbsp;<br />
<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>
$template_hook[postbit_userinfo_right_after_posts]
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>

<if>
<div class="info"> <if condition="$show['reppower']"><div class="info"><span

id="reppower_$post[postid]_$post[userid]"><strong>Reputation:</strong></span>: $post[reppower]</if>
<a href="reputation.php?p=$post[postid]" onclick="return reputation($post[postid])"><img

src="applied/reputation/pos.gif" border="0" alt="Add to $post[username]'s Reputation" /></a>
<a href="reputation.php?p=$post[postid]" onclick="return reputation($post[postid])"><img

src="applied/reputation/neg.gif" border="0" alt="Add to $post[username]'s Reputation" /></a></div><br />
<if condition="!empty($post[mood])">
<div></if>
<!-- START POSTING FREQUENCY MOD -->
<div>Posting Frequency
<table border="0" cellpadding="0" cellspacing="0">
<tr onmouseover="this.title='$post[posts] posts ($post[postsperday] posts per day)'">
<td><img border="0" src="images/polls/bar-l.gif" width="4" height="17"></td>
<td width="100" background="images/polls/bar-bk.gif"><img border="0"

src="images/polls/bar.gif" width="$post[frequency]" height="17"></td>
<td><img border="0" src="images/polls/bar-r.gif" width="4" height="17"></td>
</tr>
</table>
</div>
<!-- END POSTING FREQUENCY MOD -->
Could you please do the code for that please

veenuisthebest 10-11-2008 08:40 AM

See whatever things are displayed in postbit_legacy like Joindate, Posts, Location and so on... notice that they are displayed in <div> tag. So, all you need to do is to make it <div class="postinfo">

For example:-

HTML Code:

<div>$vbphrase[join_date]: $post[joindate]</div>
will become

HTML Code:

<div class="postinfo">$vbphrase[join_date]: $post[joindate]</div>
Thats it.

Abid 10-11-2008 08:47 AM

How do I make the writing in postbit_legacy bold?

veenuisthebest 10-11-2008 08:48 AM

Quote:

Originally Posted by Abid (Post 1642549)
How do I make the writing in postbit_legacy bold?

I didn't get you.

To make someting bold, you use <strong>text</strong>

Is this what you were asking ?

Abid 10-11-2008 08:50 AM

The text to become bold..So the text in postbit_legacy becomes bold

veenuisthebest 10-11-2008 08:51 AM

HTML Code:

<strong>text</strong>
lol and thanks for contributing in my 1000 posts :D


All times are GMT. The time now is 01:46 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,785KB
  • 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
  • (2)bbcode_code_printable
  • (7)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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