Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

mmh1

Archived
  • Posts

    3
  • Joined

  • Last visited

Everything posted by mmh1

  1. Jack - Wondering if you could help me out? I don't know what is meant by tep not null? There's only a few lines to insert, but I don't know where? If only I could understand what this means? Thank you, Desperate Marg :unsure:
  2. Hi All! I've worked on this all day and can't figure out. I'm on No.7 of the Install_Catalog, which says: In includes/header.php, find: <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> replace with: <?php /*** Begin Header Tags SEO ***/ ?> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a>'; ?></td> <?php /*** End Header Tags SEO ***/ ?> Sounds/looks simple, but I have an unusual header on my site which someone else installed. I'm really needing some assistance, please!!!!!!!!!!! And thank you!!!!!!! mmh I think I have enough info below where the modifications should be made (sorry if I included too much): if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <style type="text/css"> <!-- .style1 { font-size: xx-large; font-weight: bold; } --> </style> <div class="maindiv"> <img src="images/techtree4.gif" width="56" height="159" hspace="15" align="left" /> <table width="750" border="0" align="center"> <tbody> <tr> <th valign="top" scope="col" colspan="7" height="57" style="color: #990000; padding: 15px;"> <p><span class="style1">TECH TREES</span><br /> <em><strong>Quality Native Trees at an Affordable Price</strong></em></p></th> </tr> <tr> <td colspan="2"><a href="http://techtrees.net/index.html"><img height="38" alt="Home" src="images/homelog_techtrees.jpg" width="115" border="0" longdesc="index/pics/log.jpg" /></a></td> <td width="119"><a href="http://techtrees.net/index/aboutus1.html"><img height="38" alt="About Tech Trees and photos" src="images/about_techtrees.jpg" width="115" border="0" longdesc="index/pics/log.jpg" /></a></td> <td width="126"><a href="http://techtrees.net/index/faqs1.html"><img height="38" alt="Questions/answers related to orders (download flyer, click ORDERS), payment, planting, resources, shipping, tree info, warranty and contacting us." src="images/Q_&_A_techtrees.jpg" width="115" border="0" longdesc="index/pics/log.jpg" /></a></td> <td width="122"><a href="http://techtrees.net/index/nurserynotes.html"><img height="38" alt="NURSERY NOTES - Current updates on trees stocked and other useful information we wish to share with our customers" src="images/nursery_notes_techtrees.jpg" width="115" border="0" longdesc="index/pics/log.jpg" /></a></td> <td colspan="2"><a href="index.php"><img height="38" alt="Place your order" src="images/order_techtrees.jpg" width="115" border="0" longdesc="index/pics/log.jpg" /></a></td> </tr> <tr> <td valign="top" width="10" height="22"> </td> <td valign="top" width="112"> </td> <td height="22"> </td> <td height="22"> </td> <td height="22"> </td> <td valign="top" width="119" height="22"> </td> <td width="19"> </td> </tr> </tbody> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" style="margin-top: 8px; margin-bottom: 4px; "> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td>
  3. Hi! I'm very new at this. I'm trying to install the SEO header tags to my v2.2RC1, with QPBPP_v1.3.5 addon. This is the message I got when I clicked the catalog in admin: Parse error: syntax error, unexpected '}' in /home/techtree/public_html/test/shop/admin/categories.php on line 1025 I underlined "line 1025" below, which is: } else { /*** Begin Header Tags SEO ***/ $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { echo tep_draw_hidden_field('products_name[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_name[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_description[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_description[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_head_title_tag[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_head_title_tag[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_head_desc_tag[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_head_desc_tag[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_head_keywords_tag[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_head_keywords_tag[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_url[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_url[$languages[$i]['id']]))); } /*** End Header Tags SEO ***/ echo tep_draw_hidden_field('products_image', stripslashes($products_image_name)); echo tep_image_submit('button_back.gif', IMAGE_BACK, 'name="edit"') . ' '; if (isset($HTTP_GET_VARS['pID'])) { echo tep_image_submit('button_update.gif', IMAGE_UPDATE); } else { echo tep_image_submit('button_insert.gif', IMAGE_INSERT); } echo ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : '')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> </tr> </table></form> <?php } } else { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?></td> <td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="smallText" align="right"> <?php echo tep_draw_form('search', FILENAME_CATEGORIES, '', 'get'); echo HEADING_TITLE_SEARCH . ' ' . tep_draw_input_field('search'); echo tep_hide_session_id() . '</form>'; ?> If anyone could assist me, thanks a lot!
×
×
  • Create New...