Copy link to clipboard
Copied
I am completely new to dreamweaver, very beginner. I am working on my college website and our search bar has been broken for about 2 years now. Can someone help me! I'm not looking to change the site in any way just want to find out where the broken code is. I know nothing about code
Jim,
I wrote a tutorial for adding Google site search to a Bootstrap search form.
Add Google to your Bootstrap Search Bar - http://alt-web.com/
However, you don't need Bootstrap for this to work. Just the school's correct URL and the Google search code.
Post back if you have questions.
Nancy
Copy link to clipboard
Copied
There's likely nothing you can do to fix it yourself, search bars aren't generally beginner-level coding.
Most search bars will take advantage of server side scripting, like PHP, in order to query a database on your server and return results to the browser. Unfortunately, there's nothing within DW that will do that for you by clicking the right buttons or making the right menu selections.
You would need to share the entire code of the page, and any processing scripts in the forum, and (if it uses php) one of the resident php gurus might be able to straighten it out for you.
Copy link to clipboard
Copied
here is my code. this is the search page not the results page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/level1.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="includes/php.css" rel="stylesheet" type="text/css">
<link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css">
<script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
</head>
<body bgcolor="#336699" text="#333333" vlink="#333333" alink="#333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('/images/footer_home-over.gif','/images/footer_search-over.gif','/images/footer_campusdir-over.gif','/images/footer_campusmap-over.gif','/images/footer_sitemap-over.gif','/images/footer_contact-over.gif','/images/main_but_admis-over.gif','/images/main_but_div1-over.gif','/images/main_but_acad-over.gif','/images/main_but_div2-over.gif','/images/main_but_stud-over.gif','/images/main_but_div3-over.gif','/images/main_but_about-over.gif','/images/main_but_div4-over.gif','/images/main_but_offic-over.gif','images/greenbar/itspolicies2.gif','images/greenbar/messagescreen2.gif','images/greenbar/serverstatus2.gif','images/greenbar/smithdirectory2.gif','images/greenbar/smithsoftware2.gif')">
<!-- InstanceBeginEditable name="doctitle" --><title>Search TARA</title><!-- InstanceEndEditable -->
<table width="755" border=0 align="center" cellpadding=0 cellspacing=0 bgcolor="#FFFFFF">
<tbody>
<tr valign="middle">
<td height="30" colspan="5" nowrap><?php include('https://www.smith.edu/includes-nav/c-include-topnavoffice.php'); ?></td>
</tr>
<tr>
<td valign=top nowrap> </td>
<td height="44" colspan="3" align="left" valign=middle nowrap><!-- InstanceBeginEditable name="breadcrumb" -->
<span class="breadcrumb">
<a href="https://www.smith.edu/index.php" class="breadcrumb">Home</a> >
<a href="https://www.smith.edu/offices.php" class="breadcrumb">Offices</a> >
<a href="https://www.smith.edu/its" class="breadcrumb">Information Technology Services</a> >
<a href="https://www.smith.edu/its/tara/" class="breadcrumb">TARA</a> >
Search Tara
</span>
<!-- InstanceEndEditable --></td>
<td align="left" valign="top" nowrap> </td>
</tr>
<tr bgcolor="#8f9045">
<td height="26" colspan="3"></td>
<td height="26" colspan="2" align="left" valign="bottom"><?php include('includes/greenbar.inc'); ?></td>
</tr>
<tr>
<td colspan="2" valign=top nowrap bgcolor="#2360A5"><a href="index.html"><img src="images/leftbanner.gif" alt="Who is Tara?" width="143" height="60" border="0"></a></TD>
<td valign=top nowrap> </td>
<td colspan="2" valign=top nowrap bgcolor="#739ED2"><img src="images/rightbanner580b.gif" width="580" height="60" border="0"></td>
</tr>
<tr>
<td valign=top nowrap bgcolor="#E1EAF5"> </td>
<td valign=top nowrap bgcolor="#E1EAF5"> </td>
<td valign=top nowrap> </TD>
<td width="566" valign=top nowrap><b><a name="top"></a></b></td>
<td align="left" valign="top" nowrap> </td>
</tr>
<tr>
<td width=15 valign=top nowrap bgcolor="#E1EAF5"> </td>
<td width=146 valign=top nowrap bgcolor="#E1EAF5"><?php include('includes/menu_level1.inc'); ?></td>
<td width=13 align="left" valign="top" nowrap> </td>
<td align="left" valign="top"><div id="main-content" class="content">
<!-- this is the body of the content of information on the page
you do not need to specify class "content" for the tags because this whole DIV container is set to class "content"
if a new container is setup within this one you will need to specify class
utilize <p> tags to format the text better
you can use <b> or <strong> to bold text
ensure content you create is relative to the section
-->
<!-- to create a new page just "create a new file" inside the folder you want the page to be in
name the file relative to the topic eg: "Windows 10 Information" = "win_10_info"
best practice is to main topic then the sub topic of the information eg: remote desktop page for mac = mac_remote
once the file is created open the file go to "modify" at the top mouse over "Templates", click "apply template to page"
select level 1 if it is an html file in the main tara directory
select level 2 if it is inside a folder
you may also:
create new page, select Page from Template and select the template you want to use for the new file
be sure to save it after creating it with the naming structure above
-->
<!-- when creating main topic links use a colon : and keep the link text as short as possible then create description of it after
you can also write it out and use "Click Here", however this is not recommended. only use this if there is no other way to allow for a link
in the <a> tag for links use target="_blank" to open a new tab if needed for files/outside pages
--> <!-- InstanceBeginEditable name="content" -->
<p class="content"><span class="style2"><span class="blueheader">SEARCH TARA<br>
<br>
</span></span></p>
<FORM method=GET action=http://www.google.com/u/smithtara>
<TABLE border=0 cellspacing=0 bgcolor=#FFFFFF class="content">
<tr valign=middle>
<td width="8"></td>
<td width="292"><input type=text name=q size=31 maxlength=255 value="">
<INPUT name=sa type=submit class="content" VALUE="Search">
<input type=hidden name=domains value="www.smith.edu/its/tara">
<br>
<font class="content">
<br>
<input type=radio name=sitesearch value="">
Search WWW
<input type=radio name=sitesearch value="www.smith.edu/its/tara" checked>
Search TARA </font><br>
</font> </td>
</tr>
</TABLE>
</FORM>
<p class="content"><br>
<span class="content"><br>
</span></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="content"><a href="webdev.html"><br>
</a></td>
</tr>
</table>
<!-- InstanceEndEditable --> </div></td>
</tr>
<tr>
<td colspan="5" valign="top" class="bluesolidTop"><p class="itsfooter" align="center"><br>
<?php include('includes/itsfooter.inc'); ?>
<span class="itsfooter"> | Last updated <!-- #BeginDate format:Am1 -->June 9, 2016<!-- #EndDate --><br>
<br>
</span></p></td>
</tr>
<tr>
<td colspan="5" valign=top bgcolor="#336699"><?php include('https://www.smith.edu/includes-nav/c-include-bottomnavout.php'); ?></td>
</tr>
</tbody>
</table>
<!-- InstanceBeginEditable name="collapsable" --><!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
Copy link to clipboard
Copied
Jim,
I wrote a tutorial for adding Google site search to a Bootstrap search form.
Add Google to your Bootstrap Search Bar - http://alt-web.com/
However, you don't need Bootstrap for this to work. Just the school's correct URL and the Google search code.
Post back if you have questions.
Nancy
Copy link to clipboard
Copied
Thank you for the excellent tutorial, I have bookmarked it for future reference.