WebCollab hack #2: textfield increasing size

Atanacius
2009-02-14
2013-01-16
  • Atanacius

    Atanacius - 2009-02-14

    Ok, i'm back, now i hacked (modified is so) WebCollab for adding an another thing.

    It's some increased size for textfield of the forum category.
    This make WebCollab more flexible.
    (by the way, Andrew, if you can change this in a future version, it will be welcome!)
    (
    if you want add credit for me: then you can add me to creditlist,
    i'm french coder, if i post here, it's for help other people before all thing!
    )

    Because... We have not enough place for organising our posts...

    As always, my hack only work on MySQL Type Database.

    ___________________________________________________________
    If it's can be useful for you people, i post here my hack:
    ___________________________________________________________

    -- 1 : Edit file '[path_to_WebCollab]/forum/forum_add.php'.

       * Modify all values which are : 10
                                   by: 37 (or an another number)

       * Modify all values which are : 60
                                   by: 137 (or an aother number)

         NOTE: (make this change in next codeline:

             ---------------------------------------------------------------------------------------------
        $content .=   "<tr><td>".$lang['message']."</td><td><textarea id=\&quot;text\&quot; name=\&quot;text\&quot; rows=\&quot;10\&quot; cols=\&quot;60\&quot;></textarea></td></tr>\n".
         ---------------------------------------------------------------------------------------------

    -- 2 : Edit file '[path_to_WebCollab]/forum/forum_edit.php'.

       * Modify all values which are : 10
                                   by: 37 (or an another number)

       * Modify all values which are : 60
                                   by: 137 (or an aother number)

         NOTE: (make this change in next codeline:

             ---------------------------------------------------------------------------------------------
                        "<tr><td>".$lang['message']."</td><td><textarea id=\&quot;text\&quot; name=\&quot;text\&quot; rows=\&quot;10\&quot; cols=\&quot;60\&quot;>".$row['text']."</textarea></td></tr>\n".
         ---------------------------------------------------------------------------------------------

    -- 3 : Edit file '[path_to_WebCollab]/forum/forum_searchbox.php'.

       * Modify all values which are : 30
                                   by: 110 (or an another number)

         NOTE: (faites ce changement dans la ligne du code suivante):

             ---------------------------------------------------------------------------------------------
                     "<input type=\&quot;text\&quot; id=\&quot;string\&quot; name=\&quot;string\&quot; size=\&quot;30\&quot; />\n".
         ---------------------------------------------------------------------------------------------

    -- If installed already: You can make this change. Because this hack will not change database.

        ([path_to_WebCollab] is THE folder you decompressed WebCollab for using it.)

     
    • Atanacius

      Atanacius - 2009-02-14

      Ok, when i translate my note to English, i omitted some thing:

      Then, just replace:

         NOTE: (make this change in next codeline:
      AND
         NOTE: (faites ce changement dans la ligne du code suivante):

      BY
         NOTE: (make this change in next codeline):

      If you have some questions, do not hesitate to post you question here!
      Thanks for reading me and for using my hacks.

       
    • Andrew Simpson

      Andrew Simpson - 2009-02-18

      Yes, you're quite right.  I first set the screen sizes for those text boxes some 6 or 7 years ago (!!).  Back then monitor screens were smaller (less resolution).

      With bigger monitors, it's time to revisit the text box sizes.  

       
    • Atanacius

      Atanacius - 2009-02-18

      Okay ;)
      You can use my hack in next release of WebCollab if you want.
      It make me happy to help WebCollab to expand his interface !

       
    • luke wang

      luke wang - 2009-02-24

      I think the sizes depends on the screen resolution. My resolution is 1280*1024.

      Besides updating the forum pages, I also set the description textarea and project/task name input as follows.
        project/task/file/mail description textarea: rows=25, cols=88
        project/task/mail name inputbox: size=110

      Add 'size=\&quot;100\&quot;' in file_update.php & file_upload.php
      <input id=\&quot;userfile\&quot; type=\&quot;file\&quot; name=\&quot;userfile[]\&quot; size=\&quot;100\&quot; />

      Below is the list I have updated.
      files/file_update.php          tasks/task_add.php
      files/file_upload.php          tasks/task_edit.php
      forum/forum_add.php            users/user_mail.php
      forum/forum_edit.php

       
    • Andrew Simpson

      Andrew Simpson - 2009-02-24

      Thanks for the comments.  This makes it easier to patch.

       
    • luke wang

      luke wang - 2009-02-24

      Andrew, the updated files have been included in http://www.drivehq.com/web/wangzhijun/webcollab.tar.gz

       

Log in to post a comment.