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

XF 1.1 Import Polls from vb Issue

Discussion in 'Installation, Upgrade, and Import Support' started by Dakis, Mar 17, 2013.

  1. Dakis

    Dakis Well-Known Member

    I have many polls that their titles include links. So in vbulletin they show like this:

    The is the first choice of the poll

    This is the second choice of the poll

    But after the (test) import I've done, the poll choices get cut off, thus showing something like this:

    [url="http://www.travelstories.gr/%F4%E1%EE%E9%E4%E9%F9%F4%E9%EA%DD%F2-%E9%F3%F4%EF%F1%DF%E5%F2-%E5%

    without the link obviously as it is half of the proper URL.

    Is that because of the poll choices character limit in the database perhaps? Any way I can work around this?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Ah... actually... BB Code isn't parsed in poll options.

    Like if you were to simplify it and create a poll with an option like: [b]This is choice 1[/b] it wouldn't render the BB Code.

    This would require an add-on to run the poll options through the bb code parser.
     
  3. Dakis

    Dakis Well-Known Member

    ARRRRRGHH!! :eek:

    Ok thanks for the reply Chris. One more thing to add to the list then hey :cool:

    Though the problem is not only not parsing the bbcode, but also that not all the characters are present in the poll choice. So I need to solve this first and then make an addon to parse the bbcode.
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    I think this will be a simple template edit...

    The responses are stored in a MEDIUMBLOB type field so that's pretty huge even with a large number of responses serialized...

    So the limit is actually a hard limit in the HTML input.

    In various templates, you will see that the max length is hardcoded, e.g.:

    Code:
    <li class="PollNonJsInput"><input type="text" name="poll[responses][]" class="textCtrl" placeholder="{xen:phrase poll_choice}..." maxlength="100" /></li>
    But, unfortunately there is many places to change this. thread_create template, poll_edit template and possibly others.
     
    Dakis likes this.
  5. Dakis

    Dakis Well-Known Member

    ****. Thanks, I'm noting it down as a problem then.
     

Share This Page