Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search without the box?


barakas

Recommended Posts

Posted

I'm sure theres a really simple solution to this, but I can't seem to find it.

 

the 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' => 'center',

'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

 

new infoBox($info_box_contents);

?>

 

I try to remove the "info_box" components but it always just stops the whole thing from loading.

 

Is there any part of this code where I can just have the search bar without the black containing box or will i have to use another piece of code

Posted

you can just change the new infobox to plain infobox and go to catalog/includes/classes/boxes and create a new plain box class so it LOOKS like its not in a box

 

go to the knowledge base to learn how to use create a plain box class

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Archived

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

×
×
  • Create New...