Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


how to add another detail and remove birthday

ChanuxChanux Admin of Geek.lk ✭✭
edited April 2012 in Questions
This discussion is related to the MyProfile addon.

how to add another detail and remove birthday ?

Answers

  • x00x00 MVP
    edited April 2012

    so I would comment out with # like so

    # DoB: 
    #  name: Date of Birth
    #  type: date
    #  validate: Date
    

    in mymeta.yml

    what do you want to add?

    As simple text field would be like so

     FieldName:   
      name: Name of field
      type: text
    

    Note the format is very strict, the indentation the spaces after the colons, etc.

    grep is your friend.

  • ChanuxChanux Admin of Geek.lk ✭✭

    i could remove birthday. no problems

    but i cant add another.. i want to add school and facebook url

  • x00x00 MVP
    edited April 2012

    It depends what you want to do if you just a want a raw url you could do something like

     Facebook:
      name: Facebook
      type: text
      validate: WebAddress
      params:
       - WebSite
      labeldefault: "%3$s"
    

    You could make sure it is a facebook url

     Facebook:
      name: Facebook
      type: text
      validateregex: "http://(www\.)?facebook\.com/.*"
      params:
       - WebSite
      labeldefault: "%3$s"
      hint: http://facebook.com/#!/profile.php?id=123456789
    

    grep is your friend.

Sign In or Register to comment.