XF 1.4 Resize "create new thread" window

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?


screenshot-03-00-36_zps8d236cab.png
 
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.

upload_2015-1-13_16-24-29.webp
 
@Sunka, @Optic

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

PHP:
<?php
class YourClassDirectory_CustomAddon_ClassName
{
   public static function editorSetup(XenForo_View $view, $formCtrlName, &$message, array &$editorOptions, &$showWysiwyg)
   {
     if (!$showWysiwyg || $view->getTemplateName() != 'thread_create')
     {
       return false;
     }

     $editorOptions['height'] = "500px";
   }
}

To create a new event on this listener, go to your board admin panel:
http://yourboard/admin.php?code-event-listeners
=> Create..., etc.


If you only want to target the max-height, see this.
 
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.
Thanks
 
Top Bottom