1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there a maximum number of characters allowed for the style property >> Property Name?

Discussion in 'XenForo Development Discussions' started by Miko, Jan 17, 2011.

  1. Miko

    Miko Well-Known Member

    Is there a maximum number of characters allowed for the style property >> Property Name?

    I was working a few new style properties and noticed that a couple with really long names did not work, I didn't get any errors just didn't work.

    Shortening the names fixed the issue.

    I'm wondering what is the maximum number of characters allowed for the style property >> Property Name?


    Thank you,
    Miko
     
  2. ragtek

    ragtek Guest

    i think 50 chars (tabledefinition:
    property_name
    varchar(50) )​

    datawriter
    PHP:
    'property_name' => array('type' => self::TYPE_STRING,
                        
    'required' => true,
                        
    'maxLength' => 50,
     
  3. Miko

    Miko Well-Known Member

    thank you :)
     
  4. Shadab

    Shadab Well-Known Member

    Looks like the property name is restricted to 50 characters, at the DataWriter level.

    - property name: 50
    - property title: 50 .. 100
    - property description: 250 .. 255

    Edit: Doh!
    Edit2: See post #8.
     
  5. ragtek

    ragtek Guest

    posted in the wrong thread?
     
  6. Mikey

    Mikey Well-Known Member

    yep, comes from too many tabs being open, i since deleted the post (to stop off topicness), my bad, sorry Miko!
     
  7. Kier

    Kier XenForo Developer Staff Member

    Fixed in the DataWriter. Limited to 100 chars now.
     
  8. ragtek

    ragtek Guest

    hm, i'm having other values (beta6)^^

    prop_name: 50 (table: 50)
    title: 100 (table 100)
    desc: 250 (table 255)

    You'll need to change it in the db schema to:p *scnr*
     
  9. Kier

    Kier XenForo Developer Staff Member

    Yep, did that too.
     

Share This Page