How to Create Fieldset for Postbit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jose Amaral Rego
    Senior Member
    • Feb 2005
    • 11058
    • 1.1.x

    How to Create Fieldset for Postbit

    How to Create Fieldset Around Profile and Rep Power for Postbit

    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:	3699034

    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:
    [COLOR=#000000] [COLOR=blue]<td valign="top" nowrap="nowrap">[/COLOR]
     
        <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>[/COLOR]
    Change:

    Code:
    [COLOR=blue]<td valign="top" nowrap="nowrap"[/COLOR] [COLOR=green]width="175"[/COLOR][COLOR=blue]>[/COLOR]
    Add Fieldset code as seen here:
    Code:
       [COLOR=#000000]<td valign="top" nowrap="nowrap" width="175">[/COLOR]
        [COLOR=green]<fieldset><legend><b>Profile:</b></legend>[/COLOR]
        <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>
         [COLOR=green]</fieldset>[/COLOR]
    Next find & copy by highlighting the test and using Ctrl+C to copy:


    Code:
                            [COLOR=blue]<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>[/COLOR]
    Do not delete this use <!-- comment out -->
    Code:
                          [COLOR=red]<!--[/COLOR]  [COLOR=blue]<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div> [/COLOR][COLOR=red]-->[/COLOR]
    Another option is to use <span> tags
    Code:
                          [COLOR="Red"]<span style="display:none">[/COLOR][COLOR=blue]<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>[COLOR="Red"]</span>[/COLOR]

    Place this in where you just added Fieldset
    Add Icon Code to before Close Tag Fieldset:
    Code:
       [COLOR=#000000]<td valign="top" nowrap="nowrap" width="175">[/COLOR]
        [COLOR=black]<fieldset><legend><b>Profile:</b></legend>[/COLOR]
        <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>
         [COLOR=green]<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>[/COLOR]
         [COLOR=black]</fieldset>[/COLOR]
    Rep Power Fieldset

    Find:
    Code:
                        [COLOR=blue]<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>[/COLOR]
    Add the Following Code in Green:
    Code:
     
                [COLOR=green]<td valign="top" nowrap="nowrap" width="175">
                    <fieldset><legend><b>Reputation:</b></legend>[/COLOR]
                    [COLOR=green]<div class="smallfont">[/COLOR]
                        [COLOR=blue]<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>[/COLOR]
                                    [COLOR=green]</fieldset>[/COLOR]
                                    [COLOR=green]</div>[/COLOR]
                            [COLOR=green]</td>[/COLOR]
                        <!-- <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

    Finish Postbit Code:
    Code:
                <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 -->

    Updated Edits by adding another option instead of using <!-- -->
    Last edited by Jose Amaral Rego; Tue 8 Nov '05, 11:29am. Reason: Updated Edits by adding another option instead of using <!-- -->
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    To show the reputation points you can use: $post[reputation]

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...