• 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

Sunka

Well-known member
#1
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?


 

Optic

Well-known member
#3
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? :)
 

Brogan

XenForo moderator
Staff member
#4
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.png
 

cclaerhout

Well-known member
#5
@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.
 

Sunka

Well-known member
#6
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