chrometweaks.org

I'm looking for examples of ecommerce websites by iPage.com?

Click Here To View All Answers...


Got a question, hope someone can answer... I'm looking for examples of ecommerce websites by iPage.com? Thanks for any comment. 2nd question I got is.. The search box button is not level with the input box so I want to add.

Align="absmiddle".

To the image tag for submit button..

How and where do I do this?..

Comments (52)

I would like to know the answer too. Anyone here know what is the answer to your question. I'll do some Googling and get back to you if I discover an answer. You should email the people at iPage as they probably can answer it..

Comment #1

Well, if I insert the search box using good ol HTML I can get it to work doing this..

<?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'); ?>.

                     <td align="center"><?php echo ''; ?></td>.

                     <td align="center"><?php echo tep_draw_hidden_field('search_in_description','1') tep_draw_hidden_field('inc_subcat', '1', true)tep_draw_input_field('keywords','','size="10" maxlength="30" style="width: '(BOX_WIDTH-34)'px"') '<br>'tep_hide_session_id(); ?></td>.

                     <td align="center"><?php echo tep_image_submit('go.jpg', BOX_HEADING_SEARCH); ?></td>.

      </table>.

The problem is getting that to work with a standard box, ie getting the above to work with.

         <tr>.

           <td>.

<?php.

 $info_box_contents = array();.

 $info_box_contents[] = array('text' => BOX_HEADING_SEARCH);.

 new CategoriesBoxHeading($info_box_contents, false, false);.

 $info_box_contents = array();.

 $info_box_contents[] = array('form' => tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),.

                              'align' => 'center',.

                              'text' => BOX_SEARCH_TEXT'<br>' tep_draw_hidden_field('search_in_description','1') tep_draw_hidden_field('inc_subcat', '1', true)tep_draw_input_field('keywords','','size="10" maxlength="30" style="width: '(BOX_WIDTH-34)'px"')tep_image_submit('go.jpg', IMAGE_BUTTON_SEARCH)'<br>'tep_hide_session_id()'');.

 new CategoriesBox($info_box_contents);.

?>.

           </td>.

         </tr>.

If anyone can do that, it would be handy...

Comment #2

Heres a quick fix although it doesnt go all the way to fixing the problem it does bring the search button inline with the box..

Add this to your stylesheet..

#search {.

 vertical-align: bottom;.

 text-align: middle;.

 .

}.

Then in catalog/includes/boxes/search.php change line 26 (approx) so that it calls the above CSS style using a Span ID..

'text' => BOX_SEARCH_TEXT'<br><span id="search">' tep_draw_hidden_field('search_in_description','1') tep_draw_hidden_field('inc_subcat', '1', true)tep_draw_input_field('keywords','','size="10" maxlength="30" style="width: '(BOX_WIDTH-34)'px"')tep_image_submit('go.jpg', IMAGE_BUTTON_SEARCH)'</span><br>'tep_hide_session_id()'');..

Comment #3

OK, I got it working completely now.

Add the above style to your stylesheet as before..

Then add this line to search.php instead of the above one..

                              'text' => BOX_SEARCH_TEXT'<br><span id="search">' tep_draw_hidden_field('search_in_description','1') tep_draw_hidden_field('inc_subcat', '1', true)tep_draw_input_field('keywords','','size="10" maxlength="30" style="width: '(BOX_WIDTH-34)'px"')'<span id="search">'tep_image_submit('go.jpg', IMAGE_BUTTON_SEARCH)'</span><br>'tep_hide_session_id()'');.

All I did was move the <span> a bit further along the line, simple!..

Comment #4

I'm impressed, you clever little bunny, you!.

Still, I'm not actually going to change mine now - I rather like it with the larger button underneath...

Comment #5

Includes/languages/english/images/buttons/button_quick_find.gif?.

How about using any simple graphic prog and increase the height of the button with a few px on top?..

Comment #6

That doesn't work but nice try..

Another solution you could use is using plain old HTML, and throwing it inside a table. 1 column for the input, 1 for the search, or however you want...

Comment #7

Unless I don't understand the problem (button_quick_find.gif not being nicely vertically aligned with the searchbox) it certainly works..

Can you pls explain why in your opinion it's not working..

BTW: I myself use a slightly larger textbutton underneath just by inserting a <br> in the string...

Comment #8

The search box button is not level with the input box so I want to add.

Align="absmiddle".

To the image tag for submit button..

How and where do I do this?..

Comment #9

Hate to tell you this but me and a friend, who is a professional programmer, tried for ages and ages to do this, with no joy..

Good luck..

I will be interested to see if you manage it. What I did in the end is take the larger search button and put it centered underneath the input box...

Comment #10


This question was taken from a support group/message board and re-posted here so others can learn from it.