Jump to content

Gyakutsuki

♥Ambassador
  • Content count

    727
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by Gyakutsuki

  1. Gyakutsuki

    Horizontal Nav Bar / Navigationmenu

    try superfish.
  2. why complicate life when it is so simple !!!

  3. Pikes Peaks : go Sebastien Loeb it's now : http://goo.gl/NJh8 After it's to late !!

    1. Gyakutsuki

      Gyakutsuki

      Record explosed 8:10

    2. tgely

      tgely

      crazy cool

  4. Smile getting up allows you to have a better life

    1. GLWalker

      GLWalker

      Not if you need to catch up on sleep.

  5. Come back To Montreal, 29° tomorrow, incredible !

  6. Go Back In South if France for 1 Month. To me the girls, the sea :)

  7. Analyse on the best ecommerce plateform : http://goo.gl/kzdC8

  8. There are days like this !

  9. 30 cm of snow ! Again one time before the end ? That's the question !

    1. MrPhil

      MrPhil

      No thanks, I had groundhog for lunch. Tastes like chicken.

    2. joli1811

      joli1811

      confused is it the 22nd again

    3. joli1811

      joli1811

      Power blackout in Ireland tonight summer is coming but sort of not working guess somebody got the data base query wrong !!

       

    4. Show next comments  33 more
  10. -50° at Montréal ! No, it's not true :)

  11. is it oscommerce add on ? : http://addons.oscommerce.com/info/7679

    1. tgely

      tgely

      Np. My addon is bad too.

    2. Gyakutsuki

      Gyakutsuki

      It's not better to write something (win time for users) for information : http://goo.gl/wJytJ

    3. joli1811

      joli1811

      Got it working

      (harborhoffer) see profile

    4. Show next comments  33 more
  12. Gyakutsuki

    Mapping import

    Module updated, little bugs identified ar now revolved. note : screenshot included in the package. Your return will be appreciate.
  13. Gyakutsuki

    Mapping import

    This is the first release of of mapping importation in oscommerce. He is very easily to instal and if you want for example to import a prestashop database inside oscommerce, it's possible. This topic is created to improve this module. you can find this module here if you want to test Note : you must becarefull with the language id, for the moment the language id must be the same oscommerce database and the import files. this add on is available here : http://addons.oscommerce.com/info/8660
  14. Gyakutsuki

    B2B Data Mapping for import abilities

    you can try that : mapping import http://forums.oscommerce.com/topic/390873-mapping-import/ or other add on
  15. Gyakutsuki

    Automatic Currency adjustment by continent

    how about application_top.php No I compare rapidly your files : general and application_top with original osc, I see nothing.
  16. Gyakutsuki

    Automatic Currency adjustment by continent

    This can be added to detect the language as well ===> Oscommerce do that well. Dolphin, I don't understand what's your problem with general.php ? There is no relation. I test and it work fine on my site. I see nothing on your file for me, maybe the problem can come on your hosting or you do a little error.
  17. Gyakutsuki

    Automatic Currency adjustment by continent

    Example you can do with this contribution You don't want to sell the product the same price on the differents continents, or country This contribution can do that. In currencies section on oscommerce, you can update your currencies or you can change also the amount of conversion. If a customer come from America and clic on french flag, it will see only the price in US and not in EURO. it's impossible for him to compare the price and see the difference Lot big site has this marketing approach. Also lot of persons don't see that, but lot of site change the price if they come with desktop or mobile phone. It consider to create a mobile phone website cost money, and it change the price in function. For example, with this contribution, you can modify the newsletter and send a specific newsletter by continent, country .... ==> that's another marketing approach. the marketing communication approach is not the same in england and America Another exemple, In oder, you can see the address on google map, ip informaton (there is another contribution on that) .... Just a little update this contrib and you can have a lot of informations on your customer for verification or to developp your marketing.
  18. Gyakutsuki

    Automatic Currency adjustment by continent

    in your configure.php : add this define('DIR_FS_CACHE', DIR_FS_CATALOG . 'cache/'); Don't forget to give 777 (recursive) in your geolocalisation directory
  19. Hi robert, my problem is the search in french (boxe search). For example the word supérieur is rewrite suprieur. The é is deleted. If i add é in $language_characters = 'äåæðëöøßþüÿÄÅÆÐËÖØÞÜé'; The research would be good, no ? function cleanseValueString( $string ) { $banned_string_pattern = '@GLOBALS|_REQUEST|base64_encode|UNION|%3C|%3E@i'; // Apply the whitelist // Multi language mod $language_characters = 'äåæðëöøßþüÿÄÅÆÐËÖØÞÜ'; $cleansed = preg_replace ( "/[^\s{}a-z0-9_\.\-@$language_characters]/i", "", urldecode ( $string ) ); // Remove banned words $cleansed = preg_replace ( $banned_string_pattern, '', $cleansed ); // Ensure that a clever hacker hasn't gained himself a naughty double hyphen -- after our cleansing return preg_replace ( '@[-]+@', '-', $cleansed ); } // end method
  20. Hi Robert, This function function cleanseValueString( $string ) { replace the old function function spro_cleanse_get_recursive( $get ) ? ??? when i try to search for example with a word supérieur ==> the research write suprieur with the new function Thank you very for this update and your work +
  21. Gyakutsuki

    pop up country

    Heelo, I try ti insert in my website a pop up country. When the customer arrive in my website, a pop up appear and the customer must choose if it want go in USA store, french store, ou canadian strore for example. My pb is the cookie, When i click on my webpage store, the pop up appear always or, this pop up must appear only one time, when the customer arrive on my website. there the code Do you have an idea with the cookie ? I think the pb is here. Thanks Regards, <script type="text/javascript"> $(function() { $("#modal_country_selector").dialog({ modal: true, draggable: false, stack: false, zIndex: 15000, width: 560, height: 400 }); }); function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else { var expires = ""; } document.cookie = name + "=" + value + expires + "; path=/"; } function selectLanguageData(lang, country) { var currentLanguage = 'CA'; if (lang == currentLanguage) { createCookie('country_bind', country, 10); $("#modal_country_selector").dialog("close"); $("#modal_country_selector").dialog("destroy"); } else { if (country == 'USA') { //location.href = '/boutique/index.php?language=en'; return true; } else { if (lang == 'FR') { return true; //location.href = '/boutique/index.php?language=fr'; } else { return true; //location.href = '/boutique/'; } } } return false; } </script> <style> .popup_countries { background: url("/logo.jpg") no-repeat scroll 0 0 transparent; border: 1px solid #000000; font-family: "Trebuchet MS",Arial,Helvetica,sans-serif; height: 360px; position: relative; text-align: left; text-transform: uppercase; width: 540px; } .popup_countries .text_mark1 { color: #646464; font-size: 12px; height: 33px; left: 0; line-height: 33px; overflow: hidden; position: absolute; text-align: center; top: 82px; width: 269px; } .popup_countries .text_mark2 { color: #646464; font-size: 12px; height: 33px; line-height: 33px; overflow: hidden; position: absolute; right: 0; text-align: center; top: 82px; width: 270px; } .popup_countries .lng_sel { color: #000000; font-size: 14px; font-weight: bold; } .popup_countries .lng_sel a { color: #000000; text-decoration: none; } .popup_countries .lng_sel a:hover { color: #000000; text-decoration: underline; } .popup_countries .lng_sel1 { left: 0; position: absolute; text-align: center; top: 149px; width: 179px; } .popup_countries .lng_sel2 { left: 100px; position: absolute; text-align: center; top: 149px; width: 180px; } .popup_countries .lng_sel3 { left : 200px; position: absolute; right: 0; text-align: center; top: 148px; width: 179px; } .popup_countries .lng_sel4 { left : 300px; position: absolute; right: 0; text-align: center; top: 148px; width: 179px; } </style> <div style="display: block; z-index: 1502; outline: 0px none; position: absolute; height: auto; width: 540px; top: 182px; left: 424px;" class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-resizable" tabindex="-1" role="dialog" aria-labelledby="ui-dialog-title-modal_country_selector"><div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"><span class="ui-dialog-title" id="ui-dialog-title-modal_country_selector"> </span><a href="#" class="ui-dialog-titlebar-close ui-corner-all" role="button"><span class="ui-icon ui-icon-closethick">close</span></a></div><div style="width: auto; min-height: 0px; height: 360px;" id="modal_country_selector" class="ui-dialog-content ui-widget-content"> <div class="popup_countries"> <div class="text_mark1">CHOISIR VOTRE PAYS ET VOTRE LANGUE</div> <div class="text_mark2">SELECT YOUR COUNTRY AND LANGUAGE</div> <div class="lng_sel lng_sel1"><a onclick=" return selectLanguageData('CA', 'CAN')" href="http://www.site.com/boutique/index.php?language=en"><img width="55" height="33" alt="" src="/boutique/sources/image/icons/icon-canada.gif"/></a><br/><a onclick=" return selectLanguageData('CA', 'CAN')" href="http://www.site.com/boutique/index.php?language=en">English</a></div> <div class="lng_sel lng_sel2"><a onclick=" return selectLanguageData('FR', 'CAN')" href="http://www.site.com/boutique/"><img width="55" height="33" alt="" src="/boutique/sources/image/icons/icon-canada.gif"/></a><br/><a onclick=" return selectLanguageData('FR', 'CAN')" href="http://www.site.com/">Français</a></div> <div class="lng_sel lng_sel3"><a onclick=" return selectLanguageData('CA', 'CAN')" href="http://www.site.com/boutique/index.php?language=en"><img width="55" height="33" alt="" src="/boutique/sources/image/icons/icon-usa.gif"/></a><br/><a onclick=" return selectLanguageData('CA', 'CAN')" href="http://www.site.com/boutique/index.php?language=en">English</a></div> <div class="lng_sel lng_sel4"><a onclick=" return selectLanguageData('FR', 'FR')" href="http://www.site.fr"><img width="55" height="33" alt="" src="/boutique/sources/image/icons/icon-canada.gif"/></a><br/><a onclick=" return selectLanguageData('FR', 'FR')" href="http://www.site.fr/">Français</a></div> </div></div><div class="ui-resizable-handle ui-resizable-n"/><div class="ui-resizable-handle ui-resizable-e"/><div class="ui-resizable-handle ui-resizable-s"/><div class="ui-resizable-handle ui-resizable-w"/><div class="ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se ui-icon-grip-diagonal-se" style="z-index: 1001;"/><div class="ui-resizable-handle ui-resizable-sw" style="z-index: 1002;"/><div class="ui-resizable-handle ui-resizable-ne" style="z-index: 1003;"/><div class="ui-resizable-handle ui-resizable-nw" style="z-index: 1004;"/></div><div class="ui-widget-overlay" style="width: 1388px; height: 1005px; z-index: 1501;"/>
  22. Hello, I try to develop a mega menu, you can see the screen in attachment. my problem is the text. I am not strong in css. i think this contribution can be usefull if it works correctly. yo must adapt in function. The screen shot How to install : Before you must download this jquery script : http://www.geektantra.com/2010/05/jquery-megamenu-2/ the demo is here : http://www.geektantra.com/projects/jquery-megamenu-2/ now in your header.php: $header .= '<script type="text/javascript" src="'ext/javascript/jquery_megamenu_2_1/javascripts/jquery.megamenu.js" /></script>' . "\n"; $header .= '<script type="text/javascript">' . "\n"; $header .= 'jQuery(document).ready(function(){'; $header .= 'jQuery(".megamenu").megamenu({'; $header .= 'activate_action: "mouseover",'; $header .= 'deactivate_action: "mouseleave",'; $header .= 'show_method: "slideDown",'; $header .= 'hide_method: "slideUp",'; $header .= 'justify: "left",'; $header .= 'enable_js_shadow: false,'; $header .= 'shadow_size: 3,'; $header .= 'mm_timeout: 250'; $header .= '});'; $header .= '});' . "\n"; $header .= '</script>' . "\n"; echo $header; Now the stylesheet : <style> /* jQuery MegaMenu Plugin Author: GeekTantra Author URI: [url="http://www.geektantra.com"]http://www.geektantra.com[/url] */ div.searchMegaDropDown { float:right; padding-right:5px; padding-top:10px; padding-bottom:7px; background-color: #a39993; } div.hr, span.hr{ height: 3px; width:100%; background: #b43079; } div.hr hr { display: none; } div.backgroundPageDropDown { background-color: #a39993; height:43px; } div.PageDropDown { float:left; background-color: #a39993; } ul.megamenu { background-color: #a39993; margin: 0px auto; padding: 5px 0px 5px 0px; list-style: none; display: none; width:720px } ul.megamenu li.mm-item { background-color: #a39993; border-right: 1px solid #dadada; padding: 0 68px 0 68px; /* ecart entre les liens de categories */ } ul.megamenu li { margin: 0; padding: 0; } ul.megamenu li.clear-fix { float: none; clear: both; margin: 0; padding: 0; height: 0; font-size: 0; line-height: 0; } ul.megamenu a.mm-item-link:link, ul.megamenu a.mm-item-link:visited { position: relative; display: inline-block; color: #FFF; padding: 8px 16px; /* changer ici pour l'image et l'espacer */ margin: 0 0 0 0; text-decoration: none; text-transform:uppercase; z-index: 600; font-size: 14px; font-weight:bold; } ul.megamenu a.mm-item-link-hover:link { background:url("../../../../../image/template/karawan2011/imy_con_menu_dropdown.gif") no-repeat !important; background-position:left !important; } ul.megamenu a.mm-item-link-hover:visited { width:500px; } ul.megamenu div.mm-item-content { background-color: #c7bbb8; padding: 0px; margin-top:-8px; position: absolute; border: 4px solid #7e736f; z-index: 600; left:0 !important; /* ne pas supprimer */ } .mm-js-shadow { background-color: #555; position: absolute; z-index: 600; } .mm-content-base { background-color: #eae6e4; position: relative; padding: 10px; height:305px; /* hauteur du tableau */ z-index: 600; } #list-content, #list-content ul { margin: 0px; padding-left: 10px; margin-top:10px; } #list-content li { margin: 0px; padding: 10px 20px 20px 20px; } #paragraph-content li{ margin: 0px; padding: 0px; width: 50%; /* Important concernalt les liens des sous catégories niveau 1 */ font-size:14px; font-weight:bold; /* padding-bottom: 50px; espace entre les liens */ } #paragraph-content, #quote-content { text-align: left; /* padding-bottom: 50px; espace entre les paragraphes */ } .megacolumn { width: 860px; /* lageur du tableau */ float: left; } .megacolumnSubSubCategories { width: 310px; float:left; } .megacolumn-content { padding: 10px 0 10px; color:#78615A !important; width: 110%; float:none !important; font-size:14px!important; } .megacolumn-content p { padding-bottom:10px!important; text-align:left; } #mega_c1, #mega_c2 { padding-top:10px; /* border-right: 1px dotted #000; overflow: hidden; */ } .megawrapper { width: 860px; float:left; } /* ****************************** MULTI CSS **********************************/ .megawapperImage1 { width: 860px; height:305px; float:left; background:url("../../../../../image/template/karawan2011/my_image_1.png") no-repeat scroll 710px 200px !important; } .megawapperImage2 { width: 860px; height:305px; float:left; background:url("../../../../../image/template/karawan2011/my_image_2.png") no-repeat scroll 710px 100px !important; } .megawapperImage3 { width: 860px; height:200px; float:left; background:url("../../../../../image/template/karawan2011/my_image3.png") no-repeat scroll 710px 5px !important; } .megawrapper ul { /* background-image: none; */ position: relative; top: auto; padding-bottom: 10px; } .megawrapper ul li { /* background-color: transparent;*/ } .megawrapper ul li a{ height: 1%; position: relative; } .megawrapper ul li a:hover { height: 1%; position: relative; width:100%; } /* sous sous catégorie */ .megawrapperSubSubCategories { /* background-position: bottom; background-repeat: repeat-x; padding-top: 15px; width: 860px; float:left; */ } .megawrapperSubSubCategories ul a{ font-size:12px; text-transform:none; color: #78615A !important; font-weight:normal; font-family:Arial, Helvetica, sans-serif; } .megawrapperSubSubCategories li a{ font-size:12px; text-transform:none; color: #78615A !important; font-weight:normal; font-family:Arial, Helvetica, sans-serif; } .megawrapperSubSubCategories ul li a:hover { color: #78615A !important; font-size:12px; font-weight:normal; font-family:Arial, Helvetica, sans-serif; } </style> Now the script in yoour header or a files : // Create the root unordered list function tep_make_catsf_ullist($rootcatid = 0, $maxlevel = 4){ global $idname_for_menu, $cPath_array, $show_full_tree, $languages_id; $show_full_tree = true; $idname_for_menu = 'megamenu'; // see superfish.css $classname_for_selected = ''; // see superfish.css $classname_for_parent = ''; //see superfish.css // Global Variables $GLOBALS['this_level'] = 0; // Modify category query if not fetching all categories (limit to root cats and selected subcat tree) if (!$show_full_tree) { $parent_query = 'AND (c.parent_id = "0"'; if (isset($cPath_array)) { $cPath_array_temp = $cPath_array; foreach($cPath_array_temp AS $key => $value) { $parent_query .= ' OR c.parent_id = "'.$value.'"'; } unset($cPath_array_temp); } $parent_query .= ')'; } else { $parent_query = ''; } $result = tep_db_query('select c.categories_id, cd.categories_name, c.parent_id from ' . TABLE_CATEGORIES . ' c, ' . TABLE_CATEGORIES_DESCRIPTION . ' cd where c.categories_id = cd.categories_id and c.virtual_categories = 0 and cd.language_id="' . (int)$languages_id .'" '.$parent_query.' order by sort_order, cd.categories_name '); while ($row = tep_db_fetch_array($result)) { $table[$row['parent_id']][$row['categories_id']] = $row['categories_name']; } $output .= '<ul class="'.$idname_for_menu.'">'; // categorie sf_mmenu $output .= '<li>'; $output .= tep_make_catsf_ulbranch($rootcatid, $table, 0, $maxlevel); // Close off nested lists for ($nest = 0; $nest <= $GLOBALS['this_level']; $nest++) { $output .= '</li>'; $output .= '</ul>'; } return $output; } // Create the branches of the unordered list function tep_make_catsf_ulbranch($parcat, $table, $level, $maxlevel) { global $cPath_array, $classname_for_selected, $classname_for_parent, $valCpathCss; $list = $table[$parcat]; while(list($key,$val) = each($list)){ if ($GLOBALS['this_level'] != $level) { if ($GLOBALS['this_level'] < $level) { $output .= "\n"; $output .= '<ul id="paragraph-content">'; $output .= '<li class="list-content">'; $output .= '<div>'; if ($GLOBALS['this_level'] == 0) { $output .= '<div class="megawrapper">'; $output .= '<div class="megawapperImage'.$valCpathCss.'">'; $output .= '<div id="mega_c2" class="megacolumn-content">'; } if ($GLOBALS['this_level'] == 1) { $output .= '<div class="megawrapperSubSubCategories" style=" padding-top:10px !important; width:500px !important; margin-left:-90px !important; padding-bottom:10px !important; border-right: 1px solid #bfb9b7 !important; font-weight:bold !important; font-size:12px !important; font-weight:bold !important; font-size:12px !important; " >'; $output .= '<div style="">'; $output .= '<div style=" ">'; } if ($GLOBALS['this_level'] == 2) { $output .= '<div style=" margin-left:-70px!important; padding-top:10px!important; width:275px!important; /* padding-top:10px!important; padding-bottom:10px!important; float:none!important; */ " >'; $output .= '<div>'; $output .= '<div>'; } else { $output .= ''; } $output .= '<ul>'; } else { for ($nest = 1; $nest <= ($GLOBALS['this_level'] - $level); $nest++) { $output .= '</div>'; $output .= '</div>'; $output .= '</div>'; $output .= '</div>'; $output .= '</li>'; $output .= '</ul>'; } // end for } // end if $GLOBALS['this_level'] = $level; } // end if if (isset($cPath_array) && in_array($key, $cPath_array) && $classname_for_selected) { $this_cat_class = ' class="'.$classname_for_selected.'"'; } else { $this_cat_class = ''; } // $output .= '<li class="cat_lev_'.$level.'"><a href="'; $output .= '<li><a href="'; // affichage du lien if (!$level) { unset($GLOBALS['cPath_set']); $GLOBALS['cPath_set'][0] = $key; $cPath_new = 'cPath=' . $key; $valCpathCss = implode("_", array_slice($GLOBALS['cPath_set'], 0, ($level+1))); } else { $GLOBALS['cPath_set'][$level] = $key; $cPath_new = 'cPath=' . implode("_", array_slice($GLOBALS['cPath_set'], 0, ($level+1))); } if (tep_has_category_subcategories($key) && $classname_for_parent) { $this_parent_class = ' class="'.$classname_for_parent.'"'; } else { $this_parent_class = ''; } // entete couleur du menu $output .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '"'.$this_parent_class.' >'.$val; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($key); if ($products_in_category > 0) { $output .= ' (' . $products_in_category . ')'; } } $output .= '</a>'; if (!tep_has_category_subcategories($key)) { $output .= '</li>'; } if ((isset($table[$key])) AND (($maxlevel > $level + 1) OR ($maxlevel == '0'))) { $output .= tep_make_catsf_ulbranch($key,$table,$level + 1,$maxlevel); } } // End while loop return $output; } // Initialize HTML and info_box class if displaying inside a box // Generate a bulleted list (uses configuration options above) $categories_string = tep_make_catsf_ullist(); $header_template = '<!-- header template megamenu start -->'; $header_template .= '<div class="clear"></div>'; $header_template .= '<div class="backgroundPageDropDown">'; $header_template .= '<div class="PageDropDown" >'; $header_template .= $categories_string; // display the categories $header_template .= '</div>'; // end PageDropDown $header_template .= '<div class="searchMegaDropDown">'; $header_template .= tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'); $header_template .= tep_image_submit('button_quick_find.png', MODULE_BOXES_SEARCH_BOX_TITLE, 'align="top"') . ' '. tep_draw_input_field('keywords', '', 'size="60" maxlength="30" style="width: 90px;"') . tep_draw_hidden_field('search_in_description', '1') . tep_hide_session_id() . tep_image_submit('button_quick_find_ok.png', MODULE_BOXES_SEARCH_BOX_TITLE, 'align="top"') .'</a>'; $header_template .= '</form>'; $header_template .= '</div>'; // end search $header_template .= '</div>'; // end backgroundPageDropDown $header_template .= '<div class="clear" style="padding-top:0; padding-bottom:0;"></div>'; $header_template .= '<div class="hr"></div>' . "\n"; $header_template .= '<!-- header template megamenu end -->' . "\n"; echo $header_template; that's all. It must work.
  23. MVS Shipping Cost Estimator work with 2.3 ?
  24. Gyakutsuki

    Ship cost in shopping cart for osc 2.3

    Are you sure ? I don't think it work for 2.3.
×