How to create Fieldset around Profile in VBB theme ?

March 1st, 2009 Script Posted in Ebooks - Tips, How to, VBB themes No Comments » 51 views

To create a line box around profile and rep power in showthreads page like image here, you need to follow the instruction.

AdminCp -> vBulletin Options -> Style & Language Settings -> Use Legacy (Vertical) Postbit Template -> [set to] NO -> Click Save

Next, you will need to edit one template

AdminCp -> Styles & Templates -> Style Manager -> Edit Template -> «Expand All Template Groups» -> postbit.

Profile Fieldset:

Find code:

<td valign=”top” nowrap=”nowrap”>

<div class=”smallfont”>
<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>

Change this code:

<td valign=”top” nowrap=”nowrap” width=”175″>

Add Fieldset code as seen here:

<td valign=”top” nowrap=”nowrap” width=”175″>
<fieldset><legend><b>Profile:</b></legend>
<div class=”smallfont”>
<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>
</fieldset>

Next find & copy by highlighting the test and using Ctrl+C to copy:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>

Do not delete this use <!– comment out –>

<!– <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div> –>

Another option is to use <span> tags

<span style=”display:none”>[color=blue]<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div></span>

Place this in where you just added Fieldset Add Icon Code to before Close Tag Fieldset:

<td valign=”top” nowrap=”nowrap” width=”175″>
<fieldset><legend><b>Profile:</b></legend>
<div class=”smallfont”>
<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>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
</fieldset>

Rep Power Fieldset:

Find code:

<if condition=”$show['reputation']“><if condition=”$show['reppower']“>$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>

Add the Following Code in Green:

<td valign=”top” nowrap=”nowrap” width=”175″>
<fieldset><legend><b>Reputation:</b></legend>
<div class=”smallfont”>
<if condition=”$show['reputation']“><if condition=”$show['reppower']“>$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
</fieldset>
</div>
</td>
<!– <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div> –>
</div>

</td>
</tr>
</table>
<!– / user info –>

Change Reputation between <legend></legend> tiltle to any word example: Karma
Save in Template History? : YES
Comment : fieldset_profile_reppower
Click on Save

To change Rep Power:
AdminCP -> Languages & Phrases -> Search in Phrases -> Search for Text : reppower -> Search in … : Phrase Variable Name Only -> Click the Find button

Click on the Edit button
In the English (US) Translation box type your word for example : Karmic
Click on Save:

<td width=”100%”>&nbsp;</td>
<td valign=”top” nowrap=”nowrap” width=”175″>
<fieldset><legend><b>Profile:</b></legend>
<div class=”smallfont”>
<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>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
</div>
</fieldset>
</td>
<td valign=”top” nowrap=”nowrap” width=”175″>
<fieldset><legend><b>Reputation:</b></legend>
<div class=”smallfont”>
<if condition=”$show['reputation']“><if condition=”$show['reppower']“>$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
</div>
</fieldset>
</div>
</td>
<!– <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div> –>
</div>

</td>
</tr>
</table>
<!– / user info –>

Basic Fieldset and Legend

AddThis Social Bookmark Button