chrometweaks.org

Is iPage.com marketplace a reputable place to buy something?

Click Here To View All Answers...


My 1st question is: Is iPage.com marketplace a reputable place to buy something? Thanks for any answer or 2. 2nd question I got is.. Hi Guys,.

Will you please glance your eyes over this piece of code from header.php and tell me why it's giving me a parse error..

Its probably something really simple that I have missed but my eyes are going square staring at the code.

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

 <tr class="headerNavigation">.

   <td align="center" class="headerNavigation">&nbsp;&nbsp;<?php echo '<a href="'tep_href_link(FILENAME_INFORMATION)'?info_id=2">'BOX_INFORMATION_SHIPPING'</a>';">/*Enter Header Bar Info Here*/</td>.

   <td align="right" class="headerNavigation"></a> &nbsp;&nbsp;</td>.

 </tr>.

</table>.

Thanx.

Mark..

Comments (100)

Ye, however you might wanna make sure and wait for another member to confirm my answer as I am not very confident. Better yet, why don't you call the iPage guys because they can help better...

Comment #1

Here is a bit of code for you to compare with.

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

<tr class="headerNavigation">.

<td align="center" class="headerNavigation"><?php echo '<a class="headerNavigation" href="'tep_href_link(FILENAME_DEFAULT)'">'HEADER_LINKS_DEFAULT'</a>''&nbsp|&nbsp '"\n"; ?>.

<?php echo '<a class="headerNavigation" href="'tep_href_link(FILENAME_BEAD_SPECIALS)'">'HEADER_LINKS_SPECIALS'</a>''&nbsp|&nbsp '"\n"; ?>.

<?php echo '<a class="headerNavigation" href="'tep_href_link(FILENAME_PRODUCTS_NEW)'">'HEADER_LINKS_WHATS_NEW'</a>''&nbsp|&nbsp '"\n"; ?>.

<?php echo '<a class="headerNavigation" href="'tep_href_link(FILENAME_REVIEWS)'">'HEADER_LINKS_REVIEWS'</a>'"\n"; ?>.

</td>.

</tr>.

</table>.

So your code would be.

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

<tr class="headerNavigation">.

<td align="center" class="headerNavigation">&nbsp;&nbsp;<?php echo '<a href="'tep_href_link(FILENAME_INFORMATION)'">'BOX_INFORMATION_SHIPPING'</a>'"\n"; ?></td>.

<td align="right" class="headerNavigation"> &nbsp;&nbsp;</td>.

</tr>.

</table>.

This post has been edited by.

241.

: 24 February 2004, 13:38..

Comment #2

Hi,.

Right the next problem I have is I have added an extra coloured bar below the header bar and I cant seem to get rid of the white gap to make it look all in one..

Here is what it looks like, the code is below it. I would appreciate any help to close the gap..

<?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.

If (DOWN_FOR_MAINTENANCE_HEADER_OFF =='false') {.

If (SITE_WIDTH!='100%') {.

?>.

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

     <tr><td>.

       <table BORDERCOLORLIGHT="2F4F2F" CELLSPACING="2" CELLPADDING="4" BORDER="0" width="<?php echo SITE_WIDTH;?>" align="center" BGCOLOR="FFFFFF" align="center">.

         <tr><td BORDERCOLOR="FF0000">.

           <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="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>.

 </tr>.

<tr class="headerNavigation">.

 <td align="center" class="headerNavigation">&nbsp;&nbsp;<?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'. BOX_INFORMATION_HOME'</a>'"\n"; ?></td>.

 <td align="right" class="headerNavigation"> &nbsp;&nbsp;</td>.

</tr>.

</table>.

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

         <td height="20"><font face=Verdana, size=1 arial,="undefined" helvetica,="undefined" sans-serif="undefined"><font color="#000066"><?php echo '<a href="'tep_href_link(FILENAME_INFORMATION)'">'BOX_INFORMATION_SHIPPING'</a>'"\n"; ?></a>.

             </font><font face=Verdana, size=1 arial,="undefined" helvetica,="undefined" sans-serif="undefined" color="#000066">: <a href="http://www.myurl.co.uk/mfcart.php?mode=review">View shopping basket</a></font><font color="#000066"> : <a href="http://www.myurl.co.uk/contact-us.htm">Contact.

           us</a> : <a href="http://www.myurl.co.uk/security-and-privacy.htm">Privacy Notice</a></font></font></td>.

       </tr>.

       <tr valign="top">.

         <td height="6">&nbsp; </td>.

       </tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              </td>.

 </tr>.

</table>.

<?php.

}.

?>.

<?php.

}.

?>.

Thanx Again.

Mark..

Comment #3

Move your table tag.

</table>.

The code looks a bit messy, here is an example for you.

?>.

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

<tr class="header">.

   <td valign="middle"><?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'tep_image(DIR_WS_IMAGES'Corinasmall.jpg')'</a>'; ?></td>.

    <td align="right" valign="baseline"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2" align="right" class="cart"><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="cart"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a><?php require(DIR_WS_BOXES'shopping_cart.php'); ?></table>.

   </td>.

 </tr>.

</table>.

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

 <tr class="headerNavigation">.

   <td align="center" class="headerNavigation"><?php echo '<a class="headerNavigation" href="'tep_href_link(FILENAME_DEFAULT)'">'HEADER_LINKS_DEFAULT'</a>''&nbsp|&nbsp '"\n"; ?>.

  <?php echo '<a class="headerNavigation" href="'tep_href_link(FILENAME_BEAD_SPECIALS)'">'HEADER_LINKS_SPECIALS'</a>''&nbsp|&nbsp '"\n"; ?>.

  <?php echo '<a class="headerNavigation" href="'tep_href_link(FILENAME_PRODUCTS_NEW)'">'HEADER_LINKS_WHATS_NEW'</a>''&nbsp|&nbsp '"\n"; ?>.

        <?php echo '<a class="headerNavigation" href="'tep_href_link(FILENAME_REVIEWS)'">'HEADER_LINKS_REVIEWS'</a>'"\n"; ?>.

</td>.

 </tr>.

</table>.

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

 <tr class="footer">.

   <td align="right" class="footer"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="footer"><?php echo HEADER_TITLE_LOGOFF; ?></a> &nbsp;|&nbsp; <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> &nbsp;&nbsp;</td>.

</td>.

 </tr>.

</table>.

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

 <tr class="headerNavigation">.

   <td class="headerNavigation">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>.

 </tr>.

</table>.

<?php.

This gives three lines..

Comment #4

Sorry I will try again try taking out the last to sets of closing tags.

As in your code.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </td>.

</tr>..

Comment #5

Hi,.

I have moved the </table> and that has closed the gap, but now the width of the bar is half length it should be..

Any ideas?.

Thanx.

Mark..

Comment #6

If that has closed the gap then reading between the lines try taking out this.

<td align="right" class="headerNavigation"> &nbsp;&nbsp;</td>.

That should give you full width..

Comment #7

Hi Steve,.

When that line is removed it makes both bars half the width..

Mark..

Comment #8

Ok try this code I am trying to do this blind would be much easier with the complete header.php I notice that there is a mix of upper and lower case for some of the tables.

<?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.

If (DOWN_FOR_MAINTENANCE_HEADER_OFF =='false') {.

If (SITE_WIDTH!='100%') {.

?>.

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

    <tr><td>.

      <table BORDERCOLORLIGHT="2F4F2F" CELLSPACING="2" CELLPADDING="4" BORDER="0" width="<?php echo SITE_WIDTH;?>" align="center" BGCOLOR="FFFFFF" align="center">.

        <tr><td BORDERCOLOR="FF0000">.

          <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="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>.

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

<tr class="headerNavigation">.

<td align="center" class="headerNavigation">&nbsp;&nbsp;<?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'. BOX_INFORMATION_HOME'</a>'"\n"; ?></td>.

<td align="right" class="headerNavigation"> &nbsp;&nbsp;</td>.

</tr>.

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

        <td height="20"><font face=Verdana, size=1 arial,="undefined" helvetica,="undefined" sans-serif="undefined"><font color="#000066"><?php echo '<a href="'tep_href_link(FILENAME_INFORMATION)'">'BOX_INFORMATION_SHIPPING'</a>'"\n"; ?></a>.

            </font><font face=Verdana, size=1 arial,="undefined" helvetica,="undefined" sans-serif="undefined" color="#000066">: <a href="http://www.myurl.co.uk/mfcart.php?mode=review">View shopping basket</a></font><font color="#000066"> : <a href="http://www.myurl.co.uk/contact-us.htm">Contact.

          us</a> : <a href="http://www.myurl.co.uk/security-and-privacy.htm">Privacy Notice</a></font></font></td>.

      </tr>.

      <tr valign="top">.

        <td height="6">&nbsp; </td>.

      </tr> </table>.

</td>.

</tr>.

</table>.

<?php.

}.

?>.

<?php.

}.

?>..

Comment #9

Hi Steve,.

Your getting close mate, it's bout half an inch still.

Mark..

Comment #10

Are you actually using the feature of the webmaker or are you hacking all of that out.

If you are hacking all that out try this.

<?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.

?>.

  <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="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>.

</tr>.

<tr class="headerNavigation">.

<td colspan="2" align="center" class="headerNavigation">&nbsp;&nbsp;<?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'. BOX_INFORMATION_HOME'</a>'"\n"; ?></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"><?php echo '<a href="'tep_href_link(FILENAME_INFORMATION)'">'BOX_INFORMATION_SHIPPING'</a>'"\n"; ?></a>.

            </font><font face=Verdana, size=1 arial,="undefined" helvetica,="undefined" sans-serif="undefined" color="#000066">: <a href="http://www.myurl.co.uk/mfcart.php?mode=review">View shopping basket</a></font><font color="#000066"> : <a href="http://www.myurl.co.uk/contact-us.htm">Contact.

          us</a> : <a href="http://www.myurl.co.uk/security-and-privacy.htm">Privacy Notice</a></font></font></td>.

      </tr>.

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

Comment #11

Thats sorted that job out. Thanx!.

I am hacking it abit!.

Now how easy would it be to add the search box into the bottom bar?.

Thanx Mark..

Comment #12

It is reasonably straight forward, have a go and see..

Comment #13

Ok, I will let you know how I get on...

Comment #14

Hi,.

Its me again!.

<?php echo tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: '(BOX_WIDTH-30)'px"')'&nbsp;'tep_hide_session_id()tep_template_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>');?>.

I am presuming that I have selected the right piece of code but how the hell do I change it from being in an array??.

Arrrrrrrrrrrrrghhhhhhhhhhhhhh!!!.

Mark..

Comment #15

Hi,.

I have found another topic which covers adding the search fields to the header, but for the life of me I can not find it again..

If anyone would like the code here it is, and thanks very much to the guys that sorted it (whoever you are!.

).

<?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>';.

?>.

Regards.

Mark..

Comment #16

Hi Guys,.

Will you please glance your eyes over this piece of code from header.php and tell me why it's giving me a parse error..

Its probably something really simple that I have missed but my eyes are going square staring at the code.

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

 <tr class="headerNavigation">.

   <td align="center" class="headerNavigation">&nbsp;&nbsp;<?php echo '<a href="'tep_href_link(FILENAME_INFORMATION)'?info_id=2">'BOX_INFORMATION_SHIPPING'</a>';">/*Enter Header Bar Info Here*/</td>.

   <td align="right" class="headerNavigation"></a> &nbsp;&nbsp;</td>.

 </tr>.

</table>.

Thanx.

Mark..

Comment #17

Where is the closing tag for the php I see no ?>.

Is it meant to be here.

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

<tr class="headerNavigation">.

<td align="center" class="headerNavigation">&nbsp;&nbsp;<?php echo '<a href="'tep_href_link(FILENAME_INFORMATION)'?info_id=2">'BOX_INFORMATION_SHIPPING'</a>';">/*Enter Header Bar Info Here*/ ?></td>.

<td align="right" class="headerNavigation"></a> &nbsp;&nbsp;</td>.

</tr>.

</table>.

Also the extra </a> so is the code.

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

<tr class="headerNavigation">.

  <td align="center" class="headerNavigation">&nbsp;&nbsp;<?php echo '<a href="'tep_href_link(FILENAME_INFORMATION)'?info_id=2">'BOX_INFORMATION_SHIPPING'</a>';">/*Enter Header Bar Info Here*/ ?></td>.

  <td align="right" class="headerNavigation"> &nbsp;&nbsp;</td>.

</tr>.

</table>.

This post has been edited by.

241.

: 24 February 2004, 13:28..

Comment #18


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