Gender in Postbit or Postbit Legacy - vB 4.0.x Inc GOLD
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 1 của 1
  1. #1
    Thành Viên PandavB's Avatar
    Ngày tham gia
    Feb 2014
    Bài viết
    243
    Thanks
    1
    Thanked 13 Times in 11 Posts

    Icon14 Gender in Postbit or Postbit Legacy - vB 4.0.x Inc GOLD

    What is this?

    This is a little Mod & Template edit that adds a 'Gender' for you Members to choose and displays their 'Gender and a nice little icon' in their Postbit.

    Instructions in the "READ ME" file (pdf) , pictures and SCREENSHOTS are all included in the Attached file ' Gender in Postbit'.

    Complete this in 4 Steps:-


    STEP ONE; Create a New Profile Field:


    AdminCP -> User Profile Fields -> Add New User Profile Field ->
    And do the following:
    Profile Field Type: Single-Selection Menu
    Click Continue


    Add New User Profile field: Single-Selection Menu

    Title: Gender:
    Description: Please Select your Gender
    Profile Field Category: Uncatagorized
    Options: Male , Female
    Set Default: None
    Display Order: (Chosen By You)
    Field Required: Yes, at registration & profile updating (You don’t have to make it compulsory)
    Field Editable By User: Yes
    Private Field: No
    Field Searchable On Members List: Yes
    Show On Members List: Yes
    Optional Output:
    Allow User to input their own value for this option: No
    Max length of allowed user input: 100
    Field Length: 25
    Regular Expression: Leave this EMPTY
    Display Page:
    Which page displays this option? Edit Profile
    SAVE & Note the ‘field’ number as you need to replace the ‘X’ with it in the two positions (2) containing ‘fieldX’



    STEP 2; Add a Phrase:

    AdminCP -> Languages & Phrases -> Phrase Manager -> Add New Phrase (Center button on the bottom):
    Phrase Type: GLOBAL
    Product: vBulletin
    Varname: gender
    Text: Gender
    SAVE


    STEP 3; Postbit or Postbit_Legacy Template (whichever one you use):



    AdminCP -> Styles and Templates -> Style Manager -> (style that you use – Mine is ‘Default Style’) -> << >> -> Postbit
    Templates -> Postbit (or Postbit _legacy, depending on which one YOU use)

    FIND:


    Code:
    PHP Code:
    <vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt>: <dd>{vb:raw post.joindate}</dd></vb:if><br />
    ADD BELOW
    Code:
    PHP Code:
    <!-- Wy Gender in postbit Start -->
    <
    vb:if condition="$post['fieldX']"> <dt>Gender:</dt> <dd><img src="http://WWW.YOUR FORUM
    ADDRESS.COM/images/misc/{vb:raw post.fieldX}.gif" 
    alt="" /></dd></vb:if>
    <!-- 
    Wy Gender in postbit End --> 
    vBulletin 4.1.0 (tested by beiamerica. Please note that I have not tested this myself.

    Code:
    PHP Code:
    <!-- Wy Gender in postbit Start -->
    <
    vb:if condition="$post['fieldX']"><dt>{vb:rawphrase gender}</dt> <dd><img src="{vb:stylevar imgdir_misc}/{vb:raw post.fieldX}.gif" alt="{vb:raw post.fieldX}" /></dd></vb:if>
    <!-- 
    Wy Gender in postbit End --> 
    Replace the TWO Green ‘X’s with the field number in Step One (1).
    Replace the Red Text with YOUR forum address.
    STEP 4; Upload the Images:
    Upload the ‘Male.gif’ and the ‘Female.gif’ to the ‘images/misc’ directory of your forum’s route.
    THAT’S IT !

    To view it in your profile: Edit your Profile and choose your “Gender”.

    Please Click the Install and Rate the Mod – Many Thanks.

    Edited on Wednesday 7th July 2010. Reason: Two more Screenshots added and made the "Single-Selection Menu" Bold.
    Hình Kèm Theo Hình Kèm Theo
    • File Type: jpg 1.jpg (3.7 KB, 2 lần tải)
    • File Type: jpg 2.jpg (2.6 KB, 2 lần tải)
    File Kèm Theo File Kèm Theo
    Khách viếng thăm hãy cùng PandavB xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 

Các Chủ đề tương tự

  1. How to reduce space in postbit
    Bởi PandavB trong diễn đàn vBulletin 4.x Template Modifications
    Trả lời: 0
    Bài viết cuối: 11-02-14, 02:42 PM
  2. Postbit Legacy Poster User Info: (Centered)
    Bởi PandavB trong diễn đàn vBulletin 4.x Template Modifications
    Trả lời: 0
    Bài viết cuối: 11-02-14, 02:37 PM
  3. eTiKeT™ 2011 Posbit_legacy - Postbit
    Bởi PandavB trong diễn đàn vBulletin 4.x Template Modifications
    Trả lời: 0
    Bài viết cuối: 11-02-14, 02:35 PM
  4. GamerCards Block in Profile Sidebar and Postbit
    Bởi PandavB trong diễn đàn vBulletin 4.x Add-ons
    Trả lời: 0
    Bài viết cuối: 11-02-14, 08:58 AM
  5. Google Adsense Postbit Integration
    Bởi KingSky trong diễn đàn vBulletin 3.8 Add-ons
    Trả lời: 0
    Bài viết cuối: 10-02-14, 12:18 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 05:53 AM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.