Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

bebe cash 59

Pioneers
  • Posts

    22
  • Joined

  • Last visited

About bebe cash 59

  • Birthday 06/13/1945

Profile Information

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

bebe cash 59's Achievements

  1. :D Hi! I wrote this for those that have the same problem as me! Please try and check the posted name of threads before wasting your time answering questions. (w00t) all good for you !! Jean
  2. For all that are with SAFE_MODE at their server: You can replace previous function mk_dir by this version: <?php function mk_dir($str, $mode=0777) { // Check for safe mode if( ini_get('safe_mode') ){ // Do it the safe mode way // init connect $conn_id = ftp_connect(FTP_SERVER); // Identifie with login & password $login_result = ftp_login($conn_id, DB_SERVER_USERNAME, FTP_SERVER_PASSWORD); if($login_result){ // Set in root directory if (!ftp_chdir($conn_id, "<root_name>")) { echo "no success for root setting\n"; } // Create directory $str if (ftp_mkdir($conn_id, $str)) { echo "Success creating $str\n"; } else { echo "Problem with creating $str\n"; } $command = 'chmod ' . $mode .$str; if (ftp_site($conn_id, $command)) { echo "Success for $command\n"; } else { echo "Not possible to execute : $command\n"; } // close ftp_close($conn_id); }else{ echo 'Bad login or password'; } }else{ // Do it the regular way if(!(is_dir($str) || @mkdir($str, $mode))) { mk_dir(dirname($str)); mk_dir($str); } } } ?> and add in catalog/admin/includes/configure.php define('FTP_SERVER', '<your ftp server>'); define('FTP_SERVER_PASSWORD', '<your ftp password>'); assuming your ftp username is the same as your db username. Jean
  3. Hi ! Many worry to adapt this addon to multishop addon. Finally, i have tested the to-be-cached query into catalog/application_top.php: select configuration_key as cfgKey, configuration_value as cfgValue from configuration On the server that i use, this give me 388 lines in 0.0003 s. This is unsignifiant for a page during 0.500 s begin to end ! I dont have necessity to use this addon! Please, make this test before to use this addon !! J.D
  4. :blush: Oh! I had not seen this new line. THanks for your gently reply !! Very confused to have you disturbed with this bad question bebe cash 59
  5. HI! I have trouble with HeaderTags_SEO_V_3.3.2_1\Use_if_version_lessthan_2.3\catalog_only_new_files\includes\modules\header_tags_opengraph.php : The initial request is and i read into HeaderTags_SEO_V_3.3.2_1\Database_Files\headertags_seo_update.php : so section is 'socialicons' and never 'twitter' ==> the request result is : nothing ! Have I not anything understanded ?? Thanks to explain me ! bebe cash 59
  6. Hi ! I have some problems with function mk_dir. function mk_dir($str, $mode=0777) { if(!(is_dir($str) || @mkdir($str, $mode))) { mk_dir(dirname($str)); mk_dir($str); } I have a shared environnement. Also PHP MANUAL predict problems with umask. The code given by PHP MANUAL #6 seems inoperant. I have manually by FTP renamed/copied/deleted old/renamed/chmoded the new created directory AND similary for transmitted images. But it's not very cool ! Have you some better function ? Jean
  7. Yes ! I had this problem.too !! I simply solve it by creating a configuration_group for each store. Same method for the caches All with automatic naming in the code: store A: 3 specific tables: configuration_0, cache_0 & configuration_group_0 store B: 3 specific tables: configuration_1, cache_1 & configuration_group_1 & so on Clearly, you must modify the SQL commands from the adds-on by changing configuration_group in configuration_group_n .... That'all folks ! Jean
  8. HI Header Tags SEO V3 http://addons.oscommerce.com/info/5851/v,22 give small problems of query's modifications, particulary in admin/manufacturers.php Ultimate SEO URI http://addons.oscommerce.com/info/2823/v,22 give another difficulty with the TABLE_CONFIGURATION_GROUP: when a configuration is given into one shop, this delete the actual SEO_URL line and insert a new one, with a new id so that the others stores know no more seo url & so on. Sure the rewriting remain good, but any modifigation give a new garbadge Has anyone some light about this ? Jean
  9. Hi ! Please, i had make a mistake and given in admin a WS directory adress and not a FS directory adress. Now, all is OK ! Excuse me ! Jean
  10. He ! I experiment this contrib. I see that it is possible to give differente cache adress -cache_0, cache_1, cache_2) , one per site. and this is OK BUT, but, in admin/tools/cache_verify (i don't have his english name) - admin/cache.php, DIR_FS_CACHE is inaoperant for cache resetting ! No solution found in this forum about this problem : cache_0 contains a file manufacturers-box-french-cache and cache_2 another.These files don't contain same information, namely http adresses. How do ? Jean
  11. Hi ! Into catalog/admin/includes/filesnames.php must be added define('FILENAME_QUICK_EDIT_INFO', 'product_quickedit_info.php'); (new version 2.3.1) No ? Cheers ! bebe cash 59 Thanks to apologize my language ---------------------------------- Français Un bout de code manque dans la version pour 2.3.1 (& 2.3.2) Merci de corriger le zip - pour les autres... Belle journée à vous bebe cash 59
  12. Hi All! Hey ! my memory dump give errors ! Table get_1_free must be modified to have some place for sheduled_date: in your base execute SQL: ALTER TABLE `get_1_free` ADD `get_1_free_sheduled_date` DATETIME NULL DEFAULT NULL AFTER `get_1_free_last_modified` Sorry one more time ! The end
  13. YES ! Modify catalog/product_info.php to obtain: <?php // start Get 1 Free // Is this product gratos somewhere ? $get_1_free_query = tep_db_query("select products_id, products_free_id, get_1_free_sheduled_date, get_1_free_expires_date from " . TABLE_GET_1_FREE . " where products_free_id = '" . (int)$product_info['products_id'] . "' and get_1_free_sheduled_date < now() and (get_1_free_expires_date > now() or get_1_free_expires_date = 0 ) and status = '1'" ); // Yes ? give his name if (tep_db_num_rows($get_1_free_query) > 0) { $free_product = tep_db_fetch_array($get_1_free_query); $query_gratos= tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id='".$free_product['products_id']."' and language_id = '" . (int)$languages_id . "'"); $genere_gratos=tep_db_fetch_array($query_gratos); echo TEXT_GET_1_FREE_GRATOS.$genere_gratos['products_name'].'<br>'; } // Display promotional text if this product qualifies for free product(s) $get_1_free_query = tep_db_query("select pd.products_name, and catalog/includes/languages/<your language>/product_info.php define ('TEXT_GET_1_FREE_GRATOS','Voyez notre offre avec : '); ?> 2 problems remain: What happens when more that one product is offered with this one ? How make a link to the promoted product: rewriting causes an infinite loop when i use echo'<a href="'.tep_href_link( PRODUCT_INFO, $free_product['products_id']).'">'.TEXT_GET_1_FREE_GRATOS.$genere_gratos['products_name'].'</a><br>'; ( code by memory - verify) I wait your anserws ! bebe cash 59
  14. Sorry ! in post #299, i have forgotten a modification into catalog/admin/get_1_free.php: ?> <tr><form name="new_get_1_free" <?php echo 'action="' . tep_href_link(FILENAME_GET_1_FREE, tep_get_all_get_params(array('action', 'info', 'fID')) . 'action=' . $form_action, 'NONSSL') . '"'; ?> method="POST" ,enctype="multipart/form-data"> <?php if ($form_action == 'update') echo tep_draw_hidden_field('get_1_free_id', $_GET['fID']); ?> editing is now forbidden --> new post ! Good night !
×
×
  • Create New...