chrometweaks.org

Can I use iPage.com to create a website and purchase a domain name and such?

Click Here To View All Answers...


Quick question... Can I use iPage.com to create a website and purchase a domain name and such? Hoping for any response. Another question... Hi Guys,.

How do I add a drop down menu to the header that displays the categorys?.

I have move the search box into the header and I would like to add a drop down menu next to it..

Any ideas?.

Thanx.

Mark..

Comments (46)

Yes sir! however you might wanna make sure and wait for another member here to confirm it as I am not very confident. Better yet, why don't you give a call to the iPage guys because they can help better...

Comment #1

Hi Burt,.

I found a contrib and grabbed this bit of code from it.

$categories_array = tep_get_categories($cat_choose);.

 for ($i=0; $i<sizeof($categories_array); $i++) {.

/*    tep_get_parent_categories($parent_categories, $categories_array[$i]['id']);.

  for ($j = sizeof($parent_categories) - 1; $j>=0; $j) {.

   $path = ($path == "") ? $parent_categories[$j] : ($path"_" .. $parent_categories[$j]);.

  }.

  $categories_array[$i]['id'] = ($path == "") ? $categories_array[$i]['id'] : ($path"_"$categories_array[$i]['id']);.

*/  }.

 $info_box_contents[] = array('form' => '<form action="'tep_href_link(FILENAME_DEFAULT)'" method="get">',.

                              'align' => 'left',.

                              'text'  => tep_draw_pull_down_menu('cPath', $categories_array,'','onChange="this.form.submit();" size="'((sizeof($categories_array) < MAX_MANUFACTURERS_LIST) ? sizeof($categories_array) : MAX_MANUFACTURERS_LIST)'" style="width:150"').

                             );.

 new infoBox($info_box_contents);.

I inserted it into my header and this is what it looks like now, I need to have it next to the search box (see screenshot below)..

<?php.

/*.

$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2003 osCommerce.

Released under the GNU General Public License.

*/.

Define('DIR_WS_TEMPLATE_IMAGES', 'templates/Original/images/');.

// WebMakers.com Added: Down for Maintenance.

// Hide header if not to show.

//BORDER AROUND CART.

