Announcement

Collapse
No announcement yet.

newthread textarea "undefined" with user fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • newthread textarea "undefined" with user fields

    I EDITTED THIS THREAD TO INCLUDE MORE SOURCE LIKE VB_EDITOR_001

    This used to work before upgrading to 4.2.5

    newthread template where I strip out my user fields like price status.

    Issues is textarea value is "undefined" as stored in the posts table.

    $(document).ready(function(e){
    $('#vB_Editor_001_textarea').attr('name','');
    $('.multiselect').multiselect();

    textareavalue = $('#{vb:raw editorid}_textarea').val();
    pricevalue = $('#price').val();
    pricevalue = pricevalue.substr(0,12);
    pricevalue = "[qprice]" + pricevalue + "[/qprice]";
    statusvalue = $('#status').val();
    statusvalue = "[qstatus]" + statusvalue + "[/qstatus]";

    Then put together like this for posting
    hiddentextboxvalue = $('#HiddenTextBox').val();
    $('#HiddenTextBox').val(textareavalue +"\n"+ pricevalue +"\n"+ statusvalue+ "\n[qsale]" + filter_value+"[/qsale]");
    document.forms['vbform'].submit()
    Last edited by ashy; Fri 27th Sep '19, 4:24am.

  • #2
    What does your diagnostic tools tell you when trying to use this modification in vBulletin 4.2.5?
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #3
      Im honestly not sure what diagnostics to run or check for this issue

      Comment


      • #4
        You would have to write diagnostic code in your PHP and Javascript handling of this custom field to make sure the value continues through to the database. What you have posted isn't the entire modification and we can't provide support for third-party modifications. If you didn't write the modification, you should contact the developer of it.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud customization and demonstration site.
        vBulletin 5 Documentation - Updated every Friday. Report issues here.
        vBulletin 5 API - Full / Mobile
        I am not currently available for vB Messenger Chats.

        Comment


        • #5
          Fair point, programmer who did that left 8 years ago. Has worked fine. I was hoping it maybe something obvious from 4.2.5 as was ok till then, but then that was a major upgrade from 4.0.? The database just has "undefined" but ok with the bbcodes of qprice / qstatus etc.. Thanks Wayne.

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X