Jump to content

e-peoples

Members
  • Content count

    22
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by e-peoples

  1. Hey to all! First of all my special thanks to MaxiDVD for the Ultra Pics- Contrib. :-) So everything goes well with the original contrib! For special reason i have to "update" this mod for 9pic more instead of 6 pics. I'm now in front of the problem, that the "image_xl_9" won't be loaded up! Every pic from "image_sm_1 to image_sm_9" upload is perfect! But not image_xl_9. So I decided to try it with even one more pic-set (image_sm_10 and image_xl_10). Same problem .. upload from image_xl_9 to image_xl_10 doesn't work! I don't think, that there ist any limitation within the contrib (or is it?)! When i edit the pic manualy to the DB, it is shown in the shop correctly, but when I edit this product in admin again, it deletes the DB-Entry! I renewed the code several times to be sure, to avoid a mistake! Has anyone an idea? Or is there any limitation in the code? Help would be much appreciated! Thanks a lot!
  2. Hey, I have the same problem. It only occures after registration and only in shopping-cart. The checkout-page shows the correct prices again, but the shopping_cart_box on the left does not! After the first re-login, everything works perfect again. Quite fancy!? Would be nice, if somebody has an idea!? Thanks in advance! Michael
  3. e-peoples

    ULTIMATE SEO URLS 5 - who's interested?

    Hey, i've installed the new version and used "upgrade_from_2". When trying to run the database-update-file "usu2_removal.php", I receive an error warning "Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in ..... htdocs/includes/modules/ultimate_seo_urls5/classes/usu.php on line 24" I didn`t change any word in this file ... the download of the contrib was 1h ago. I checked the installation twice and more. This error warning comes even starting the "index.php". When I searched for this error message in Gooogle, I found some more sites with the same message. Maybe someone had the same problem, and fixed it? Would be great!!! :rolleyes: Best regards Michael
  4. e-peoples

    Header Tags SEO

    Hey, I had the same prob. But then I realised, that I missed to fill one Category-Title-Field. Did you fill up all Category-Title-Fields in Admin-Section? Maybe you filled up the wrong language? Just an idea! Best Michael
  5. e-peoples

    "Dynamenu" for osCommerce

    It seems to be as default in the .ihtml Template. How can I change this .ihtml file with dreamweaver or with any other editor? (MAC) Thanx a lot Michael
  6. e-peoples

    "Dynamenu" for osCommerce

    Hey, first .. as you heard a hundred times...but this is a great contrib! :-) Thanks a lot! I have a small, but annoying prob. I cannot change the link-format for the "horizitem" Links. They are always underline an grey as links, und clear and black for hover. Even I checked the css several times. The Link to the page (under construction) Website (under construction It is the third time, I installed this contrib, but the first time with that problem. It works fine under www.dr-holl.de There I used the vertical-flyout ... but this should not be the reason! can anyone help me? Thanx a lot!
  7. e-peoples

    Sitemap SEO

    I didn`t clear the table yet ... but i´ll do so soon. In Admin there`s only german with ID "2" ... as in the "language"-table in DB. Thanx again Michael
  8. e-peoples

    Sitemap SEO

    o.k. now I figured out some things, which might show the right direction. I only use the german language in the shop. The rest, is deleted. So in your SQL-File your default language id is "1" ... English! But this doesn't exists any more! So your SQL-script seems to put the whole pages into the table "sitemap_seo_pages" with "language_id" "2" (german). So far o.K.. For some reasons, the first 36 files I told you, were also put in with "language_id" "0" ???. But unfortunatelly not all pagenames. ????? Don't know why! For some reasons, these "language_id" constelations causes trouble. So I manually (via PHPMyAdmin) put the rest of the pages in the table. Now, all "Zeros" for the sort order are displayed. But the updated still doesn't work correct. You have some ideas? Here the "Before" and "After" - Pic! Best Michael
  9. e-peoples

    Sitemap SEO

    Hey Jack, in your fix, you included the following tag two times in the first checkbox-field-tag (before the "id" an after). Was this your intention? <?php echo $pageSettings[$p]['excluded']; ?> I deleted one, and there was no change! But I'm still fighting with this prob .. 36th page.... :blush: Best Michael
  10. e-peoples

    Sitemap SEO

    Hey, maybe you set "articles manager" to "true" without having integrated the contrib "articles manager"? (http://addons.oscommerce.com/info/1709) Just an idea! Best Michael
  11. e-peoples

    Sitemap SEO

    Hi Jack, 1 - the problem still exists. Up to the 36th page, everything works well, but then ... nothing. As you see, the 37th page is "products_new.php", and the 36th page is "products_reviews_rewrite.php". For the last pages even the "0" for the sort-order doesn`t exist. Has anyone more than 36pages and tested this? 2 - Found the problem ... forgot to say "true" to "Show products in categories". <_< I don't have "articles manager". Thanx! Michael
  12. e-peoples

    Sitemap SEO

    Hey Jack, first ... thanx for this contrib! It now works in an STS (not being used as a shop, but as a CMS). I have 2 problems by using SEO Sitmap. MySQL5, and PHP5. 1.) First I had the same problem as Coopco. After making your fix, the listing of the first 36 pages went well, even when updated. But the rest still doesn't keep the updates. (Screenshot attached) 2.) No articles are shown ... I checked the install.txt several times, but cann't find a mistake made by me! (so it doesn't mean, I made none!) Thany again!! :rolleyes: Michael
  13. Sorry again, now i mentioned, that I started a new topic instead of replying in the "Header Tags"-support thread. My fault! Have a nice day Michael
  14. Hey, does anybody know the right coding for the "application_top.php" for both contribs together? Here are my latest trials: $categories_query = tep_db_query("select categories_htc_title_tag from " . TABLE_CATEGORIES_DESCRIPTION . " cd left join " . TABLE_CATEGORIES . " c on cd.categories_id = c.categories_id where c.categories_status = '1' and cd.categories_id = '" . (int)$cPath_array[$i] . "' and cd.language_id = '" . (int)$languages_id . "' LIMIT 1"); $products_query = tep_db_query("select pd.products_head_title_tag from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c on p.products_id = p2c.products_id left join " . TABLE_CATEGORIES . " c on p2c.categories_id = c.categories_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where c.categories_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.products_id = pd.products_id and pd.language_id ='" . (int)$languages_id . "' LIMIT 1"); The problem is, that when I cklick to a category, no articles are shown. I think the only reason can be in these codes. Maybe someone can help me? Best regards from bavaria Michael
  15. e-peoples

    Header Tags SEO

    Hey, I have a problem with some coding in "application_top.php" when merging "Header Tags SEO 3.1.0" with "enable/disable categories". Here are my last tials in this case: $categories_query = tep_db_query("select categories_htc_title_tag from " . TABLE_CATEGORIES_DESCRIPTION . " cd left join " . TABLE_CATEGORIES . " c on cd.categories_id = c.categories_id where c.categories_status = '1' and cd.categories_id = '" . (int)$cPath_array[$i] . "' and cd.language_id = '" . (int)$languages_id . "' LIMIT 1"); and some lines further down $products_query = tep_db_query("select pd.products_head_title_tag from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c on p.products_id = p2c.products_id left join " . TABLE_CATEGORIES . " c on p2c.categories_id = c.categories_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where c.categories_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.products_id = pd.products_id and pd.language_id ='" . (int)$languages_id . "' LIMIT 1"); The problem is, that when I cklick to a category, no articles are shown. Even in "product_info.php" nothing appears. I think the reason must bei in these two lines The link to this shop (it is a test shop) is Link click here... Can you help me? Thanks a lot, and best greatings from germany/bavaria Michael
  16. Sorry ... it was late last night!!! This code is by mixing "Header Tags SEO 3.1.0" and "enable/disable categories". The link to this shop (it is a test shop) is http://www.kultur-wirtschaft.eu/testoshop5...ex.php?cPath=21 Sorry again. Am I right in this thread? Best regards Michael
  17. e-peoples

    FCK WYSIWYG HTML editor

    Hey, there`s another problem, i can`t fix. I use the contrib "Extra Pages", an integrated FCK too in admin. When I save the text, FCK adds a further "</br> to every existing "<br>. So now the text is double-lined instead of single lined. I checked admin in several Browsers (Safari, Firefox, I.E.6) ...same result. I cann`t get an idea, why FCK acts different in different places within one site! The Products Description in the same site runs well! I checked several Forums in the web, and realised, that there are some people with the same problem ... but no solution until now. Thanks again! Best from bavaria Mitch Here`s the code <?php require('includes/application_top.php'); $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); if (tep_not_null($action)) { switch($action){ case 'setflag': if ( ($HTTP_GET_VARS['flag'] == '0') || ($HTTP_GET_VARS['flag'] == '1') ) { if (isset($HTTP_GET_VARS['pID'])) { tep_db_query("update pages set pages_status='".$HTTP_GET_VARS['flag']."' where pages_id='".$HTTP_GET_VARS['pID']."'"); } if (USE_CACHE == 'true') { tep_reset_cache_block('pages'); } } tep_redirect(tep_href_link(FILENAME_PAGES, 'pID=' . $HTTP_GET_VARS['pID'])); break; case 'insert_page': case 'update_page': if (isset($HTTP_POST_VARS['edit_x']) || isset($HTTP_POST_VARS['edit_y'])) { $action = 'new_page'; } else { if (isset($HTTP_GET_VARS['pID'])) $pages_id = tep_db_prepare_input($HTTP_GET_VARS['pID']); $sql_data_array = array('pages_name' => tep_db_prepare_input($HTTP_POST_VARS['pages_name']), 'pages_image' => tep_db_prepare_input($HTTP_POST_VARS['pages_image']), 'pages_status' => tep_db_prepare_input($HTTP_POST_VARS['pages_status']), 'sort_order' => tep_db_prepare_input($HTTP_POST_VARS['sort_order'])); if ($action == 'insert_page') { tep_db_perform(TABLE_PAGES, $sql_data_array); $pages_id = tep_db_insert_id(); } elseif ($action == 'update_page') { tep_db_perform(TABLE_PAGES, $sql_data_array, 'update', "pages_id = '" . (int)$pages_id . "'"); } $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $pages_title_array = $HTTP_POST_VARS['pages_title']; $pages_body_array = $HTTP_POST_VARS['pages_body']; $language_id = $languages[$i]['id']; $sql_data_array = array('pages_title' => tep_db_prepare_input($pages_title_array[$language_id]), 'pages_body' => tep_db_prepare_input($pages_body_array[$language_id])); if ($action == 'insert_page') { $insert_sql_data = array('pages_id' => $pages_id, 'language_id' => $languages[$i]['id']); $sql_data_array = array_merge($sql_data_array, $insert_sql_data); tep_db_perform(TABLE_PAGES_DESCRIPTION, $sql_data_array); } elseif ($action == 'update_page') { tep_db_perform(TABLE_PAGES_DESCRIPTION, $sql_data_array, 'update', "pages_id = '" . (int)$pages_id . "' and language_id = '" . (int)$languages[$i]['id'] . "'"); } } if ($pages_image = new upload('pages_image', DIR_FS_CATALOG_IMAGES)) { tep_db_query("update " . TABLE_PAGES . " set pages_image = '" . tep_db_prepare_input($HTTP_POST_VARS['pages_image']) . "' where pages_id = '" . (int)$pages_id . "'"); } if (USE_CACHE == 'true') { tep_reset_cache_block('pages'); } tep_redirect(tep_href_link(FILENAME_PAGES, 'pID=' . $pages_id)); } break; case 'delete_page_confirm': if (isset($HTTP_POST_VARS['pages_id'])) { $pages_id = tep_db_prepare_input($HTTP_POST_VARS['pages_id']); if($pages_id!=1 && $pages_id!=2){ tep_db_query("delete from " . TABLE_PAGES . " where pages_id = '" . (int)$pages_id . "'"); tep_db_query("delete from " . TABLE_PAGES_DESCRIPTION . " where pages_id = '" . (int)$pages_id . "'"); } } if (USE_CACHE == 'true') { tep_reset_cache_block('pages'); } tep_redirect(tep_href_link(FILENAME_PAGES)); break; case 'new_page_preview': $pages_image = new upload('pages_image'); $pages_image->set_destination(DIR_FS_CATALOG_IMAGES); if ($pages_image->parse() && $pages_image->save()) { $pages_image_name = $pages_image->filename; } else { $pages_image_name = (isset($HTTP_POST_VARS['pages_previous_image']) ? $HTTP_POST_VARS['pages_previous_image'] : ''); } break; } } // check if the catalog image directory exists if (is_dir(DIR_FS_CATALOG_IMAGES)) { if (!is_writeable(DIR_FS_CATALOG_IMAGES)) $messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_NOT_WRITEABLE, 'error'); } else { $messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST, 'error'); } ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();" > <div id="spiffycalendar" class="text"></div> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"> <?php if ($action == 'new_page') { $parameters = array('pages_name' => '', 'pages_title' => '', 'pages_body' => '', 'pages_id' => '', 'pages_image' => '', 'pages_status' => '', 'sort_order' => ''); $pInfo = new objectInfo($parameters); if (isset($HTTP_GET_VARS['pID']) && empty($HTTP_POST_VARS)) { $page_query = tep_db_query("select pd.pages_title, pd.pages_body, p.pages_id, p.pages_name, p.pages_image, p.pages_status, p.sort_order from " . TABLE_PAGES . " p, " . TABLE_PAGES_DESCRIPTION . " pd where p.pages_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and p.pages_id = pd.pages_id and pd.language_id = '" . (int)$languages_id . "'"); $page = tep_db_fetch_array($page_query); $pInfo->objectInfo($page); } elseif (tep_not_null($HTTP_POST_VARS)) { $pInfo->objectInfo($HTTP_POST_VARS); $pages_name = $HTTP_POST_VARS['pages_name']; $pages_title = $HTTP_POST_VARS['pages_title']; $pages_body = $HTTP_POST_VARS['pages_body']; } $languages = tep_get_languages(); if (!isset($pInfo->pages_status)) $pInfo->pages_status = '1'; switch ($pInfo->pages_status) { case '0': $in_status = false; $out_status = true; break; case '1': default: $in_status = true; $out_status = false; } ?> <?php echo tep_draw_form('new_page', FILENAME_PAGES, 'action=new_page_preview' . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : ''), 'post', 'enctype="multipart/form-data"'); ?> <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 sprintf(TEXT_NEW_PAGE) ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_PAGES_STATUS; ?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_radio_field('pages_status', '1', $in_status) . ' ' . TEXT_PAGE_ACTIVE . ' ' . tep_draw_radio_field('products_status', '0', $out_status) . ' ' . TEXT_PAGE_NOT_ACTIVE; ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_PAGES_NAME; ?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('pages_name', (isset($pages_name) ? $pages_name : tep_get_pages_name($pInfo->pages_id))); ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_PAGES_IMAGE; ?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_file_field('pages_image') . '<br>' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->pages_image . tep_draw_hidden_field('pages_previous_image', $pInfo->pages_image); ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <?php for ($i=0, $n=sizeof($languages); $i<$n; $i++) { ?> <tr> <td class="main"><?php if ($i == 0) echo TEXT_PAGES_TITLE; ?></td> <td class="main"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('pages_title[' . $languages[$i]['id'] . ']', (isset($pages_title[$languages[$i]['id']]) ? $pages_title[$languages[$i]['id']] : tep_get_pages_title($pInfo->pages_id, $languages[$i]['id']))); ?></td> </tr> <?php } ?> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <?php for ($i=0, $n=sizeof($languages); $i<$n; $i++) { ?> <tr> <td class="main" valign="top"><?php if ($i == 0) echo TEXT_PAGES_BODY; ?></td> <td><table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="main" valign="top"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td> <td class="main"> <?php echo tep_draw_fckeditor('pages_body[' . $languages[$i]['id'] . ']','600','600',(isset($products_description[$languages[$i]['id']]) ? stripslashes($pages_body[$languages[$i]['id']]) : tep_get_pages_body($pInfo->pages_id, $languages[$i]['id']))); ?> <?php // echo tep_draw_textarea_field('pages_body[' . $languages[$i]['id'] . ']', 'soft', '60', '15', (isset($pages_body[$languages[$i]['id']]) ? $pages_body[$languages[$i]['id']] : tep_get_pages_body($pInfo->pages_id, $languages[$i]['id']))); ?></td> </tr> </table></td> </tr> <?php } ?> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_SORT_ORDER; ?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('sort_order', $pInfo->sort_order); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main" align="right"><?php echo tep_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' <a href="' . tep_href_link(FILENAME_PAGES, (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : '')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> </tr> </table></form> <?php } elseif ($action == 'new_page_preview') { if (tep_not_null($HTTP_POST_VARS)) { $pInfo = new objectInfo($HTTP_POST_VARS); $pages_name = $HTTP_POST_VARS['pages_name']; $pages_title = $HTTP_POST_VARS['pages_title']; $pages_body = $HTTP_POST_VARS['pages_body']; } else { $page_query = tep_db_query("select p.pages_id, p.pages_name, p.pages_status, p.pages_image, p.sort_order, pd.language_id, pd.pages_title, pd.pages_body from " . TABLE_PAGES . " p, " . TABLE_PAGES_DESCRIPTION . " pd where p.pages_id = pd.pages_id and p.pages_id = '" . (int)$HTTP_GET_VARS['pID'] . "'"); $page = tep_db_fetch_array($page_query); $pInfo = new objectInfo($page); $pages_image_name = $pInfo->pages_image; } $form_action = (isset($HTTP_GET_VARS['pID'])) ? 'update_page' : 'insert_page'; echo tep_draw_form($form_action, FILENAME_PAGES, 'action=' . $form_action . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : ''), 'post', 'enctype="multipart/form-data"'); $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { if (isset($HTTP_GET_VARS['read']) && ($HTTP_GET_VARS['read'] == 'only')) { $pInfo->pages_title = tep_get_pages_title($pInfo->pages_id, $languages[$i]['id']); $pInfo->pages_body = tep_get_pages_body($pInfo->pages_id, $languages[$i]['id']); } else { $pInfo->pages_title = tep_db_prepare_input($pages_title[$languages[$i]['id']]); $pInfo->pages_body = tep_db_prepare_input($pages_body[$languages[$i]['id']]); } ?> <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 tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . $pInfo->pages_title; ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><?php echo tep_image(DIR_WS_CATALOG_IMAGES . $pages_image_name, $pInfo->pages_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . nl2br($pInfo->pages_body); ?></td> </tr> <?php } if (isset($HTTP_GET_VARS['read']) && ($HTTP_GET_VARS['read'] == 'only')) { if (isset($HTTP_GET_VARS['origin'])) { $pos_params = strpos($HTTP_GET_VARS['origin'], '?', 0); if ($pos_params != false) { $back_url = substr($HTTP_GET_VARS['origin'], 0, $pos_params); $back_url_params = substr($HTTP_GET_VARS['origin'], $pos_params + 1); } else { $back_url = $HTTP_GET_VARS['origin']; $back_url_params = ''; } } else { $back_url = FILENAME_PAGES; $back_url_params = 'pID=' . $pInfo->pages_id; } ?> <tr> <td align="right"><?php echo '<a href="' . tep_href_link($back_url, $back_url_params, 'NONSSL') . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td> </tr> <?php } else { ?> <tr> <td align="right" class="smallText"> <?php /* Re-Post all POST'ed variables */ reset($HTTP_POST_VARS); while (list($key, $value) = each($HTTP_POST_VARS)) { if (!is_array($HTTP_POST_VARS[$key])) { echo tep_draw_hidden_field($key, htmlspecialchars(stripslashes($value))); } } $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { echo tep_draw_hidden_field('pages_title[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($pages_title[$languages[$i]['id']]))); echo tep_draw_hidden_field('pages_body[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($pages_body[$languages[$i]['id']]))); } echo tep_draw_hidden_field('pages_image', stripslashes($pages_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_PAGES, (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> </tr> </table></td> </tr> <tr> <td><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"><?php echo TABLE_HEADING_PAGE_NAME; ?></td> <td class="dataTableHeadingContent" align="left"><?php echo TABLE_HEADING_PAGE_TITLE; ?></td> <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_PAGE_STATUS; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td> </tr> <?php $pages_count = 0; $pages_query = tep_db_query("select p.pages_id, p.pages_name, p.pages_image, p.pages_status, p.sort_order, pd.pages_title from " . TABLE_PAGES . " p, " . TABLE_PAGES_DESCRIPTION . " pd where p.pages_id = pd.pages_id and pd.language_id = '" . (int)$languages_id . "' order by p.sort_order"); while ($pages = tep_db_fetch_array($pages_query)) { $pages_count++; $rows++; if ( (!isset($HTTP_GET_VARS['pID']) || (isset($HTTP_GET_VARS['pID']) && ($HTTP_GET_VARS['pID'] == $pages['pages_id']))) && !isset($pInfo) && (substr($action, 0, 3) != 'new')) { $pInfo = new objectInfo($pages); } if (isset($pInfo) && is_object($pInfo) && ($pages['pages_id'] == $pInfo->pages_id) ) { echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_PAGES, 'pID=' . $pages['pages_id'] . '&action=new_page_preview&read=only') . '\'">' . "\n"; } else { echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_PAGES, 'pID=' . $pages['pages_id']) . '\'">' . "\n"; } ?> <td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_PAGES, 'pID=' . $pages['pages_id'] . '&action=new_page_preview&read=only') . '">' . tep_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a> ' . $pages['pages_name']; ?></td> <td class="dataTableContent"><?php echo $pages['pages_title']; ?></td> <td class="dataTableContent" align="center"> <?php if ($pages['pages_status'] == '1') { echo tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10) . ' <a href="' . tep_href_link(FILENAME_PAGES, 'action=setflag&flag=0&pID=' . $pages['pages_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', IMAGE_ICON_STATUS_RED_LIGHT, 10, 10) . '</a>'; } else { echo '<a href="' . tep_href_link(FILENAME_PAGES, 'action=setflag&flag=1&pID=' . $pages['pages_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', IMAGE_ICON_STATUS_GREEN_LIGHT, 10, 10) . '</a> ' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10); } ?> </td> <td class="dataTableContent" align="right"><?php if (isset($pInfo) && is_object($pInfo) && ($pages['pages_id'] == $pInfo->pages_id)) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_PAGES, 'pID=' . $pages['pages_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td> </tr> <?php } ?> <tr> <td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo TEXT_PAGES . ' ' . $pages_count; ?></td> <td align="right" class="smallText"><?php echo '<a href="' . tep_href_link(FILENAME_PAGES, 'action=new_page') . '">' . tep_image_button('button_new_page.gif', IMAGE_NEW_PAGE) . '</a>'; ?> </td> </tr> </table></td> </tr> </table></td> <?php $heading = array(); $contents = array(); switch ($action) { case 'delete_page': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_PAGE . '</b>'); $contents = array('form' => tep_draw_form('pages', FILENAME_PAGES, 'action=delete_page_confirm') . tep_draw_hidden_field('pages_id', $pInfo->pages_id)); $contents[] = array('text' => TEXT_DELETE_PAGE_INTRO); $contents[] = array('text' => '<br><b>' . $pInfo->pages_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_PAGES, 'pID=' . $pInfo->pages_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (isset($pInfo) && is_object($pInfo)) { // page info box contents $heading[] = array('text' => '<b>' . tep_get_pages_title($pInfo->pages_id, $languages_id) . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_PAGES, 'pID=' . $pInfo->pages_id . '&action=new_page') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_PAGES, 'pID=' . $pInfo->pages_id . '&action=delete_page') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>'); $contents[] = array('text' => '<br>' . TEXT_PAGES_NAME . ' ' . $pInfo->pages_name); $contents[] = array('text' => '<br>' . tep_info_image($pInfo->pages_image, $pInfo->pages_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br>' . $pInfo->pages_image); $contents[] = array('text' => '<br>' . TEXT_SORT_ORDER . ' ' . $pInfo->sort_order); } 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> </table></td> </tr> </table> <?php } ?> </td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  18. e-peoples

    FCK WYSIWYG HTML editor

    Please forget my last post (empty) ... don`t know, what went wrong! Hey Spooks, thanks for your urgend reply. This is too much code for here ... so I link to a pdf with the "categories.php"code. BTW I´ve modified several oscommerce sites to normal CMS (without shop ... f.e. www.dr.holl.de, www.saegewerk-wich.de etc.) My site www.wieden.com is also modified, but this is not the site I`m talking about. If you want, you can take a look at www.gstgmbh.de/sicherheit/index.php This is the site, I currently mean. Here are the two snippets I mean: Products Description - Works <tr> <td class="main" valign="top"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td> <td class="main"><?php //echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']','600','500',(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); echo tep_draw_fckeditor('products_description[' . $languages[$i]['id'] . ']','600','500',(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td> </tr> Categories Description - Destroys updates (The manual inputs sent to database are perfect, but when I try to update, everything is gone) <tr> <td class="main"><?php echo tep_draw_textarea_field('categories_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (($categories_description[$languages[$i]['id']]) ? stripslashes($categories_description[$languages[$i]['id']]) : tep_get_category_description($cInfo->categories_id, $languages[$i]['id']))); ?> <?php // echo tep_draw_fckeditor('categories_description[' . $languages[$i]['id'] . ']','600','300',(isset($categories_description[$languages[$i]['id']]) ? stripslashes($categories_description[$languages[$i]['id']]) : tep_get_category_description($pInfo->categories_id, $languages[$i]['id']))); ?></td> </tr> Here the link to the pdf Thanks again Mitch
  19. e-peoples

    FCK WYSIWYG HTML editor

    Hey to all, and first thanks for that support and these quick replies. Now to my problem. I`ve installed the latest FCK 2.6.3 in oscommerce (prod.description , cat.description). First everything seems to work fine. But when I do an update in the category description, the text ist gone. Not so in Product Description. And the best ist ... when i see the Form-Field without FCK, the code ist there. Best ... see picture below. Anyone an idea about the reason? Thanks for your attention! Mitch
  20. e-peoples

    Basic Design Pack Support

    Hey toyicebear, I added several contribs before Basic Design Pack. So ist was some work to change everything manualy. Now only two things do not work. Maybe you can help me. Box Categories: 1. When I click a category, the arrow_right remains instead of arrow_down. 2. Same click, the text remains "regular" instead of "Bold" (active Category) The Website: www.glaub-an-dich.de/catalog It is not my own shop, it is a shop of a customer of mine, an is test-status yet. ! If you need more Information, please ask! Thanks a lot! Best regards Michael
×