Jump to content

puvens

Members
  • Content count

    17
  • Joined

  • Last visited

  1. puvens

    NEW! Complete Order Editing Tool!

    in edit_orders.php, the line 305 is: from products_options po, products_options_values pov, products_options_values_to_products_options po2pov, orders_products_attributes opa, orders_products op and line 201 is: //Send text email
  2. puvens

    NEW! Complete Order Editing Tool!

    surfalot: I got that problem to, and also I have your version 5.09b (28 feb 2010) : 1146 - Table 'test_oscommerce.eorder_text' doesn't exist SELECT * FROM eorder_text where eorder_text_id = '2' and language_id = '4' that message only shows when i choose "new order confirmation" and then "update" without ajax (if i onlu push on "update" without "neworderconfirm" checked, it works fine) With ajax "allow the use of ajax to update order information" set to true i get this message: (i have qtpro 4.51a+ alots a bugfixs installed) (i have "send admin html e-mails 1.5") Message: Odefinierat fel Rad: 305 Tecken: 3 Kod: 0 URI: http://www.xxxxx.se/admin/edit_orders.php?oID=39&osCAdminID=54720248574e1be4b1005968b06746dc and Message: Unknown runtime error Rad: 201 Tecken: 3 Kod: 0 URI: http://www.xxxxx.se/admin/edit_orders.php?oID=39&osCAdminID=54720248574e1be4b1005968b06746dc Do you have any ideas how i can solve this problems?
  3. in admin/includes/language files you forgot the "?>"
  4. puvens

    Sitemap SEO

    hmmm, i found the answer in "post #54" I believed i´d read them all, but obviously i missed that post
  5. puvens

    Sitemap SEO

    I remember that i also did that change in file category_tree.php
  6. puvens

    Sitemap SEO

    hi i also have that issue to and i found that you change in "include/classes/category_tree_no_products.php search for this line: $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from and put in: and c.categories_status = '1' so it looks like this: $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c left join " . TABLE_CATEGORIES_DESCRIPTION . " cd on c.categories_id = cd.categories_id and c.categories_status = '1' where cd.language_id = '" . (int)$languages_id . "' order by c.parent_id, c.sort_order, cd.categories_name"); thats worked for me but i didnt found where to change for noproducts in manufactures. Anyone who knows??? /Peter
  7. puvens

    ULTIMATE Seo Urls 5 - by FWR Media

    How do i get the manufacturername "levis" at the beginning of the url? like this hxxp // xxxxx.com/levis-pants-p-103.html
  8. puvens

    Shadowbox For Product_Info.php

    i got the contrib working It´s really Looks Great GOOD JOB Wayne I have the newsdesk_1.51 installed there I put the text and pictures thru the database to be viewed at the first page "index.php". Its only the newest one, that shows on the index, the rest is showing in the "newsdesk" box in column_left. Now, my problem is they pictures in the index and the newsdesk-box I cant get to work with shadows. I was testing in "newsdesk_info" "newsdesk_index" and in "index", to do such i did in product_info.php like it says in shadows installfile Any idea´s what file i should put the code in , , , someone???
  9. *netley* hi darren Did you found any solution to this problem??? i got this problem my self if not do anyone else know how to do?? /Peter
  10. When you going into the store and look at the carousel, it shows all products, in my case clothe´s then when you click on , , skirts, , for just looking on just that particular skirt, , , the carousel just showing skirts, , , that´s not good i think, , , , because if you only have 2-3 skirts in your store, , it seem´s a little bit poor i hope you understand what im trying to say :rolleyes: how can i fix the code that it´s Showing All clothes all the time? can anyone help me with that?
  11. Ok , Now is the image carousel centered and up of the top in the head :rolleyes: Thanks for the direction you gave me, it was very helping :thumbsup: i was sitting alots of hours, But i Solved the problem if any other have that problem i had, I put up my code, so you can compare your code with mine! <?php /* $Id: header.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <?php // BOF: WebMakers.com Added: Center Shop // This goes before any other table of the shop if ( CENTER_SHOP_ON=='1' ) { // Is a bgroundcolor set for around the shop if ( CENTER_SHOP_BACKGROUND_ON=='1' ) { ?> <table width="100%" cellpadding="<?php echo CENTER_SHOP_PADDING; ?>" cellspacing="0" border="0" bgcolor="<?php echo CENTER_SHOP_BACKGROUND_COLOR_OUT; ?>"> <tr><td> <?php } // Center the shop to what size and what bgcolor ?> <table CELLSPACING="2" CELLPADDING="0" BORDER="2" width="<?php echo CENTER_SHOP_WIDTH; ?>" align="center" BGCOLOR="<?php echo CENTER_SHOP_BACKGROUND_COLOR; ?>"> <tr><td BGColor="ffffff"> <?php } // The rest of the <td> at the end of the footer // EOF: WebMakers.com Added: Center Shop ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <?php // Defined image and link from center_shop.php ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle" width="32%"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'image3.gif', STORE_NAME) . '</a>';?></td> <td align="center" valign="middle"> <?php if ( DISPLAY_SCROLLING_HEADER_PRODUCTS > 0 ) { ?> <table border="0" align="left" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="middle"><script type="text/javascript"> //Specify the slider's width (in pixels) var sliderwidth="330"; //Specify the slider's height var sliderheight="75"; //Specify the slider's slide speed (larger is faster 1-10) var slidespeed=2; //configure background color: slidebgcolor="#000000"; //Specify the slider's images var leftrightslide=new Array(); var finalslide=''; <?php $union = array(); $union[] = "SELECT p2c.products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." p2c WHERE p2c.categories_id='".$current_category_id."'"; # Get the subcategory ID's # $sub_cats parameter will be populated with subcategory ID's tep_get_subcategories($sub_cats, $current_category_id); # Loop the $sub_cats array and start compiling the UNION query if (!empty($sub_cats)) { foreach ($sub_cats as $index => $cat_id){ $union[] = "SELECT p2c.products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." p2c WHERE p2c.categories_id='".$cat_id."'"; } } # implode the UNION query to get the final string $union_str = implode(" UNION ", $union) . " ORDER BY products_id desc"; # unset some stuff...clean as we go unset($sub_cats, $union); # execute the query $products_id_query = tep_db_query($union_str); # Loop the array and populate the $prod_array with product ID's while($prods = tep_db_fetch_array($products_id_query)){ $prod_array[] = $prods['products_id']; } # free the result...clean as we go tep_db_free_result($products_id_query); $header_products_query = tep_db_query("select p.products_id, p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id in ('" . implode("', '", $prod_array) . "') and p.products_id = pd.products_id order by rand() limit " . DISPLAY_SCROLLING_HEADER_PRODUCTS); $x = 0; $height = 75; $totalwidth = 0; while ( $header_products = tep_db_fetch_array($header_products_query) ) { $width = 75; // Get the image's information: if ($image_size = @getimagesize(DIR_WS_IMAGES . $header_products['products_image'])) { $ratio = $image_size[0] / $image_size[0]; // Scale the image if larger than the set width or height: if ($image_size[0] > $width || $image_size[0] > $height) { $rx = $image_size[0] / $width; $ry = $image_size[0] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } } $totalwidth += $width; } $alt = str_replace("'","\'",$header_products['products_name']); echo ' leftrightslide[' . $x++ . ']=\'<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $header_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $header_products['products_image'], $alt, $width, $height, 'valign="middle"') . '</a>\';' . "\n"; } ?> // if (sliderwidth > <?php echo $totalwidth; ?>) // sliderwidth = <?php echo $totalwidth; ?>; //Specify gap between each image (use HTML) var imagegap=" "; //Specify pixels gap between each slideshow rotation (use integer): var slideshowgap=0; var copyspeed=slidespeed; leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'; var iedom=document.all||document.getElementById; if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>'); var actualwidth=''; var cross_slide, ns_slide; function fillup() { if (iedom) { cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2; cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3; cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide; actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth; cross_slide2.style.left=actualwidth+slideshowgap+"px"; } else if (document.layers) { ns_slide=document.ns_slidemenu.document.ns_slidemenu2; ns_slide2=document.ns_slidemenu.document.ns_slidemenu3; ns_slide.document.write(leftrightslide); ns_slide.document.close(); actualwidth=ns_slide.document.width; ns_slide2.left=actualwidth+slideshowgap; ns_slide2.document.write(leftrightslide); ns_slide2.document.close(); } lefttime=setInterval("slideleft()",30); } window.onload=fillup; function slideleft() { if (iedom) { if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)) cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"; else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"; if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)) cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"; else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"; } else if (document.layers) { if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed; else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap; if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed; else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap; } } if (iedom||document.layers) { with (document) { write('<table border="0" cellspacing="0" cellpadding="0"><td>'); if (iedom) { write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">'); write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">'); write('<div id="test2" style="position:absolute;right:0px;top:0px"></div>'); write('<div id="test3" style="position:absolute;right:0px;top:0px"></div>'); write('</div></div>'); } else if (document.layers) { write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>'); write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('</ilayer>'); } document.write('</td></table>'); } } </script></td> </tr> </table> <?php } ?> <td align="middle" valign="bottom" width="20%"> <?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> </tr> </table> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td> </tr> </table> <?php } ?>
  12. i moved the code around for a while, and was able to move up the "image carousel", , , , , But Not centered what can i do to make it happen? i really dont know what im gonna do next, , , , maybe is it like that the carousel doesnt working whit other contribs, such "centershop" background image anyway, , , i put up some picture how it looks right now and here´s my code again <?php /* $Id: header.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <?php // BOF: WebMakers.com Added: Center Shop // This goes before any other table of the shop if ( CENTER_SHOP_ON=='1' ) { // Is a bgroundcolor set for around the shop if ( CENTER_SHOP_BACKGROUND_ON=='1' ) { ?> <table width="100%" cellpadding="<?php echo CENTER_SHOP_PADDING; ?>" cellspacing="0" border="0" bgcolor="<?php echo CENTER_SHOP_BACKGROUND_COLOR_OUT; ?>"> <tr><td> <?php } // Center the shop to what size and what bgcolor ?> <table CELLSPACING="2" CELLPADDING="0" BORDER="2" width="<?php echo CENTER_SHOP_WIDTH; ?>" align="center" BGCOLOR="<?php echo CENTER_SHOP_BACKGROUND_COLOR; ?>"> <tr><td BGColor="ffffff"> <?php } // The rest of the <td> at the end of the footer // EOF: WebMakers.com Added: Center Shop ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <?php // Defined image and link from center_shop.php ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="left"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'image3.gif', STORE_NAME) . '</a>';?></td> <td align="right" valign="top"> <?php if ( DISPLAY_SCROLLING_HEADER_PRODUCTS > 0 ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr> <td align="left" valign="middle"><script type="text/javascript"> //Specify the slider's width (in pixels) var sliderwidth="300"; //Specify the slider's height var sliderheight="65"; //Specify the slider's slide speed (larger is faster 1-10) var slidespeed=2; //configure background color: slidebgcolor="#000000"; //Specify the slider's images var leftrightslide=new Array(); var finalslide=''; <?php $union = array(); $union[] = "SELECT p2c.products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." p2c WHERE p2c.categories_id='".$current_category_id."'"; # Get the subcategory ID's # $sub_cats parameter will be populated with subcategory ID's tep_get_subcategories($sub_cats, $current_category_id); # Loop the $sub_cats array and start compiling the UNION query if (!empty($sub_cats)) { foreach ($sub_cats as $index => $cat_id){ $union[] = "SELECT p2c.products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." p2c WHERE p2c.categories_id='".$cat_id."'"; } } # implode the UNION query to get the final string $union_str = implode(" UNION ", $union) . " ORDER BY products_id desc"; # unset some stuff...clean as we go unset($sub_cats, $union); # execute the query $products_id_query = tep_db_query($union_str); # Loop the array and populate the $prod_array with product ID's while($prods = tep_db_fetch_array($products_id_query)){ $prod_array[] = $prods['products_id']; } # free the result...clean as we go tep_db_free_result($products_id_query); $header_products_query = tep_db_query("select p.products_id, p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id in ('" . implode("', '", $prod_array) . "') and p.products_id = pd.products_id order by rand() limit " . DISPLAY_SCROLLING_HEADER_PRODUCTS); $x = 0; $height = 65; $totalwidth = 0; while ( $header_products = tep_db_fetch_array($header_products_query) ) { $width = 65; // Get the image's information: if ($image_size = @getimagesize(DIR_WS_IMAGES . $header_products['products_image'])) { $ratio = $image_size[0] / $image_size[0]; // Scale the image if larger than the set width or height: if ($image_size[0] > $width || $image_size[0] > $height) { $rx = $image_size[0] / $width; $ry = $image_size[0] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } } $totalwidth += $width; } $alt = str_replace("'","\'",$header_products['products_name']); echo ' leftrightslide[' . $x++ . ']=\'<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $header_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $header_products['products_image'], $alt, $width, $height, 'valign="middle"') . '</a>\';' . "\n"; } ?> // if (sliderwidth > <?php echo $totalwidth; ?>) // sliderwidth = <?php echo $totalwidth; ?>; //Specify gap between each image (use HTML) var imagegap=" "; //Specify pixels gap between each slideshow rotation (use integer): var slideshowgap=0; var copyspeed=slidespeed; leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'; var iedom=document.all||document.getElementById; if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>'); var actualwidth=''; var cross_slide, ns_slide; function fillup() { if (iedom) { cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2; cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3; cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide; actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth; cross_slide2.style.left=actualwidth+slideshowgap+"px"; } else if (document.layers) { ns_slide=document.ns_slidemenu.document.ns_slidemenu2; ns_slide2=document.ns_slidemenu.document.ns_slidemenu3; ns_slide.document.write(leftrightslide); ns_slide.document.close(); actualwidth=ns_slide.document.width; ns_slide2.left=actualwidth+slideshowgap; ns_slide2.document.write(leftrightslide); ns_slide2.document.close(); } lefttime=setInterval("slideleft()",30); } window.onload=fillup; function slideleft() { if (iedom) { if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)) cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"; else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"; if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)) cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"; else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"; } else if (document.layers) { if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed; else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap; if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed; else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap; } } if (iedom||document.layers) { with (document) { write('<table border="0" cellspacing="0" cellpadding="0"><td>'); if (iedom) { write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">'); write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">'); write('<div id="test2" style="position:absolute;right:0px;top:0px"></div>'); write('<div id="test3" style="position:absolute;right:0px;top:0px"></div>'); write('</div></div>'); } else if (document.layers) { write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>'); write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('</ilayer>'); } document.write('</td></table>'); } } </script></td></center> </tr> </table> <?php } ?> <?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> </tr> </table> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td> </tr> </table> <?php } ?>
  13. i have look a little bit of that code, , ,but i really dont understand, , , , , i change a few things but no luck i put out my code, so you can take a look at it, , , <?php /* $Id: header.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <?php // BOF: WebMakers.com Added: Center Shop // This goes before any other table of the shop if ( CENTER_SHOP_ON=='1' ) { // Is a bgroundcolor set for around the shop if ( CENTER_SHOP_BACKGROUND_ON=='1' ) { ?> <table width="100%" cellpadding="<?php echo CENTER_SHOP_PADDING; ?>" cellspacing="0" border="0" bgcolor="<?php echo CENTER_SHOP_BACKGROUND_COLOR_OUT; ?>"> <tr><td> <?php } // Center the shop to what size and what bgcolor ?> <table CELLSPACING="2" CELLPADDING="0" BORDER="2" width="<?php echo CENTER_SHOP_WIDTH; ?>" align="center" BGCOLOR="<?php echo CENTER_SHOP_BACKGROUND_COLOR; ?>"> <tr><td BGColor="ffffff"> <?php } // The rest of the <td> at the end of the footer // EOF: WebMakers.com Added: Center Shop ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <?php // Defined image and link from center_shop.php ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="left"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'image3.gif', STORE_NAME) . '</a>';?> <?php if ( DISPLAY_SCROLLING_HEADER_PRODUCTS > 0 ) { ?> <table border="0" width="100%" align="center" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="middle"><script type="text/javascript"> //Specify the slider's width (in pixels) var sliderwidth="200"; //Specify the slider's height var sliderheight="50"; //Specify the slider's slide speed (larger is faster 1-10) var slidespeed=2; //configure background color: slidebgcolor="#000000"; //Specify the slider's images var leftrightslide=new Array(); var finalslide=''; <?php $union = array(); $union[] = "SELECT p2c.products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." p2c WHERE p2c.categories_id='".$current_category_id."'"; # Get the subcategory ID's # $sub_cats parameter will be populated with subcategory ID's tep_get_subcategories($sub_cats, $current_category_id); # Loop the $sub_cats array and start compiling the UNION query if (!empty($sub_cats)) { foreach ($sub_cats as $index => $cat_id){ $union[] = "SELECT p2c.products_id FROM ".TABLE_PRODUCTS_TO_CATEGORIES." p2c WHERE p2c.categories_id='".$cat_id."'"; } } # implode the UNION query to get the final string $union_str = implode(" UNION ", $union) . " ORDER BY products_id desc"; # unset some stuff...clean as we go unset($sub_cats, $union); # execute the query $products_id_query = tep_db_query($union_str); # Loop the array and populate the $prod_array with product ID's while($prods = tep_db_fetch_array($products_id_query)){ $prod_array[] = $prods['products_id']; } # free the result...clean as we go tep_db_free_result($products_id_query); $header_products_query = tep_db_query("select p.products_id, p.products_image, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id in ('" . implode("', '", $prod_array) . "') and p.products_id = pd.products_id order by rand() limit " . DISPLAY_SCROLLING_HEADER_PRODUCTS); $x = 0; $height = 50; $totalwidth = 0; while ( $header_products = tep_db_fetch_array($header_products_query) ) { $width = 65; // Get the image's information: if ($image_size = @getimagesize(DIR_WS_IMAGES . $header_products['products_image'])) { $ratio = $image_size[0] / $image_size[0]; // Scale the image if larger than the set width or height: if ($image_size[0] > $width || $image_size[0] > $height) { $rx = $image_size[0] / $width; $ry = $image_size[0] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } } $totalwidth += $width; } $alt = str_replace("'","\'",$header_products['products_name']); echo ' leftrightslide[' . $x++ . ']=\'<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $header_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $header_products['products_image'], $alt, $width, $height, 'valign="middle"') . '</a>\';' . "\n"; } ?> // if (sliderwidth > <?php echo $totalwidth; ?>) // sliderwidth = <?php echo $totalwidth; ?>; //Specify gap between each image (use HTML) var imagegap=" "; //Specify pixels gap between each slideshow rotation (use integer): var slideshowgap=0; var copyspeed=slidespeed; leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'; var iedom=document.all||document.getElementById; if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>'); var actualwidth=''; var cross_slide, ns_slide; function fillup() { if (iedom) { cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2; cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3; cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide; actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth; cross_slide2.style.left=actualwidth+slideshowgap+"px"; } else if (document.layers) { ns_slide=document.ns_slidemenu.document.ns_slidemenu2; ns_slide2=document.ns_slidemenu.document.ns_slidemenu3; ns_slide.document.write(leftrightslide); ns_slide.document.close(); actualwidth=ns_slide.document.width; ns_slide2.left=actualwidth+slideshowgap; ns_slide2.document.write(leftrightslide); ns_slide2.document.close(); } lefttime=setInterval("slideleft()",30); } window.onload=fillup; function slideleft() { if (iedom) { if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)) cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"; else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowga p+"px"; if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)) cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"; else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowga p+"px"; } else if (document.layers) { if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed; else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap; if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed; else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap; } } if (iedom||document.layers) { with (document) { write('<table border="0" cellspacing="0" cellpadding="0"><td>'); if (iedom) { write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">'); write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">'); write('<div id="test2" style="position:absolute;right:0px;top:0px"></div>'); write('<div id="test3" style="position:absolute;right:0px;top:0px"></div>'); write('</div></div>'); } else if (document.layers) { write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>'); write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>'); write('</ilayer>'); } document.write('</td></table>'); } } </script></td></center> </tr> </table> <?php } ?> </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> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> </tr> </table> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td> </tr> </table> <?php } ?>
  14. hello i have problem to put up the scrolling carusel to the top of the header do anywone know the solution on this problem i send a snapscreen so yo can see
×