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

XF 1.4 Resize "create new thread" window

Discussion in 'Styling and Customization Questions' started by Sunka, Jan 8, 2015.

  1. Sunka

    Sunka Well-Known Member

    When you create new thread, window where you make your first post is so small. Any chance to resize that window and maybe include in responsive design?

    51463 likes this.
  2. Sunka

    Sunka Well-Known Member

    Any help?
  3. Optic

    Optic Well-Known Member

    I don't think it's possible from within Xenforo, that change would need to be made directly to the editor (Redactor).

    Though I saw a similar question awhile ago.

    @cclaerhout any ideas? :)
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It's related to the .xenForm class, which has a max-width of 800px.

    You can increase that but ensure it doesn't affect other elements and layouts.

    Sunka likes this.
  5. cclaerhout

    cclaerhout Well-Known Member

    @Sunka, @Optic

    You need to use the event listener "editor_setup" to customize the editor height on the template "thread_create":

    class YourClassDirectory_CustomAddon_ClassName
       public static function 
    editorSetup(XenForo_View $view$formCtrlName, &$message, array &$editorOptions, &$showWysiwyg)
         if (!
    $showWysiwyg || $view->getTemplateName() != 'thread_create')

    $editorOptions['height'] = "500px";
    To create a new event on this listener, go to your board admin panel:
    => Create..., etc.

    If you only want to target the max-height, see this.
    Sunka and Optic like this.
  6. Sunka

    Sunka Well-Known Member

    Also, it is too much small (wide).
    I do not know how to use event listener, I was hoping that small change like edit template or change something in CSS will be enough.
    Could someone show complete step by step solution to change wide and height.
    51463 likes this.

Share This Page