MartinoPio
  • Veteran staff member

      Reputation : 14
      Registered on : 2012-02-25
      Posts : 98
    How to create a search button

    Description


    In this tutorial, I will show you how to add a serash button in your forum.

    Set up


    Copy and paste this code into an forum widget, announcement, template etc..

    Code:
    <div id="search-box"><form method="get" action="/search?search_where=11" id="search"><p class="nomargin"><input type="text" name="search_keywords" id="keywords" maxlength="128" class="inputbox search" value="Search..." onclick="if (this.value == 'Search...') this.value = '';" onblur="if (this.value == '') this.value = 'Search...';" /><input class="button2" type="submit" value="Search" /></p></form></div>

    Customize the tutorial



    The changes to the CSS applied to the search button, are equal to those of active forum.

    Note: To change the word "Search ...", you have to change all the three "Search..."-words in the code to your own word.


    Technical problems


    The tutorial was tested on this forum and with the browser Google Chrome; If you notice that the tutorial doesn't work for a browser or for a version of forum (PhpBB2, PhpBB3, PunBB, Invision) contact an administrator and we will fill this field with your reporting.

    Thanks, the staff





    For every problem or question please, contact us in the section Support for the tutorials, The staff will answer you as soon as it is possible...


    Friendly,
    The team of the Forum of Codes.

    Last update: 04/04/2012

    Finish!
    • Veteran staff member

        Reputation : 4
        Registered on : 2012-02-25
        Posts : 69
      very interesting yes

      Niko
      • Administrator

          Reputation : 319
          Registered on : 2012-02-22
          Posts : 2366
          School of codes courses: coming soon
        Hello,

        Not correcy section: Moved to Admin resource :Good:
        Friendly,



        Niko wants you in the team Guest

        Community manager and Administrator at Forumattivo.com

        magicm00n
        • **


            Reputation : 2
            Registered on : 2012-03-24
            Posts : 20
          Nice this will be helpful [BASIC] How to create a search button 1516208530

          MartinoPio
          • Veteran staff member

              Reputation : 14
              Registered on : 2012-02-25
              Posts : 98
            thank you very much

            Redge
            • Veteran staff member

                Reputation : 8
                Registered on : 2012-03-24
                Posts : 30
              [BASIC] How to create a search button Blue_arrow_up
              Topic is moved in the Staff section to improve it and will be back as soon as possible.
              Thank you for your comprehension.

              See you on The Forum of Codes. Smile


              [BASIC] How to create a search button Blue_arrow_up
              Topic is back in the Admin resource after a small improvement.
              Thank you for your comprehension.

              See you on The Forum of Codes. Smile

              MartinoPio
              • Veteran staff member

                  Reputation : 14
                  Registered on : 2012-02-25
                  Posts : 98
                Ok, thak :D

                hoanglongnhatbao
                • ****


                    Reputation : 3
                    Registered on : 2012-03-22
                    Posts : 54
                  wer