Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick question about using google's AdSense on my page above my contact links


-Spazmatic-

Recommended Posts

Posted
What file would I edit to put the search bar under the bar that tells me how many visitors I had, but above the links that are under it?

Thanks.

 

Anyone know?

Posted
What file would I edit to put the search bar under the bar that tells me how many visitors I had, but above the links that are under it?

Thanks.

 

To answer your question if I understand correctly, you want to place the search box below the footer text where it shows how many visitors, etc?

 

You would have to do some work to your /catalog/includes/boxes/search.php otherwise you will end up with a floating box below your footer.

 

To place it into your footer, you would basically just edit your /includes/footer.php file.

 

However might I suggest you just hardcode the equal search code into the footer instead of taking code from the original one. This is the easiest method without recoding the search box.

 

See sample below of how I typically do it:

http://www.firstaidmonster.com/

 

Notice I did it as a layer in the header. The code was pretty straight forward if you only wanted something basic like that:

 

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> 
  <td width="50%" align="right"><form action="advanced_search_result.php" method="get" name="quick_find">
	  <table width="200" border="0" cellpadding="0" cellspacing="0">
		<tr align="left" valign="middle">
		  <td width="65" align="right" valign="middle" class="main">SEARCH PRODUCTS: </td> 
		  <td width="131" align="left"> 
			<input name="keywords" type="text" id="keywords4" size="10" maxlength="100">
			<input type="hidden" name="search_in_description" value="1">
<input type="image" src="includes/languages/english/images/buttons/button_quick_find.gif" border="0" alt="Quick Find" title=" Quick Find ">
		  </td>
		  <td width="4" valign="middle"> </td>
		</tr>
	  </table>
	</form></td>
</tr>
 </table>

 

There are tons of cool ways you can do it, but the code above works pretty well plus has the advantage of a hidden field which unlike the default search box, will check the product description field as well as the product name.

Sincerely,

Bruce

 

19 contributions submitted

Posted

I think I need to rephrase what I said,

 

for some reason I put search bar, I appologize for that. I meant to say google's ad bar, basically it's a bar that can be a variety of sizes (I think I'm going to go with 468x60). I want to put it UNDER the counter, but ABOVE the "shipping and returns, contact us, etc"

 

here's my page:

 

www.trophyshoponline.com

 

You can see where I'm talking about there.

 

Thanks guys.

Posted

I believe its in your footer.php file you just drop the code in there (after <td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>) somewhere and make sure your adding the info inside the table or it will align incorrectly.

 

Or you could use a banner and use your google code in the html in the banner portion of your admin (generate code for the graphic banner).

 

I was able to get this to work on my husbands site in both manners. I hope thats the info you were looking for.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...