osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Header Search in Oscmax Mainpage

This is a discussion on Header Search in Oscmax Mainpage within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; OSCMAX v1.7 Has anyone successfully integrated a search in the header of the mainpage.tpl file. I have tried everything I ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-09-2005, 10:20 PM
New Member
 
Join Date: Oct 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sabre2000
Default Header Search in Oscmax Mainpage

OSCMAX v1.7
Has anyone successfully integrated a search in the header of the mainpage.tpl file. I have tried everything I can and it just won't work. It duplicates the command button for example if you try and sign up and click continue it takes you to advanced search.

this is as close as I have gotten.
Code:
<?php

$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
'align' => 'left',
'text' => tep_draw_input_field('keywords', 'Quick Search', ' onFocus="emptyQuicksearch()" size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

new infoBox($info_box_contents);
?>
Problem with this is though it leaves the word "Array" at the top of the box and I have no idea where its coming from.

thanks,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 03-10-2005, 04:45 AM
Active Member
 
Join Date: May 2004
Location: worcester ma
Posts: 162
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
fridgemags
Default

Have you tried just taking the include directive out of the column_left.php file and including that in the header?

I did this a while ago and believe this was how I did it.

Hope this helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-10-2005, 08:20 AM
New Member
 
Join Date: Oct 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sabre2000
Default

Ok, I tried that I thought I did that before and got something too. What I'm getting is a 1 above the box instead of the word "Array". Here is the code from the search.php file. I'm not sure where that 1 is comming from at all. very odd.

Code:
<!-- search //-->
<?php
  $boxHeading = BOX_HEADING_SEARCH;
  $corner_left = 'square';
  $corner_right = 'square';
  $boxContent_attributes = ' align="center"';
  $box_base_name = 'search'; // for easy unique box template setup (added BTSv1.2)

  $box_id = $box_base_name . 'Box';  // for CSS styling paulm (editted BTSv1.2)
  $boxContent = tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
  $boxContent .= tep_draw_input_field('keywords', '', 'size="25" maxlength="30" ') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH);
  $boxContent .= '</form>';
// bof BTSv1.2
  if(file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php')) {
  // if exists, load unique box template for this box from templates/boxes/
      require(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php');
  }
  else {
  // load default box template: templates/boxes/box.tpl.php
      require(DIR_WS_BOX_TEMPLATES . TEMPLATENAME_BOX);
  }
// eof BTSv1.2
  $boxContent_attributes = '';
?>
<!-- search_eof //-->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Lay-out mainpage header and products frie osCMax v2 Customization/Mods 1 11-06-2006 12:00 PM
Remove System "osCMax v2.0" from part of search r torweb osCMax v2 Customization/Mods 2 07-24-2006 01:59 PM
Howto include the search form in the header serBelenguer osCommerce 2.2 Modification Help 5 10-05-2004 05:36 AM
Move search box to header eviternity osCMax v1.7 Discussion 2 04-15-2004 07:05 PM
Full text search in advanced search Anonymous osCMax v1.7 Discussion 0 04-15-2004 03:00 PM


All times are GMT -8. The time now is 03:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax