Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

shelby72

Members
  • Posts

    170
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by shelby72

  1. I have Oscommerce 2.3.4 BS and have installed the Event Listing for Oscommerce 2.3.4. I would like to be able to sort the table in several different ways. I would like to be able to sort it by event title, start date, status, and last modified. Can someone please tell me how to change this. <?php // Events Schedule version 2.1 admin side require('includes/application_top.php'); $eID = (!empty($_GET['eID']) ? (int)$_GET['eID'] : 0 ); $action = (!empty($_GET['action']) ? $_GET['action'] : '' ); $page = (isset($_GET['page']) ? (int)$_GET['page'] : 1); if ($page < 1) $page = 1; $languages = tep_get_languages(); switch($action) { /////////////// case 'setflag': /////////////// if(!empty($eID) && isset($_GET['flag']) && ($_GET['flag'] == '1' || $_GET['flag'] == '0')) { tep_db_query('update '.TABLE_EVENT_SCH.' set event_status = ' . (int)$_GET['flag'] . ' where event_id = ' . (int)$eID); } tep_redirect(tep_href_link('event_sch.php', 'page=' . $page . '&' . 'iID=' . $eID)); break; ////////////// case 'insert': case 'update': ////////////// $error = false; $event_start_array = tep_db_prepare_input($_POST['event_start']); list($year, $month, $day) = explode('-', str_replace('/', '-', $event_start_array)); if (($event_start_array == '') || !checkdate($month, $day, $year)) { // invalid date $error = true; $messageStack->add(ENTRY_EVENT_START . TEXT_DATE_ERROR, 'error'); } $event_end_array = tep_db_prepare_input($_POST['event_end']); list($year, $month, $day) = explode('-', str_replace('/', '-', $event_end_array)); if (($event_end_array == '') || !checkdate($month, $day, $year)) { // invalid date $error = true; $messageStack->add(ENTRY_EVENT_END . TEXT_DATE_ERROR, 'error'); } if (!$error && ($event_end_array < $event_start_array)) { // if valid dates and end before beginning swap dates $tmp = $event_end_array; $event_end_array = $event_start_array; $event_start_array = $tmp; } $event_status = !empty($_POST['event_status']) ? '1' : '0'; $event_title_array = $_POST['event_title']; $event_site_array = $_POST['event_site']; $event_desc_array = $_POST['event_desc']; foreach ($languages as $l) { $event_title_array[$l['id']] = tep_db_prepare_input($event_title_array[$l['id']]); if ($event_title_array[$l['id']] == '') { // event name may not be empty $error = true; $messageStack->add(ERROR_MISSING_ENTRY . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_LANGUAGES . $l['directory'] . '/images/' . $l['image'], $l['name']), 'error'); } $event_site_array[$l['id']] = tep_db_prepare_input($event_site_array[$l['id']]); if (!empty($event_site_array[$l['id']])) { if (substr(strtolower($event_site_array[$l['id']]), 0, 4) != 'http') { $event_site_array[$l['id']] = 'http://' . $event_site_array[$l['id']]; } } $event_desc_array[$l['id']] = tep_db_prepare_input($event_desc_array[$l['id']]); } if ($error) { $action = ($action == 'insert' ? 'new_event' : 'edit_event'); } else { $sql_data_array = array('last_modified' => 'now()', 'event_start' => $event_start_array, 'event_end' => $event_end_array, 'event_status' => $event_status); if ($action == 'insert') { tep_db_perform(TABLE_EVENT_SCH, $sql_data_array); $eID = tep_db_insert_id(); } elseif ($action == 'update') { tep_db_perform(TABLE_EVENT_SCH, $sql_data_array, 'update', "event_id = '".(int)$eID."'"); } foreach ($languages as $l) { $sql_data_array = array('event_title' => $event_title_array[$l['id']], 'event_site' => $event_site_array[$l['id']], 'event_desc' => $event_desc_array[$l['id']]); if ($action == 'insert') { $insert_sql_data = array('event_id' => (int)$eID, 'language_id' => (int)$l['id']); $sql_data_array = array_merge($sql_data_array, $insert_sql_data); tep_db_perform(TABLE_EVENT_SCH_DESCRIPTION, $sql_data_array); } elseif ($action == 'update') { tep_db_perform(TABLE_EVENT_SCH_DESCRIPTION, $sql_data_array, 'update', "event_id = '" . (int)$eID . "' and language_id = '" . (int)$l['id'] . "'"); } } if ($action == 'insert') { $count = 0; $page = 1; $query = tep_db_query("select event_id from " . TABLE_EVENT_SCH . " order by event_start ASC"); // find the page containing the new event while ($x = tep_db_fetch_array($query)) { $count++; if ($x['event_id'] == $eID) { $page = ceil($count / MAX_DISPLAY_SEARCH_RESULTS); break; } } } tep_redirect(tep_href_link('event_sch.php', (isset($page) ? 'page='.$page.'&' : '') . 'eID=' . $eID)); } break; ///////////////////// case 'deleteconfirm': ///////////////////// tep_db_query("delete from " . TABLE_EVENT_SCH . " where event_id = " . (int)$eID); tep_db_query("delete from " . TABLE_EVENT_SCH_DESCRIPTION . " where event_id = " . (int)$eID); tep_redirect(tep_href_link('event_sch.php', 'page=' . $page)); break; } require('includes/template_top.php'); ?> <script language="JavaScript"> <!-- function showItem(id) { var item = document.getElementById(id); if (item) { if (!item.style.display || item.style.display == '' ) item.style.display = 'none'; else item.style.display = ''; } } //--> </script> <!-- body_text //--> <h1 class="pageHeading"><?php echo HEADING_TITLE; ?></h1> <?php if ($action == 'new_event' || $action == 'edit_event') { if ($action == 'new_event') { $event_info = array('status' => 1, 'start' => '', 'end' => ''); foreach($languages as $l) { $event_info['title'][$l['id']] = ''; $event_info['site'][$l['id']] = ''; $event_info['desc'][$l['id']] = ''; } } else { $event_info = array(); $event_info_query = tep_db_query('select e.event_id, ed.language_id, e.event_start, e.event_end, ed.event_title, ed.event_site, ed.event_desc, e.last_modified, e.event_status from '.TABLE_EVENT_SCH.' e, '.TABLE_EVENT_SCH_DESCRIPTION.' ed where e.event_id = ed.event_id and e.event_id = '.(int)$eID); while ($event = tep_db_fetch_array($event_info_query)) { $event_info['status'] = $event['event_status']; $event_info['start'] = $event['event_start']; $event_info['end'] = $event['event_end']; $event_info['title'][$event['language_id']] = $event['event_title']; $event_info['site'][$event['language_id']] = $event['event_site']; $event_info['desc'][$event['language_id']] = $event['event_desc']; } } ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"> <?php echo tep_draw_form('new_event', 'event_sch.php', (empty($eID) ? 'action=insert' : 'action=update&eID='.$eID) ) . "\n"; ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" valign="top"><?php echo TITLE_STATUS;?></td> <td class="main" valign="top"><?php echo TEXT_ON.tep_draw_radio_field('event_status', '1', ($event_info['status'] ? true : false) ).'&nbsp;&nbsp;&nbsp;'.TEXT_OFF.tep_draw_radio_field('event_status', '0', ($event_info['status'] ? false : true) );?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5')?></td> </tr> <tr> <td class="main" valign="top"><?php echo ENTRY_EVENT_START . '<br />' . TEXT_DATE_FORMAT; ?></td> <td class="main" valign="top"> <?php echo tep_draw_input_field("event_start", (isset($event_start_array) ? $event_start_array : $event_info['start']), 'id="event_start"'); ?> </td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5')?></td> </tr> <tr> <td class="main" valign="top"><?php echo ENTRY_EVENT_END . '<br />' . TEXT_DATE_FORMAT; ?></td> <td class="main" valign="top"> <?php echo tep_draw_input_field("event_end", (isset($event_end_array) ? $event_end_array : $event_info['end']), 'id="event_end"'); ?> </td> </tr> <?php foreach($languages as $l) { ?> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5')?></td> </tr> <tr> <td class="main" valign="top"><?php echo TITLE_ADD_EVENT_TITLE;?></td> <td class="main" valign="top"> <?php echo ' ' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_LANGUAGES . $l['directory'] . '/images/' . $l['image'], $l['name']) . tep_draw_input_field('event_title[' . $l['id'] . ']', (isset($event_title_array[$l['id']]) ? $event_title_array[$l['id']] : $event_info['title'][$l['id']]), 'size="72" maxlength="255"') . "\n"; ?> </td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5')?></td> </tr> <tr> <td class="main" valign="top"><?php echo TITLE_ADD_EVENT_SITE;?></td> <td class="main" valign="top"> <?php echo ' ' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_LANGUAGES . $l['directory'] . '/images/' . $l['image'], $l['name']) . tep_draw_input_field('event_site[' . $l['id'] . ']', (isset($event_site_array[$l['id']]) ? $event_site_array[$l['id']] : $event_info['site'][$l['id']]), 'size="72"') . "\n"; ?> </td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5')?></td> </tr> <tr> <td class="main" valign="top"><?php echo TITLE_ADD_EVENT_DESC;?></td> <td class="main" valign="top"> <?php echo ' ' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_LANGUAGES . $l['directory'] . '/images/' . $l['image'], $l['name'], '', '', 'valign="top"') . tep_draw_textarea_field_ckeditor('event_desc[' . $l['id'] . ']','soft','72','10', (isset($event_desc_array[$l['id']]) ? $event_desc_array[$l['id']] : $event_info['desc'][$l['id']])) . "\n"; ?> </td> </tr> <?php } ?> <tr> <td class="main" colspan="2"><?php echo tep_draw_button(IMAGE_SAVE, 'disk') . '&nbsp;' . tep_draw_button(IMAGE_CANCEL, 'cancel', tep_href_link('event_sch.php', tep_get_all_get_params(array('action'))));?></td> </tr> </table> <script type="text/javascript"> $('#event_start').datepicker({ dateFormat: 'yy-mm-dd', numberOfMonths: 3, showButtonPanel: true, minDate: -0, onClose: function( selectedDate ) { $( "#event_end" ).datepicker( "option", "minDate", selectedDate ); if (document.getElementById('event_end').value == '') document.getElementById('event_end').value = document.getElementById('event_start').value; } }); $('#event_end').datepicker({ dateFormat: 'yy-mm-dd', numberOfMonths: 3, showButtonPanel: true, minDate: -0, onClose: function( selectedDate ) { $( "#event_start" ).datepicker( "option", "maxDate", selectedDate ); } }); </script> </form> </td> </tr> <?php } elseif ($action == 'preview_event') { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_CLICK_REVEAL; ?></td> <td class="main" align="right"><?php echo tep_draw_button(IMAGE_BACK, 'circle-arrow-w', tep_href_link('event_sch.php', tep_get_all_get_params(array('action')))); ?></td> </tr> <tr> <td class="main" style="padding-left:20px;"><?php foreach ($languages as $l) { echo tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_LANGUAGES . $l['directory'] . '/images/' . $l['image'], $l['name']) . '&nbsp;' . $l['name']; ?> <fieldset style="padding:3 3 5 18; border:1px solid #2B383A;"> <table border="0" cellspacing="0" cellpadding="0"> <?php $event_query = tep_db_query('select e.event_id, e.event_start, e.event_end, ed.event_title, ed.event_site, ed.event_desc, e.last_modified, e.event_status from '.TABLE_EVENT_SCH.' e, '.TABLE_EVENT_SCH_DESCRIPTION.' ed where e.event_id = ed.event_id and e.event_status and ed.language_id = "' . $l['id'] . '" order by e.event_start ASC'); while ($event = tep_db_fetch_array($event_query)) { if ($event['event_start'] == $event['event_end']) { $eventdates = tep_date_long($event['event_start']); } else { $eventdates = tep_date_long($event['event_start']) . ' &mdash; ' . tep_date_long($event['event_end']); } ?> <tr> <td class="main"><strong style="cursor:pointer;" onclick="showItem('event_desc_<?php echo $event['event_id'] . '_' . $l['id'];?>')"><?php echo $eventdates;?></strong></td> </tr> <tr> <td class="main"><strong style="cursor:pointer;" onclick="showItem('event_desc_<?php echo $event['event_id'] . '_' . $l['id'];?>')"><?php echo $event['event_title'];?></strong></td> </tr> <tr> <td class="main" style="display:none;" id="event_desc_<?php echo $event['event_id'] . '_' . $l['id'];?>"><?php echo $event['event_desc'];?></td> </tr> <tr> <td class="smallText"><?php echo TITLE_ADD_EVENT_SITE . ' ' . $event['event_site'] . '<br /><small>' . TEXT_LAST_UPDATED . $event['last_modified'];?></small></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10')?></td> </tr> <?php } ?> </table> </fieldset> <br /> <?php } // end foreach languages?> </td> </tr> <?php } else { // list of events ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_EVENT_ID; ?></td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_EVENT; ?></td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_START; ?></td> <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_EVENT_STATUS; ?></td> <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_EVENT_LAST_MODIFIED; ?></td> </tr> <?php $event_query_numrows = 0; $event_query_raw = "select e.event_id, e.event_start, e.event_end, ed.event_title, ed.event_site, ed.event_desc, e.last_modified, e.event_status from " . TABLE_EVENT_SCH . " e, " . TABLE_EVENT_SCH_DESCRIPTION . " ed where e.event_id = ed.event_id and ed.language_id = " . (int)$languages_id . " order by e.event_start DESC"; $event_split = new splitPageResults($page, MAX_DISPLAY_SEARCH_RESULTS, $event_query_raw, $event_query_numrows); $event_query = tep_db_query($event_query_raw); while ($event = tep_db_fetch_array($event_query)) { if ((!isset($_GET['eID']) || (isset($_GET['eID']) && ($_GET['eID'] == $event['event_id']))) && !isset($eInfo)) { $eInfo = new objectInfo($event); } if (isset($eInfo) && is_object($eInfo) && ($event['event_id'] == $eInfo->event_id)) { echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link('event_sch.php', 'page=' . $page . '&eID=' . $event['event_id'] . '&action=edit_event') . '\'">' . "\n"; } else { echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link('event_sch.php', 'page=' . $page . '&eID=' . $event['event_id']) . '\'">' . "\n"; } ?> <td class="dataTableContent" align="center"><?php echo $event['event_id']; ?></td> <td class="dataTableContent" width="35%"><?php echo $event['event_title']; ?></td> <td class="dataTableContent"><?php echo tep_date_long($event['event_start']); ?></td> <td class="dataTableContent" align="center"><?php if ($event['event_status'] == '1') { echo tep_image( 'images/' . 'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10) . '&nbsp;&nbsp;<a href="' . tep_href_link('event_sch.php', 'action=setflag&flag=0&eID=' . $event['event_id'] ) . '">' . tep_image( 'images/' . 'icon_status_red_light.gif', IMAGE_ICON_STATUS_RED_LIGHT, 10, 10) . '</a>'; } else { echo '<a href="' . tep_href_link('event_sch.php', 'action=setflag&flag=1&eID=' . $event['event_id']) . '">' . tep_image( 'images/' . 'icon_status_green_light.gif', IMAGE_ICON_STATUS_GREEN_LIGHT, 10, 10) . '</a>&nbsp;&nbsp;' . tep_image( 'images/' . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10); } ?></td> <td class="dataTableContent" align="center"><?php echo $event['last_modified']; ?></td> </tr> <?php } ?> <tr> <td colspan="5"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText" valign="top"><?php echo $event_split->display_count($event_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $page, TEXT_DISPLAY_NUMBER_OF_EVENTS); ?></td> <td class="smallText" align="right"><?php echo $event_split->display_links($event_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $page); ?></td> </tr> </table></td> </tr> <tr> <td align="right" colspan="5" class="smallText"> <?php echo "<br />\n"; echo tep_draw_button(IMAGE_INSERT, 'plusthick', tep_href_link('event_sch.php', 'page='.$page.'&action=new_event')) . '&nbsp;&nbsp;'; echo tep_draw_button(IMAGE_PREVIEW, 'image', tep_href_link('event_sch.php', 'page='.$page.'&action=preview_event&prevlang=' . $languages_id)) . "&nbsp;<br />\n"; ?> </td> </tr> </table></td> <?php $heading = array(); $contents = array(); switch ($action) { ////////////// case 'delete': ////////////// $heading[] = array('text' => '<strong>' . sprintf(TEXT_HEADING_DELETE_INTRO, $eInfo->event_id) . '</strong>'); $contents = array('form' => tep_draw_form('evsch', 'event_sch.php', 'page=' . $page . '&eID=' . $eInfo->event_id . '&action=deleteconfirm')); $contents[] = array('text' => '<br /><strong>'.TEXT_ETITLE.'</strong><br />' . $eInfo->event_title ); $contents[] = array('text' => '<br /><strong>'.TEXT_EDESC.'</strong><br />' . $eInfo->event_desc ); $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_DELETE, 'trash') . tep_draw_button(IMAGE_CANCEL, 'cancel', tep_href_link('event_sch.php', 'page=' . $page . '&eID=' . $eInfo->event_id))); break; //////// default: //////// if (isset($eInfo) && is_object($eInfo)) { $heading[] = array('text' => '<strong> #' . $eInfo->event_id . ' ' . $eInfo->event_title . '</strong>'); $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'pencil', tep_href_link('event_sch.php', 'page=' . $page . '&eID=' . $eInfo->event_id . '&action=edit_event')) . ' ' . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link('event_sch.php', 'page=' . $page . '&eID=' . $eInfo->event_id . '&action=delete'))); $contents[] = array('text' => '<br /><strong>' . TEXT_ETITLE . '</strong><br />' . $eInfo->event_title ); $contents[] = array('text' => '<br /><strong>' . TEXT_BEGINS . '</strong>' . $eInfo->event_start . '<br /><strong>' . TEXT_ENDS . '</strong>' . $eInfo->event_end); $contents[] = array('text' => '<br /><strong>' . TEXT_EDESC . '</strong><br />' . $eInfo->event_desc ); $contents[] = array('text' => '<br /><strong>' . TITLE_ADD_EVENT_SITE . '</strong><br />' . $eInfo->event_site ); } break; } if ((tep_not_null($heading)) && (tep_not_null($contents))) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box; echo $box->infoBox($heading, $contents); echo " </td>\n"; } ?> </tr> <?php } ?> </table> <!-- body_eof //--> <?php require('includes/template_bottom.php'); require('includes/application_bottom.php'); ?>
  2. I've just updated to v.1.31 and I am still getting this error if I turn the featured links on in the admin. It only goes away if I add a featured link or turn the featured link off in the Admin. How do I fix this?
  3. I figured it out. It shows the total number when you start to send out the newsletter.
  4. Is there any way to show the total number of newsletter subscribers in the Admin?
  5. I have a retail store in which I use Square to accept payments from my customers. I would like to be able to use Square for my online Oscommerce store also. Is there anyway to do that? I'm surprised that no one has come up with a contribution for that yet.
  6. I have a retail store in which I use Square to accept payments from my customers. I would like to be able to use Square for my online Oscommerce store also. Is there anyway to do that? I'm surprised that no one has come up with a contribution for that yet.
  7. I tried using this contribution with the Custom Server Error Pages contribution and everything works fine with my classic version of my site but with the mobile version I am getting over 330 500 errors in google webmaster tools. How do you get this to work with iOSC mobile version?
  8. These are the errors I am getting in my error logs: [sat Nov 30 03:43:33 2013] [warn] [client 173.233.120.142] mod_fcgid: read data timeout in 120 seconds, referer: http://sparklespot.com/catalog/admin_new/banner_manager.php [sat Nov 30 03:43:33 2013] [warn] [client 173.233.120.142] (110)Connection timed out: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://sparklespot.com/catalog/admin_new/banner_manager.php The mod_fcgid: read data timeout was 45 but I went into /etc/httpd/conf.d/fcgid.conf and changed the FcgidlOTimeout to 120. It did not do any good though. I'm still getting the errors. What could be causing the Who's online to be timing out?
  9. I keep getting the following error with Who's Online. It doesn't happen every time I go into Who's Online but it does most of the time. What could be causing this? This has been going on for quite awhile now and is getting very annoying. Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error. More information about this error may be available in the server error log.
  10. I installed the Header Tags SEO support and it seems like the files are different now than when that contribution came out. I cannot get the mobile files to show up in the admin in the Page Control. The header tags do work on the files but the pages don't show up in the admin page control so I can change them. How do I fix that? The following instructions in the Header Tags SEO also tell me I'm supposed to have an iphone.css file which I also do not have: Now open /header_with_products_htseo.php and change the following (yours may be slightly different) FIND <?php if(isset($HTTP_GET_VARS['ajax']) == false) { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php echo strtolower(HTML_PARAMS); ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="default" /> <?php if (strpos($PHP_SELF,'checkout') || strpos($PHP_SELF,'shopping_cart') || strpos($PHP_SELF,'account') || strpos($PHP_SELF,'log') || strpos($PHP_SELF,'address') > 0) { ?> <meta name="googlebot" content="noindex, nofollow"> <meta name="robots" content="noindex, nofollow"> <?php } ?> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_MOBILE_SERVER . DIR_WS_HTTPS_MOBILE : HTTP_MOBILE_SERVER . DIR_WS_HTTP_MOBILE); ?>" /> <style type="text/css" media="screen"> @@import "<?php echo DIR_MOBILE_INCLUDES; ?>mobile_stylesheet.css"; </style> <link rel="stylesheet" type="text/css" href="<?php echo HTTP_SERVER . DIR_WS_HTTP_CATALOG; ?>ext/jquery/ui/redmond/jquery-ui-1.8.22.css" /> <script type="text/javascript" src="<?php echo HTTP_SERVER . DIR_WS_HTTP_CATALOG; ?>ext/jquery/jquery-1.8.0.min.js"></script> <script type="text/javascript" src="<?php echo HTTP_SERVER . DIR_WS_HTTP_CATALOG; ?>ext/jquery/ui/jquery-ui-1.8.22.min.js"></script> <script type="text/javascript"> // fix jQuery 1.8.0 and jQuery UI 1.8.22 bug with dialog buttons; http://bugs.jqueryui.com/ticket/8484 if ( $.attrFn ) { $.attrFn.text = true; } </script> <title><?php echo TITLE; ?></title> </head> <body> <div id="errorMsg"> <?php if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> </div> <!-- header //--> <div id="header"> REPLACE WITH <?php if(isset($HTTP_GET_VARS['ajax']) == false) { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php /*** Begin Header Tags SEO ***/ if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> <title><?php echo TITLE; ?></title> <?php } /*** End Header Tags SEO ***/ ?> <meta name="distribution" content="Global"> <meta name="rating" content="Product"> <meta name="viewport" content="width=width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="default" /> <style type="text/css" media="screen"> @@import "<?php echo DIR_WS_HTTP_CATALOG . DIR_MOBILE_INCLUDES; ?>iphone.css"; </style> </head> <body> <div id="errorMsg"> <?php if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> </div> <!-- header //--> <div id="header">
  11. Thank you. It works now. The following worked in the mobile/includes/header.php: @@import "<?php echo (($request_type == 'SSL') ? HTTPS_MOBILE_SERVER . DIR_WS_HTTPS_MOBILE : HTTP_MOBILE_SERVER . DIR_WS_HTTP_MOBILE) . DIR_MOBILE_INCLUDES; ?>mobile_stylesheet.css";
  12. My stylesheet isn't working in the SSL pages. Works fine for the other pages. I have uninstalled and reinstalled this contribution 3 times already. Not sure what is wrong. If I delete , '', 'SSL' off of the links everything works fine. What could be causing this? The SSL for my classic site works good.
  13. I figured it out. The errors where being caused by the word null in: '<span style="float:right;">' . tep_draw_button(IMAGE_BUTTON_LOGIN, 'key', null, '', 'SSL') . '</span></form>'; ? I took the word null out and now all the errors are gone. Of course, now it's not signing me in. It just takes me back to the homepage. Not sure why.
  14. I am having the exact same problem. If I delete the following off of my mobile/login.php it goes away. What is causing this? How do I get rid of it? You had suggested 3 solutions that might get rid of it, but none of them works for me. <div id="bouton"> <?php echo '<span style="float:left;">' . tep_draw_button(IMAGE_BUTTON_FORGOT_PASS, 'mail-closed', tep_mobile_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL'), '') . '</span>' . '<span style="float:right;">' . tep_draw_button(IMAGE_BUTTON_LOGIN, 'key', null, '', 'SSL') . '</span></form>'; ?> </div>
  15. I would like to be able to add a fixed word onto all of my categories. I sell auto owners manuals so my categories are Acura, Buick, Honda, Dodge, etc. I don't want the words owners manuals added to each of my categories. I just want it added to the urls so that my urls look like acura-owners-manuals-c-22.html instead of acura-c-22.html. How do I do that? I really like this contribution so I would like to keep it instead of uninstalling and having to reinstall another contribution. It works great with everything else.
  16. Do you know what file or where to look for the error? My categories fill out fine. It's just the products when I upload new products.
  17. I know that I can set it in Easy Populate. I thought that I could just set it in the Admin for the Product Header Tags and have the title and descriptions come up on the new products instead of having to mess with the header tags in the spreadsheet every time. In the Admin I can use ITEMNAME in the place of my product name whereas in the spreadsheet I can't and I have to mess with all those formulas to get things right every time I upload new products which is aggravating. It would be easier to just set it one time in the Admin. Is there not a way to just be able to set the Product Titles and Descriptions in the Admin and have them apply to all the new products I upload?
  18. When I upload new products, the products title and description doesn't appear in the header tags. I have to go in and redo the header tags again every time. Is the products title and description supposed to appear when I upload new products or am I supposed to be keep going in and redoing the header tags every time I put new products up? I have searched and searched to find an answer to this. No one else has said anything about this.
  19. I have installed the Who's online enhancement 3.6.7.2 and done the updates all the way up to update 231osc version. I cannot get the geolocations to display. The city, region, and referer are all blank. I also cannot get the map to come up. I got the Google Maps Api v3 key. The API Access link in my Google API console does have an exclamation mark by it. Not sure what that means and if that has anything to do with why the map won't come up. Is this something that I'm required to set up a credit card account with cause I see the Billing link below it?
  20. I figured it out. It had nothing to do with this contribution. I've been trying to upgrade my Oscommerce Shop to 2.3 and copy everything over from Oscommerce MS2. It was a setting in the includes/languages/english/index.php file that was set.
  21. I added a field to the Products table and deleted it and now it's still showing up in my product listings table on the site and I can't find it anywhere in the database to get rid of it. I can't get it off my product listings table no matter what I try to do. I even deleted the Add More Fields files and started over and it's still there.
  22. I've had Header Tags Controller 2.5.9 installed on my site. I've been trying to update it with Header Tags SEO. So far I've gotten it to Header Tags SEO 3.17. After all the updates, I still have never been able to get the keywords and decription overrides on the Fill Tags nor the the Page Control for the keywords where you can use text from actual page to do anything at all. They never worked from 3.0. i thought that after making all the updates that it would eventually straighten up but it hasn't. Please tell me how do I get them to work? One error I seem to be getting is: File does not exist: /var/www/vhosts/cootersautomanuals.com/httpdocs/catalog/Select I am still using Oscommerce 2.2-MS2 and have PHP 4.3.9. I intend to update everything as soon as I can but for right now how far in this contribution is it safe for me to update to? Would Header Tags 3.2.9 work for me?
  23. Does this contribution work with Easy Populate? I upload all my products with Easy Populate.
×
×
  • Create New...