HTML Help

Questions about applications and software
Forum rules
Before you post please read this

HTML Help

Postby lavs23 on Mon Jul 02, 2007 9:57 am

So I know very little about HTML or any web designing, I create a webpage way back with just HTML but anyways that's besides the point. I was wanting to edit the default home page that comes with Linux Mint and add some search bars below the flash animation. Such as an Ubuntu Forums search bar, Linux Mint Forums search bar, etc. Does anybody know the code for this? I've never done this and it's going to be my little project for the week. Any help would be much appreciated.
lavs23
Level 1
Level 1
 
Posts: 30
Joined: Tue Mar 13, 2007 12:00 pm

Linux Mint is funded by ads and donations.
 

Postby gcc on Mon Jul 02, 2007 1:42 pm

never done it myself, but I think the first thing I would do is look at the code for the search bar on the relevant pages. just blatantly stealing the following worked for me:

Code: Select all
         <div id="searchbox">

            <form action="http://ubuntuforums.org/search.php?do=process" method="post">
               <p>
                  <label for="q" accesskey="s"><span class="mnemonic">S</span>earch</label>
                  <input type="text" value="" name="query" id="q" />

                        <input type="hidden" name="s" value="" />
                        <input type="hidden" name="do" value="process" />
                        <input type="hidden" name="forumchoice[]" value="" />
                        <input type="hidden" name="childforums" value="1" />
                        <input type="hidden" name="exactname" value="1" />
                  <button type="submit" name="op"><span>go</span></button>
               </p>
            </form>
         </div>


note the modification of the form action; on their site, they do not of course list out the full url, whereas a reference to it not under the same directory must. A similar copy-paste job should do it for the Mint forums, and of course, prettifying it is up to you.
gcc
Level 1
Level 1
 
Posts: 40
Joined: Thu Jun 14, 2007 9:45 pm


Return to Software & Applications

Who is online

Users browsing this forum: benjie1, Bing [Bot] and 25 guests