This is a discussion on newsletter/maillist email capture add on within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Simply mod that displays the actual number of subscribed users, this is easier than looking at how many have subscribed. ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Simply mod that displays the actual number of subscribed users, this is easier than looking at how many have subscribed. Open up catalog/admin/mailinglist_report.php Find the following at the top: if ($HTTP_POST_VARS['csv']) $csv_string=$HTTP_POST_VARS['csv']; if (strlen($csv_string)>0){ header("Expires: Mon, 26 Nov 1962 00:00:00 GMT"); header("Last-Modified: " . gmdate('D,d M Y H:i:s') . ' GMT'); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-Type: Application/octet-stream"); header("Content-Disposition: attachment; filename=$savename"); echo $csv_string; } else echo "CSV string empty"; exit; }; And add this straight after: // Display number of people subscribed $subscribers_query_raw = "SELECT * FROM `maillist`"; $subscribers_query = mysql_num_rows(tep_db_query($subscribers_query_raw )); Find: Replace with: Done! More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| newsletter/maillist email capture add on | michael_s | New osCommerce Contributions | 0 | 02-11-2007 03:10 PM |
| Welcome Newsletter | bobbiejames | osCommerce 2.2 Modification Help | 0 | 06-14-2004 08:41 AM |
| sub site capture requirements | jloyzaga | osCMax v1.7 Discussion | 0 | 02-08-2004 06:08 PM |
| Newsletter / Emails | peterb | osCommerce 2.2 Modification Help | 0 | 07-01-2003 10:54 AM |
| HTML Newsletter | adrenalinez | osCommerce 2.2 Modification Help | 0 | 01-29-2003 10:16 PM |