• Rejestracja
vBHELP.pl - polskie wsparcie vBulletin
  1. #1
    FanP jest nieaktywny Użytkownik
    Dołączył
    Nov 2010
    Posty
    34
    Przydatne posty
    2

    Domyślnie Znak graficzny przy nicku?

    Witam

    Podczas rejestracji moi użytkownicy muszą wybrać w jednym z pól płeć. Chciałbym aby ten wybór (mężczyzna lub kobieta) był widoczny w postaci graficznej przy nicku w każdym poście, który napisze dany użytkownik. Przykład w załączniku. Ktoś wie może jak to zrobić ?
    Załączone obrazki Załączone obrazki



  2. #2
    Awatar Bryanek
    Bryanek jest nieaktywny Stały bywalec
    Dołączył
    Apr 2011
    Posty
    144
    Przydatne posty
    16

    Domyślnie

    Przy nicku to nie wiem jak zrobić, ale wiem jak pod nickiem

    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'.

    Step1: Create a New Profile Field:

    Go to AdminCP -> User Profile Fields -> Add New User Profile Field ->
    Profile Field Type: Single-Selection Menu, then click continue
    Add New User Profile field: Single-Selection Menu

    Title: Gender:
    Description: Please Select your Gender
    Profile Field Category: Uncatagorized
    Options: Male , Female (Add on seperate lines)
    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? It is User Registration or something like this.
    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:

    go to AdminCP -> Languages & Phrases -> Phrase Manager -> Add New Phrase (Center button on the bottom):

    Phrase Type: GLOBAL
    Product: vBulletin
    Varname: gender
    Text: Gender


    Step3; Postbit or Postbit_Legacy Template (As you wish).
    Go to AdminCP -> Styles and Templates -> Style Manager -> (style that you use ) -> << >> -> Postbit Templates -> Postbit (or Postbit _legacy, depending on which one YOU use)

    Find:

    Kod:
    <vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
    Below it add:

    Kod:
    <!-- 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 -->
    Replace the two red ‘X’s with the field number in Step One (1).
    Replace the Red Text with YOUR forum address.

    Step4: Upload the Images:
    Upload the ‘Male.gif’ and the ‘Female.gif’ to the ‘http://www.yourforumadress.com/forum/images/misc’ directory of your forum root.
    Save. You are all set.

    Jak to wygląda:

    162a54i.png


Chmurka.pl

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67