Print ('<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">.

<tr>.

<td bgcolor="#FFFFFF">');.

?>.

<table width="100%" cellpadding="10" cellspacing="0" border="0" BGCOLOR="#ffffff">.

<tr><td>.

<table border="0" width="100%"><tr><td>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr class="header">.

<td valign="middle"><?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'tep_image(DIR_WS_TEMPLATE_IMAGES'logo.gif', 'Store Logo')'</a>'; ?></td>.

<td align="center" valign="bottom">.

<img src="network_selection.gif" width="321" height="33" border="0">.

<td align="right" valign="bottom"><?php echo '<a href="'tep_href_link(FILENAME_ACCOUNT, '', 'SSL')'">'tep_image(DIR_WS_IMAGES'header_account.gif', HEADER_TITLE_MY_ACCOUNT)'</a>&nbsp;&nbsp;<a href="'tep_href_link(FILENAME_SHOPPING_CART)'">'tep_image(DIR_WS_IMAGES'header_cart.gif', HEADER_TITLE_CART_CONTENTS)'</a>&nbsp;&nbsp;<a href="'tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')'">'tep_image(DIR_WS_IMAGES'header_checkout.gif', HEADER_TITLE_CHECKOUT)'</a>'; ?>&nbsp;&nbsp;</td>.

<td align="center" valign="bottom">.

<img src="freedelivery.gif" width="217" height="33" border="0">.

</td>.

<php? //BOF added category and mennu tabs ?>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr><td>.

<?php include(DIR_WS_INCLUDES'cat_menu.php'); ?>.

  </td>.

 </tr>.

<php? // EOF: Added: Category and menu tabs ?>.

<tr class="headerNavigation">.

<td align="center" height="20"><font face=Verdana, size=1 arial,="undefined" helvetica,="undefined" sans-serif="undefined" color="#ffffff"><b>UK Sales &amp; Customer Service: Monday-Friday 9am-5.30pm </b></font> </td>.

</td>.

</tr>.

<tr bgcolor="#FFFFCC" align="center">.

<td colspan="2" height="20"><font face=Verdana, size=1 arial,="undefined" helvetica,="undefined" sans-serif="undefined"><font color="#000066">.

</font>.

<?php.

$hide = tep_hide_session_id();.

Echo '<form name="quick_find" method="get" action="'tep_href_link (FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false)'">';.

Echo $hide'<input type="text" name="keywords" onFocus=this.value="" size="20" maxlength="30" value="'BOX_SEARCH_TEXT'">&nbsp;''<input type="submit" value="Go"><br><a href="'tep_href_link(FILENAME_ADVANCED_SEARCH)'">'BOX_SEARCH_ADVANCED_SEARCHtep_draw_hidden_field('search_in_description', '1')'</a>';.

Echo '</form>';.

$categories_array = tep_get_categories($cat_choose);.

 for ($i=0; $i<sizeof($categories_array); $i++) {.

/*    tep_get_parent_categories($parent_categories, $categories_array[$i]['id']);.

  for ($j = sizeof($parent_categories) - 1; $j>=0; $j) {.

   $path = ($path == "") ? $parent_categories[$j] : ($path"_" .. $parent_categories[$j]);.

  }.

  $categories_array[$i]['id'] = ($path == "") ? $categories_array[$i]['id'] : ($path"_"$categories_array[$i]['id']);.

*/  }.

 $info_box_contents[] = array('form' => '<form action="'tep_href_link(FILENAME_DEFAULT)'" method="get">',.

                              'align' => 'left',.

                              'text'  => tep_draw_pull_down_menu('cPath', $categories_array,'','onChange="this.form.submit();" size="'((sizeof($categories_array) < MAX_MANUFACTURERS_LIST) ? sizeof($categories_array) : MAX_MANUFACTURERS_LIST)'" style="width:150"').

                             );.

 new infoBox($info_box_contents);.

?>.

</td>.

</tr>.

</table></td></tr></table>.

Any ideas how to change??.

Thanx.

Mark..

Comment #2

Place the code inside it's own td tags.

As for the free delivery this would require re structure of the table and would result in a return to almost what you had originally.

This post has been edited by.

241.

: 08 March 2004, 16:41..

Comment #3

Hi,.

I have inserted the <td> tags. What do I need to change to remove the info box that it is in and place it to the left of the search box..

Thanx.

Mark..

Comment #4

You also need to change the code that you have which has been lifted from a box..

Look at the code for the search it should give you an idea you are to remove the references to infobox array and recode..

Comment #5

Hi,.

This is the code,.

$categories_array = tep_get_categories($cat_choose);.

 for ($i=0; $i<sizeof($categories_array); $i++) {.

/*    tep_get_parent_categories($parent_categories, $categories_array[$i]['id']);.

  for ($j = sizeof($parent_categories) - 1; $j>=0; $j) {.

   $path = ($path == "") ? $parent_categories[$j] : ($path"_" .. $parent_categories[$j]);.

  }.

  $categories_array[$i]['id'] = ($path == "") ? $categories_array[$i]['id'] : ($path"_"$categories_array[$i]['id']);.

*/  }.

 $info_box_contents[] = array('form' => '<form action="'tep_href_link(FILENAME_DEFAULT)'" method="get">',.

                              'align' => 'left',.

                              'text'  => tep_draw_pull_down_menu('cPath', $categories_array,'','onChange="this.form.submit();" size="'((sizeof($categories_array) < MAX_MANUFACTURERS_LIST) ? sizeof($categories_array) : MAX_MANUFACTURERS_LIST)'" style="width:150"').

                             );.

 new infoBox($info_box_contents);.

I presume I have to change the array to a <php? <?php. I dont know which parts can be excluded..

Thanx.

Mark..

Comment #6

Hi.

Can I just ask a sideline questionher, how do I get rid of the space that the "welcome" creates, I want to place a table ofinfo whee your "unlicensed evaluation" words are but my table is way down the page..

Any hints grately appreciated.

Tim..

Comment #7

Hi Guys,.

How do I add a drop down menu to the header that displays the categorys?.

I have move the search box into the header and I would like to add a drop down menu next to it..

Any ideas?.

Thanx.

Mark..

Comment #8

I believe that there is a contribution which does exactly this. The other option is to grab the relevant code from.

Admin/categories.php.

And replicate on the catalog side in the file header.php wherever you want it. You will also need to port over some functions but this is easy enough...

Comment #9


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