Jump to content

Gyakutsuki

♥Ambassador
  • Content count

    727
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by Gyakutsuki

  1. Gyakutsuki

    Flash discount

    There is an error on the date calculation between the date / time now et end the end date / time. if you have a solution.
  2. Gyakutsuki

    Newsletter & Subscribtion for MS2

    hello, You have a new Newsletter contribution, V0.5x. becarefull, the code is upgraded.
  3. Gyakutsuki

    OSC Active Desktop

    I am agree with .htaccess. There is no problem. Admin acces level allow a right on one or several files. But if you try to access the admin directory with http.../admin/osc_active_desktop. There is a problem. If you know the solution, i would know it.
  4. Gyakutsuki

    OSC Active Desktop

    Hello, Thank to continue my first development. I have just a comment after version 2. If you use in admin osc active desktop with admin access level, the contribution does'nt work. I It's for that, i put the osc active desktop in a sub directories catalog. After you can insert an .htaccess for the security.
  5. Gyakutsuki

    Newsletter & Subscribtion for MS2

    subscription_center.php does'nt exist with this version. The last version is different that the 1st version. that's all. It's only compatible with the ms2. For ms1, you must update the code. It's how to have a new contribution
  6. Gyakutsuki

    Newsletter & Subscribtion for MS2

    Go here : http://forums.oscommerce.com/index.php?sho...5&hl=newsletter
  7. Gyakutsuki

    Newsletter & Subscribtion for MS2

    Line 21, delete ); or ');. The correction is in v0.45 Regards
  8. Gyakutsuki

    Newsletter & Subscribtion for MS2

    You can download v0.44. Just a little update. I would say that this newsletter is different that original, and simplify, some options for the users are deleted and optimised. Indeed, a customers want stay an anonymous and don't want to insert this address .... I think today the difference between the anonymous and the members are importants, and you can have now marketing strategy. If you use this contribution on your local computer you can have an error email when you sent a newsletter. If you use on your provider, you haven't problem. I don't know why. -------- There, an import email module in cvs (excel) : This is module is in devlopment and i have just little pb. For an expert, it's simply to resolve this pb. This module must realised : If the email does'nt exist in base, it's inserted (ok) If the email exist in database, it's updated (not ok). I don't know if my code is perfect, but you can upload a new mail now, but if you want update a mail, it' doesn't work, he is added. Coul you help me to solve this problem . Thanks. installation : In admin, create a file called newsletters_import.php In admin/includes/finames.php => define('FILENAME_NEWSLETTERS_IMPORT','newsletters_import.php'); In the boxe add : // '<a href="' . tep_href_link(FILENAME_NEWSLETTERS_IMPORT, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_NEWSLETTER_IMPORT. '</a>'); <?php /* $Id: newsletters.php,v 1.17 2003/06/29 22:50:52 Gyakutsuki Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // on v?rifie l'adresse e-mail function EmailOK($subscribers_email_address) { return( ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'. '[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'. '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $subscribers_email_address) ); } switch($action) { /* LECTURE ET AJOUT DES DONNEES DANS LA TABLE */ case "ajouter": /* On ouvre le fichier ? importer en lecture seulement */ if (file_exists($fichier)) $fp = fopen("$fichier", "r"); else /* le fichier n'existe pas */ { echo "Fichier introuvable !<br>Importation stopp?e."; exit(); } // on importe while (!feof($fp)) { // Tant qu'on n'atteint pas la fin du fichier $ligne = fgets($fp,4096); // On lit une ligne // On r?cup?re les champs s?par?s par; dans liste $liste = explode( ";",$ligne); // On assigne les variables $subscribers_lastname = $liste[0]; $subscribers_firstname = $liste[1]; $subscribers_email_address = $liste[2]; $customers_newsletter = $liste[3]; $subscribers_blacklist = $liste[4]; // Changement des valeurs afin de pouvoir contacter ces personnes via la newsletter ou le mail des anonymes if ($customers_newsletter=='') { $customers_newsletter = '1'; } if ($subscribers_blacklist=='') { $subscribers_blacklist = '0'; } // V?rification du formatage de l'email if(EmailOK($subscribers_email_address)) { $requete="select subscribers_id, subscribers_email_address from " . TABLE_SUBSCRIBERS . " where email='$subscribers_email_address'"; //elle n'existe pas, on l'ins?re if($subscribers_email_address == 0) { $query = "INSERT INTO " . TABLE_SUBSCRIBERS . " (subscribers_lastname, subscribers_firstname, subscribers_email_address, customers_newsletter, subscribers_blacklist) VALUES ('".$subscribers_lastname."','".$subscribers_firstname."','".$subscribers_email_address."','".$customers_newsletter."','".$subscribers_blacklist."') "; $result= MYSQL_QUERY($query); } else { // elle existe, on la met ? jour echo htmlentities("Cet enregistrement existe d?j?, il a ?t? mis ? jour" ); $query = " UPDATE " . TABLE_SUBSCRIBERS . " (subscribers_lastname, subscribers_firstname, subscribers_email_address, customers_newsletter, subscribers_blacklist) VALUES ('".$subscribers_lastname."','".$subscribers_firstname."','".$subscribers_email_address."','".$customers_newsletter."','".$subscribers_blacklist."') where subscribers_email_address = '" . subscribers_email_address . "')"; $result= MYSQL_QUERY($query); } } if(mysql_error()) { /* Erreur dans la base de donnees, s?rement la table qu'il faut cr?er */ print "Erreur dans la base de donn?es : ".mysql_error(); print "<br>Importation stopp?e."; exit(); } /* Tout va bien */ else print "$subscribers_email_address / $subscribers_lastname <br>"; } echo "<br>Importation termin?e, avec succ?s. <br> Les adresses email imcompl?tes n\'ont pas ?t? import?es."; /* Fermeture */ fclose($fp); break; /* FORMULAIRE DE CHOIX D'IMPORTATION */ default: ?> <?php // echo "<form method=\"post\" action=\"$PHP_SELF\">"; ?> <?php echo "<form action=\"$PHP_SELF\" method=\"post\" enctype=\"multipart/form-data\">";?> <!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();"> <!-- 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"><table border="0" width="100%" cellspacing="0" cellpadding="2"> Pour ajouter ton serveur il suffit de remplir ce formulaire <table border="0" cellspacing="0" cellpadding="3" align="center"> <tr> <tr> <td>Fichier :</td> <td> <input type="file" name="fichier"> </td> </tr> <tr> <td></td> <td> <input type="submit" name="submit" value="Ajouter"> </td> </tr> </table> <input type="hidden" name="action" value="ajouter"> </form> </table> <?php break; } ?> </body> </html>
  9. Gyakutsuki

    Newsletter & Subscribtion for MS2

    Sorry for my absence. I don't receive a mail in this post, i don't know why. This contribution work only with html code. You find in admin../functions directory, the files mail.php and a function called add_html_newsletter /** * Adds a html part to the mail. * Also replaces image names with * content-id's. */ // #################### Changed Newsletter & Subscriber ?#################"" ? ?function add_html_newsletter($html, $text = NULL, $images_dir = NULL) { ? ? ? ?$this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), ' ',$html); // ? ? ?$this->html = ?$html; // #################### End Changed Newsletter & Subscriber ?#################"" ? ? ?$this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); ? ? ?if (isset($images_dir)) $this->find_html_images($images_dir); ? ?} // #################### End Changed Newsletter & Subscriber ?#################"" ? ?function add_html($html, $text = NULL, $images_dir = NULL) { // #################### Changed Newsletter & Subscriber ?#################"" ? ? ?$this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html); // ? ? ? ?$this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), ' ',$html); // #################### End Changed Newsletter & Subscriber ?#################"" ? ? ?$this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); ? ? ?if (isset($images_dir)) $this->find_html_images($images_dir); i created this new function, because when you send an sheet, you have a <br> every lines but all the newsletter is in html. This function delete the <br>. if you want to comeback with the last function you change in newsletter module or unsubscriber newsletter this function add_html_newsletter by add_html. That's all. note : you have the site the 4.2 or 4.3 version
  10. Gyakutsuki

    Newsletter & Subscribtion for MS2

    yes it's not birirectionnal and it 's not possible to insert an anonymous in members client (logical), you need several fields. You can upload the v0.42. I developped this contribution with the french law and optimize the files. When a members or an anonymous subsriber want to unsubscribe, this account is deleted but not deleted in members. This latest can receive a members newsletter. regards
  11. I found a solution for the newsletter in oscommerc. If you want include a sheet in the newsletter, you have a problem. You can solve it by that : function add_html($html, $text = NULL, $images_dir = NULL) { ############### Changed "################ // $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html); $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), ' ',$html); // $this->html = $html; // ############## End changed ###########
  12. Gyakutsuki

    Send order html email, as?

    You have an update for this contribuion and i created the V5. Regards,
  13. Gyakutsuki

    PDF Catalog v.1.5

    I will try ... Have you checked the www.fpdf.org site? If not, download this file and add it to you osC+PDF_Catalog installation! With a little bit of luck, this is what you are looking for ... if not ... Houston we have a problem! :-) Yes i know this site and i try to implement the code, but my knwoledge are limited and all my modification are bad. this contribution is not very simple.
  14. Gyakutsuki

    PDF Catalog v.1.5

    I try to develop an "html" pdf catalog. I would to take <b>,<p>,<br>. But i don't arrive to create this. could you help. The example below does'nt wok very well.
  15. Gyakutsuki

    Send order html email, as?

    I have been fogotten to delete this code. Put /* and */ before the // ################### Added ############### // check for terms and conditions agreement /* if ($HTTP_POST_VARS['agree'] != 'true') { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode('You must agree to the terms and conditions to finish your order'), 'SSL')); } */ // ################ End Added #############
  16. Gyakutsuki

    PDF Catalog v.1.5

    If you want increase this contribution you can add this code : near 692 ? $model=rtrim(strip_tags($products_new_array[$nb]['model'])); // ################ added <br> ############### // $description=rtrim(strip_tags($products_new_array[$nb]['description'])); $description= str_replace(" ","",rtrim(strip_tags($products_new_array[$nb]['description']))); // ################ End added <br> ############### If you have in your HTML code <p> or <br>, the new pdf can take it. near 724 function TitreChapitre($lib) { //Titre $this->SetFont('Arial','',12); $titles_color_table=explode(",",HIGHT_TITLES_CELL_COLOR); $this->SetFillColor($titles_color_table[0], $titles_color_table[1], $titles_color_table[2]); $this->Cell(0,6,$lib,0,1,'L',1); $this->Ln(4); //Sauvegarde de l'ordonn?e $this->y0=$this->GetY(); } // ################# Imprimer la couverture ################# function CouvertureFace() { $this->AddPage(); // $this->Image('logo.gif',5,60,200); $this->SetY(-180); $this->SetFont('Arial','B',30); $this->SetTextColor(0); $this->Cell(80); $this->Cell(30,10,PDF_TITLE,0,0,'C'); $this->Ln(20); } // ##################### End Added ############## } $languages = tep_get_languages(); $languages_string = ''; for ($i=0; $i<sizeof($languages); $i++) { $pdf=new PDF(); $pdf->Open(); $pdf->SetDisplayMode("real"); // ##################### Imprimer la couverture ############## $pdf->CouvertureFace(); // ##################### End Added ############## create a new first presentation page. It's really interesting. you can see this contribution in action on http://www.bleu-lavande.com It's not perfect for the moment.
  17. Thank you for this contribution. I have installed ultrapics on https server. I can easy upload the image in the directory https://site/images/ but when I want to see the image (in image manager pop up), i haven't nothing, image and icon. Just the image name When i click on the image name, the url link does'nt appear in url link fields. When i want go in the subdirectory, it's not possible. But if i install the same contribution on http, I haven't problem. I need use this contribution on https, could you help to resolve this problem, please.
  18. Gyakutsuki

    PDF Catalog v.1.5

    A little error on pdf_catalogue. You have forget a ].
  19. Gyakutsuki

    Send order html email, as?

    Look you configure account if all the fields are corrects. if your installation was manual, you have maybe forgotten a "/"
  20. Gyakutsuki

    B2BSuite V087

    I test this contrib but there is a problem when you create a discount and a categorie discount. Example : Create a disount: 20% for all categories Create another discount for a subcategories : ex dvd movies : 80% Now look the the results : Categories discount result good discount dvdmovies 80% 80% dvdadventure 25% 20% hardware 25% 20% Where is the pb, i have seen the code but i haven'd found the problem.
  21. Gyakutsuki

    Send order html email, as?

    Ths contribution works correctly, but you must becarefull in the installation. There is now the 4.2 available on os.com. I modified a little bug.
  22. Gyakutsuki

    installed v 1.2

    This contribution is great but it's not possible in the fax to have the product and the attributs. How do you do to have in the fax the order detail with the products name, quantity and attributs . thank you
  23. Gyakutsuki

    Recover Cart Sales

    I try this add on but i have a problem. When the mail is sending, i receive always an english message and not a french message. I don't know why all my mail are in english and not in the french if my administration is in french ? Could you help me ? Thanks
  24. Gyakutsuki

    Recover Cart Sales

    I try this add on but i have a problem. When the mail is sending, i receive always an english message and not a french message. I don't know why all my mail are in english and not in the french if my administration is in french ? Could you help me ? Thanks
  25. When i am in image manager I dont' see the files after images root. When i want to upload an image, i have this message "File 'booster.gif' could not be created. My catalog/images directory is in 777 chmod. Could you help me to solve this problem. Thanks
×