Announcement

Collapse
No announcement yet.

How to Create Fieldset Around Profile and Rep Power for Postbit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Create Fieldset Around Profile and Rep Power for Postbit

    vB version 3.5.0 - 3.5.4


    How to Create Fieldset Around Profile and Rep Power for Postbit

    *Update Note Some edits will state v3.5.2 - v3.5.4
    and have option to comment out <!-- -->

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

Name:	postbit.PNG
Views:	1
Size:	10.7 KB
ID:	3699033

    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>
    					<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
    					<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
    				</div>
    				
    			</td>
    Change:

    Code:
    <td valign="top" nowrap="nowrap" width="175">
    Add Fieldset code as seen here:
    Code:
    			<td valign="top" nowrap="nowrap" width="175">
    
    				<div class="smallfont">
    					<fieldset><legend><b>Profile:</b></legend>
    					<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>
    					<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
    					<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
    				</div>
    				
    			</td>
    Next find & copy by highlighting the test and using Ctrl+C to copy:


    Code:
                            <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
    Do not delete this use <!-- comment out -->
    Code:
                          <!--<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>-->
    Or add <span> tags as another option
    Code:
                          <span style="display:none">[COLOR=blue]<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div></span>
    *Edits for vbulletin version v3.5.2 - v3.5.4
    Next find & copy by highlighting the test and using Ctrl+C to copy:


    Code:
                            <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
    Do not delete this use <!-- comment out -->
    Code:
                          <!--<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>-->
    Or add <span> tags as another option
    Code:
                          <span style="display:none">[COLOR=blue]<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></span>

    Next:


    Place this in where you just added Fieldset
    Add Contact Handle Code before Close Tag Fieldset:
    Code:
    			<td valign="top" nowrap="nowrap" width="175">
    				
    				<div class="smallfont">
    					<fieldset><legend><b>Profile:</b></legend>
    					<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>
    					<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
    
    				</div>
    				
    			</td>
    *Edits for vbulletin version v3.5.2 - v3.5.4

    Place this in where you just added Fieldset
    Add Contact Handle Code before Close Tag Fieldset:
    Code:
    			<td valign="top" nowrap="nowrap" width="175">
    				
    				<div class="smallfont">
    					<fieldset><legend><b>Profile:</b></legend>
    					<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] $post[skypeicon]</div>
    					</fieldset>
    					<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
    
    				</div>
    				
    			</td>


    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:
    Code:
    				</div>
    				
    			</td>
    			<td valign="top" nowrap="nowrap" width="175">
    				
    				<div class="smallfont">
    					<fieldset><legend><b>Reputation:</b></legend>
    					<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
    					<fieldset>
    					<!--<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>-->
    
    				</div>
    				
    			</td>

    *Edits for vbulletin version v3.5.2 - v3.5.4

    Add the Following Code in Green:
    Code:
    				</div>
    				
    			</td>
    			<td valign="top" nowrap="nowrap" width="175">
    				
    				<div class="smallfont">
    					<fieldset><legend><b>Reputation:</b></legend>
    					<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
    					<fieldset>
    					<!--<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>-->
    
    				</div>
    				
    			</td>

    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

    Finish Postbit Code:
    Code:
    			<td valign="top" nowrap="nowrap" width="175">
    				
    				<div class="smallfont">
    					<fieldset><legend><b>Profile:</b></legend>
    					<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>
    				</div>
    				
    			</td>
    			<td valign="top" nowrap="nowrap" width="175">
    				
    				<div class="smallfont">
    
    					<fieldset><legend><b>Reputation:</b></legend>
    					<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
    					<fieldset>
    					<!--<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>-->
    
    				</div>
    				
    			</td>


    Finish Postbit Code:
    *Edits for vbulletin version v3.5.2 - v3.5.4
    Code:
    			<td valign="top" nowrap="nowrap" width="175">
    				
    				<div class="smallfont">
    					<fieldset><legend><b>Profile:</b></legend>
    					<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] $post[skypeicon]</div>
    					</fieldset>
    				</div>
    				
    			</td>
    			<td valign="top" nowrap="nowrap" width="175">
    				
    				<div class="smallfont">
    
    					<fieldset><legend><b>Reputation:</b></legend>
    					<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
    					<fieldset>
    					<!--<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>-->
    
    				</div>
    				
    			</td>
    Last edited by Jose Amaral Rego; Thu 2nd Mar '06, 10:39pm. Reason: Updated Edits to include $post[skypeicon]
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X