Jump to content

xinirnix

Members
  • Content count

    8
  • Joined

  • Last visited

1 Follower

About xinirnix

  • Birthday 01/10/1978

Profile Information

  • Real Name
    Xinirnix
  • Gender
    Male
  • Website
  1. xinirnix

    Ajax Buy Now

    Maybe someone can help me out. On my site (www.gobelix.com) you can click on a button on the main page to add an item to the shopping chart. Problem is that this works by adding the action=buy_now in the URL. When someone refreshes the page, or goes to another page and uses the Browser Back Button, the shopping chart adds 1 to the last item in the shopping chart. Some genius that can help me implementing this Ajax Buy Now contribution on my site? Thx, Xinirnix
  2. xinirnix

    [Contribution] Newsletter Unsubscribe v1.1

    Hello, since a month I am using the automated unsubscribe contribution. Since then, my HTML traffic has increased a lot (I noticed this as I went over my 10GB/month limit from my provider). First: newsletter received = 50KB --> not much extra traffic when sending the newsletter compared to a normal day:: 100/200MB to +-250 customers Now: newsletter received = 50KB --> traffic = 3GB, to +-700 customers (I added all the physical shop customers). I think it has to do that the $mimemessage->add_html($this->html_content() is inside the SEND loop? But, at the same time, this is strange as everything is handled on the server (no?), so this should not add up to my HTML traffic? Actual send loop with contribution: function send($newsletter_id) { $mail_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'"); // Instantiate a new mail object $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer')); //$mimemessage->add_html($this->html_content()); // Send message //$mimemessage->build_message(); while ($mail = tep_db_fetch_array($mail_query)) { $mimemessage->add_html($this->html_content() . '<table align="center" border="0" cellpadding="7" cellspacing="0" width="635"> <tbody> <tr> <td align="center"> <p style="font-size: 60%; font-family: Verdana,sans-serif; color: rgb(0, 0, 0);"><span style="font-weight: bold;">' . TEXT_UNSUBSCRIBE . '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . FILENAME_UNSUBSCRIBE . "?email=" . $mail['customers_email_address'] . '"> Uitschrijven </a> </p> </td> </tr> </tbody> </table>'); $mimemessage->build_message(); $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], 'Gobelix Strips', 'info@gobelix.com', 'nieuwsbrief - [' . $this->newsletter_date . ']'); } Previous SEND loop (without contribution): function send($newsletter_id) { $mail_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'"); $visitor_query = tep_db_query("select email from " . TABLE_VISITOR); // Instantiate a new mail object $mimemessage = new email(array('X-Mailer: osCommerce bulk mailer')); $mimemessage->add_html($this->html_content()); // Send message $mimemessage->build_message(); while ($mail = tep_db_fetch_array($mail_query)) { $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], 'Gobelix Strips', 'info@gobelix.com', 'nieuwsbrief - [' . $this->newsletter_date . ']'); } Anyone any clue? Thanks in advance, Xinirnix
  3. I guess my fault has to do with th 'config.inc.php'-file and the link with the 'configure.php'-file. Maybe one of my paths is not right (although I did not change anything - that I can recall). Why are there 2 'config.inc.php'-files in the htmlarea-directory? One in the .../htmlarea/popup-directory and one in the .../htmlarea/popup/file-directory? Xinirnix
  4. Hello all, I have installed the HTML WYSIWYG contribution. Almost everything works out fine. Except for this. My 'Insert Image - Web Page Dialog' looks different from this one (i did use the link of someone else, because I don't have a webspace yet). My versioin shows errors in the 2 upper windows : WINDOW_1 = I do not see the 'opened.gif' and the 'closed.gif'. I DO see the directory structure (=names). WINDOW_2 = I get an error : "Object not found! The requested URL ..." Does somebody know where to look? I have spent a whole day figuring out what to do, but without result. Maybe an important note : I do work locally!! <B>Also, I guess I have to change 'something' (but what) in the 'config.inc.php'-file in the htmlarea-directory. </B> Thanks, Xinirnix
  5. Hello forum, I did have the following error - as many other people around here - "#1062 - Duplicate entry '144' for key 1". I got it when i inserted the SQL-file : HTML_WYSIWYG_SQL.sgl-file (but the Dutch version). phpAdmin did give the next error : INSERT INTO configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function ) VALUES ('144', '<b>Gebruik WYSIWYG voor productbeschrijving</b>' , 'HTML_AREA_WYSIWYG_DISABLE', 'Enable', 'Activeer/De-activeer WYSIWYG voor productbeschrijving', '112', '0', '2005-05-06 09:13:25', '2005-05-05 21:24:26', NULL , 'tep_cfg_select_option(array(\'Enable\', \'Disable\'),' ); MySQL retourneerde: #1062 - Duplicate entry '144' for key 1 I noted that it was due to the '144' configuration_id . I already had this configuration_id taken by an other sql-insertion. The solution : remove the 144 (leave the quotes ''). It should look like this : INSERT INTO configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function ) VALUES ([b]''[/b], '<b>Gebruik WYSIWYG voor productbeschrijving</b>' , 'HTML_AREA_WYSIWYG_DISABLE', 'Enable', 'Activeer/De-activeer WYSIWYG voor productbeschrijving', '112', '0', '2005-05-06 09:13:25', '2005-05-05 21:24:26', NULL , 'tep_cfg_select_option(array(\'Enable\', \'Disable\'),' ); I hope this might help some people. Xinirnix
  6. I think this is the solution to your(s) problems : (it was posted by frost77 on feb 06 2006 - [Contribution] Extra Fields, Unknown error Options - http://forums.oscommerce.com/index.php?sho...c=118357&st=40)
×