Allow Code Wraps in Comment?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Flash04jv
    Senior Member
    • Aug 2015
    • 474
    • 5.1.x

    Allow Code Wraps in Comment?

    On VB forum, I can wrap code to share. On our forum the Code wraps do not function, like they are broke. How do I allow our comments to do this. As shown below:

    Code:
    /*Fixes missing icons in advanced editor*/
    /*Added on 10/8/2018 - Remove after next update*/
    .cke_hidpi .cke_inner .cke_toolbox .cke_button_icon {
        background-image: url("js/ckeditor/images/default/icons_hidpi.png") !important;
    }
    .cke_hidpi .cke_inner .cke_toolbox .cke_button__video_icon {
        background-image: url("js/ckeditor/images/default/vbulletin/video.png") !important;
    }
    .cke_hidpi .cke_inner .cke_toolbox .cke_button__quote_icon {
        background-image: url("js/ckeditor/images/default/vbulletin/quote.png") !important;
    }
    .cke_hidpi .cke_inner .cke_toolbox .cke_button__code_icon {
        background-image: url("js/ckeditor/images/default/vbulletin/code.png") !important;
    }
    .cke_hidpi .cke_inner .cke_toolbox .cke_button__html_icon {
        background-image: url("js/ckeditor/images/default/vbulletin/html.png") !important;
    }
    .cke_hidpi .cke_inner .cke_toolbox .cke_button__php_icon {
        background-image: url("js/ckeditor/images/default/vbulletin/php.png") !important;
    }
    .cke_hidpi .cke_inner .cke_toolbox .cke_button__previewbreak_icon {
        background-image: url("js/ckeditor/images/default/vbulletin/break.png") !important;
    }
    On our forum, its looks like this (Broken the Code intentionally as an example of what I see):

    [CODE]/*Fixes missing icons in advanced editor*/
    /*Added on 10/8/2018 - Remove after next update*/
    .cke_hidpi .cke_inner .cke_toolbox .cke_button_icon {
    background-image: url("js/ckeditor/images/default/icons_hidpi.png") !important;
    }
    .cke_hidpi .cke_inner .cke_toolbox .cke_button__video_icon {
    background-image: url("js/ckeditor/images/default/vbulletin/video.png") !important;
    }
    .cke_hidpi .cke_inner .cke_toolbox .cke_button__quote_icon {
    background-image: url("js/ckeditor/images/default/vbulletin/quote.png") !important;
    }
    .cke_hidpi .cke_inner .cke_toolbox .cke_button__code_icon {
    background-image: url("js/ckeditor/images/default/vbulletin/code.png") !important;
    }
    .cke_hidpi .cke_inner .cke_toolbox .cke_button__html_icon {
    background-image: url("js/ckeditor/images/default/vbulletin/html.png") !important;
    }
    .cke_hidpi .cke_inner .cke_toolbox .cke_button__php_icon {
    background-image: url("js/ckeditor/images/default/vbulletin/php.png") !important;
    }
    .cke_hidpi .cke_inner .cke_toolbox .cke_button__previewbreak_icon {
    background-image: url("js/ckeditor/images/default/vbulletin/break.png") !important;
    }[/COE]
  • Flash04jv
    Senior Member
    • Aug 2015
    • 474
    • 5.1.x

    #2
    Looked around for a while yesterday, maybe CSS or HTML isn't allowed in the comment field. Found a few settings but changing them didn't let the Code wrap work.

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 73979

      #3
      Settings -> Options -> BBCode Settings. Is the Code BBCode enabled?
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment


      • Wayne Luke
        Wayne Luke commented
        Editing a comment
        Code:
        /*Fixes missing icons in advanced editor*/
        /*Added on 10/8/2018 - Remove after next update*/
        .cke_hidpi .cke_inner .cke_toolbox .cke_button_icon {
        background-image: url("js/ckeditor/images/default/icons_hidpi.png") !important;
        }
        .cke_hidpi .cke_inner .cke_toolbox .cke_button__video_icon {
        background-image: url("js/ckeditor/images/default/vbulletin/video.png") !important;
        }
        .cke_hidpi .cke_inner .cke_toolbox .cke_button__quote_icon {
        background-image: url("js/ckeditor/images/default/vbulletin/quote.png") !important;
        }
        .cke_hidpi .cke_inner .cke_toolbox .cke_button__code_icon {
        background-image: url("js/ckeditor/images/default/vbulletin/code.png") !important;
        }
        .cke_hidpi .cke_inner .cke_toolbox .cke_button__html_icon {
        background-image: url("js/ckeditor/images/default/vbulletin/html.png") !important;
        }
        .cke_hidpi .cke_inner .cke_toolbox .cke_button__php_icon {
        background-image: url("js/ckeditor/images/default/vbulletin/php.png") !important;
        }
        .cke_hidpi .cke_inner .cke_toolbox .cke_button__previewbreak_icon {
        background-image: url("js/ckeditor/images/default/vbulletin/break.png") !important;
        }
    • Flash04jv
      Senior Member
      • Aug 2015
      • 474
      • 5.1.x

      #4
      Code BB Code was not enabled. Enabled it and now the Code wrap works.

      Is it ok to leave enabled? Or is there a reason it wasn't enabled?

      Thanks!!

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 73979

        #5
        It is enabled by default. You must have disabled it for some reason in the past.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment


        • Flash04jv
          Flash04jv commented
          Editing a comment
          Sounds good!
      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...