Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newsletter & Subscribtion for MS2


Gyakutsuki

Recommended Posts

Sometimes, when my customers click link to unsubscribe from their email, go to unsubscribe page; when they click on unsubscribe button to confirm, unsubscribe page pass the session id to next page, as:

http://www.100asa.it/unsubscribe_done.php?...363102a101d620d

This problem occour also when customer have cookie blocked.

Is there a solution?

Skype: centoasa

Skype: remigioruberto

Link to comment
Share on other sites

  • Replies 336
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

It's much time, from 20 sept 06, this contribution don't work fine, when sending newsletter.

I explain: I prepare the html newsletter (I've html contrib installed), when I'm try to send newsletter, I wait much time (about 20 seconds) and then the result page is blank (without message of sending)

Why this?

Before this date this contribution work fine: I don't remember that I've change any interested files.

Someone who help me to find solution?

 

:thumbsup:

Skype: centoasa

Skype: remigioruberto

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 weeks later...

Hello!

excuse my poor english please ;)

 

I use newsletter & subscribers, and this contrib have a security issue who allow user (bad user) to send spamm, he add a text to automatic mail subscription.

 

The orginal code use http_post_var[Mail] and other directly in sql insertion and in part of code who send automatic mail, I think I have solve the problem, but my "solution" is a "do-it-yourself" method.

 

Thats work, and user can't use form to send spamm, but it's ugly, if some php god coder can correct it, it's fun.

 

The javascript code in the box, dont work for verify int?grity of mail, but i'm bad in javascript

 

My page newsletter_subscribe (but I dont v?rify for the mooment other page)

 

 

thanks for read this, use it, test it and report it ^^

<?php
/*
 $Id: newsletter & subscribers.php, v0.53  2003/06/09 23:03:52 hpdl 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');
  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEWSLETTERS);

$email_adress_subscriber = strtolower($HTTP_POST_VARS['Email']);
$email_adress_subscriber = tep_db_prepare_input($email_adress_subscriber);

/*  ici je v?rifi que l'email est en bonne forme*/
if (!preg_match('`^[[:alnum:]]([-_.]?[[:alnum:]])*@[[:alnum:]]([-_.]?[[:alnum:]])+\.([a-z]{2,4})$`',$email_adress_subscriber))
{
tep_redirect(tep_href_link('index.php', '', 'NONSSL'));
 }

$pseudo_subscriber = ucwords(strtolower($HTTP_POST_VARS['lastname']));
$pseudo_subscriber = tep_db_prepare_input($pseudo_subscriber);

/* je verifi si le pseudo n'est constitu? que de caracteres faudrait peut etre changer la condition pour autoriser le _ on verra ?a plus tard ^^ */
if ( !preg_match('`^[a-z]+$`i', $pseudo_subscriber) )
{
tep_redirect(tep_href_link('index.php', '', 'NONSSL'));
}

$email_type = ucwords(strtolower($HTTP_POST_VARS['email_type']));
$email_type = tep_db_prepare_input($email_type);

if ( !preg_match('`^[a-z]+$`i', $email_type) )
{
tep_redirect(tep_href_link('index.php', '', 'NONSSL'));
}



 $subscribers_info = tep_db_query("select subscribers_id from " . TABLE_SUBSCRIBERS . " where subscribers_email_address = '" . $email_adress_subscriber . "' ");
$date_now = date('Ymd');

 if (!tep_db_num_rows($subscribers_info)) {
  $gender = '';
tep_db_query("insert into " . TABLE_SUBSCRIBERS . " (subscribers_email_address, subscribers_lastname, language, subscribers_email_type, date_account_created, customers_newsletter,  subscribers_blacklist, hardiness_zone, status_sent1,  source_import) values ('" . $email_adress_subscriber . "',  '" . $pseudo_subscriber . "',  'French',  '" . $email_type . "',  now() ,  '1',  '0', '" . $domain4 . "', '1', 'subscribe_newsletter')");
  } else {
tep_db_query("update " . TABLE_SUBSCRIBERS . " set customers_newsletter = '" . '1' . "', subscribers_email_type = '" . $email_type . "'  where subscribers_email_address  = '" . $email_adress_subscriber . "' ");
  }

if ($email_type  == "HTMLXX") {
 // build the message content
$newsletter_id='3';
$newsletter_query = "select p.newsletter_info_subject, p.newsletter_info_logo, p.newsletter_info_title, p.newsletter_info_greetings, p.newsletter_info_intro, p.newsletter_info_promo1_name, p.newsletter_info_promo1_des, p.newsletter_info_promo1_img, p.newsletter_info_promo1_url, p.newsletter_info_promo1_link, p.newsletter_info_promo2_name, p.newsletter_info_promo2_des, p.newsletter_info_promo2_img, p.newsletter_info_promo2_url, p.newsletter_info_promo2_link, p.newsletter_info_final_para, p.newsletter_info_closing, q.newsletter_email_address, q.newsletter_template, q.newsletter_user, q.newsletter_site_name, q.newsletter_site_url, q.newsletter_phone, q.newsletter_mailing_address, q.newsletter_template from newsletter_info p , newsletter q where p.newsletter_id = '" . $newsletter_id . "' and q.newsletter_id = p.newsletter_id ";
$newsletter = tep_db_query($newsletter_query);
$newsletter_values = tep_db_fetch_array($newsletter);
$gender = $HTTP_POST_VARS['gender'];
 if ($gender == 'F') {
	  $email_greet1 = EMAIL_GREET_MS;
   } else {
	  $email_greet1 = EMAIL_GREET_MR;
   }
$customers_email_address = $email_adress_subscriber;
$from = 'STORE <[email protected]>';
$subject = $newsletter_values['newsletter_info_subject'];
$firstname = $HTTP_POST_VARS['firstname'];

if ( !preg_match('`^[a-z]+$`i', $firstname) )
{
tep_redirect(tep_href_link('index.php', '', 'NONSSL'));
}

$name = $firstname . " " . $pseudo_subscriber;
$store_owner = '';
$store_owner_email = '';
$domain4 = trim($domain4);
$email_address = strtolower($email_adress_subscriber);
$gender = $gender; /* ? */
$email_text .= BLOCK1 . $newsletter_values['newsletter_info_title'] . BLOCK2 . $newsletter_values['newsletter_info_promo1_name'] . BLOCK3 . $newsletter_values['newsletter_info_promo1_url'] . BLOCK4 . $newsletter_values['newsletter_info_promo1_img'] . BLOCK5 . $newsletter_values['newsletter_info_promo1_des'] . BLOCK6 . $newsletter_values['newsletter_info_promo1_url'] . BLOCK7 . $newsletter_values['newsletter_info_promo1_link'] . BLOCK8 . BLOCK9 . $email_greet1  . $firstname . ' ' .  $lastname . ', ' . $newsletter_values['newsletter_info_greetings'] . '<br>' . BLOCK10 . '<br>' . $newsletter_values['newsletter_info_intro'] . BLOCK11 .  BLOCK12 .  BLOCK13 .  BLOCK14 .  BLOCK15 .  BLOCK16 .  BLOCK17 . $newsletter_values['newsletter_info_final_para'] . BLOCK18 . $newsletter_values['newsletter_info_closing'] . BLOCK19 . BLOCK20 . $email_address . BLOCK22  . BLOCK23 . 'email=' . $email_address . '&action=view' . BLOCK23A . BLOCK24 . 'email=' . $email_address . '&action=view' . BLOCK24A . BLOCK25;
//tep_mail1($name, $email_address, $subject, $email_text, $store_owner, $store_owner_email, '');

 } else {

$message .= EMAIL_WELCOME . CLOSING_BLOCK1 . CLOSING_BLOCK2 . CLOSING_BLOCK3 . UNSUBSCRIBE . $email_adress_subscriber;
}
  if ($HTTP_POST_VARS['origin']) {

  if (@$HTTP_POST_VARS['connection'] == 'SSL') {
	$connection_type = 'SSL';
  } else {
	$connection_type = 'NONSSL';
  }
 tep_redirect(tep_href_link($HTTP_POST_VARS['origin'], '', $connection_type));

 } else {

 tep_redirect(tep_href_link(FILENAME_NEWSLETTERS_SUBSCRIBE_SUCCESS, '', 'NONSSL'));
 }

?>

Link to comment
Share on other sites

Hi, I installed last 0.54 version and the "Automatic update of subscribers_table" modification from anorakgirl. almost everything seems to work fine but if I unregister a user in the admin then, create a new mail, when I go back to the "subscribers manager", the unregistered users a registered again. it looks like the synchronisation system overrides the "subscribed newsletter" flag.

 

I modified the tep_set_newsletter_status function like this to solve my problem. hope it helps :

 

  function tep_set_newsletter_status($subscribers_id, $status) {

	$select_str = "select p.customers_id ";
	$from_str .= "from " . TABLE_SUBSCRIBERS . " p ";
	$where = "where p.subscribers_id=" .(int)$subscribers_id;
	$listing_sql = $select_str . $from_str . $where;
	$listing = tep_db_query($listing_sql);

	if (tep_db_num_rows($listing)) {
		$listing_values = tep_db_fetch_array($listing);
		$customer_id = $listing_values['customers_id'];
	}

if ($status == '1') {
		if ($customer_id != 0) {
				$maj_customer =  tep_db_query("update " . TABLE_CUSTOMERS . " set customers_newsletter = '1' where customers_id = '" . (int)$customer_id . "'");
		}
  return tep_db_query("update " . TABLE_SUBSCRIBERS . " set customers_newsletter = '1' where subscribers_id = '" . (int)$subscribers_id . "'");
} elseif ($status == '0') {
	if ($customer_id != 0) {
			$maj_customer =  tep_db_query("update " . TABLE_CUSTOMERS . " set customers_newsletter = '0' where customers_id = '" . (int)$customer_id . "'");
	}
  return tep_db_query("update " . TABLE_SUBSCRIBERS . " set customers_newsletter = '0' where subscribers_id = '" . (int)$subscribers_id . "'");
} else {
  return -1;
}
 }

 

Hi all,

 

I have the same problem (as do many others who use this contri):

When the subscriber table gets updated, it forgets al the changes and put them back as before.

 

Does any-one know how to solve this problem or where to put the above code (as it might be the solution)

 

many thanks

best regards

Geeraard

Link to comment
Share on other sites

  • 1 month later...

I was thinking of using this contrib but it appears to be way too buggy.

 

One of the reasons I was going to use it is because my default OSC newsletter function does not work. It does not send out e-mails.

 

I have tested newsletter feature with two different OSC installs and have same problem.

 

The store is on a Unix server and my e-mail settings are:

Sendmail

LF

Verifying e-mails through DNS is false.

 

I receive e-mails as admin and my customers and order dept receive order e-mails. So, I would not think the problem is with e-mail sending feature, but with newsletter program,

 

Any ideas, solutions?

Link to comment
Share on other sites

  • 3 weeks later...

Have you seen a pb with Internet 7 on the button "GO" on newsletter boxes.

With firefox the script work fine but since IE7 appear the same script does'nt work with IE7.


Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Link to comment
Share on other sites

Hello all,

 

Installed it, but when access to

CATALOG/newsletters.php

 

received error:

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/content/s/e/m/seminara/html/includes/header.php:205) in /home/content/s/e/m/seminara/html/includes/boxes/categories.php on line 13

 

any idea? thanks a lot!

Link to comment
Share on other sites

  • 3 weeks later...
Hello all,

 

Installed it, but when access to

CATALOG/newsletters.php

 

received error:

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/content/s/e/m/seminara/html/includes/header.php:205) in /home/content/s/e/m/seminara/html/includes/boxes/categories.php on line 13

 

any idea? thanks a lot!

ozgogo,

 

Function tep_show_category() is part of the categories box (left navigation). Based on the error message, it looks like you have added a function tep_show_category() to your header file.

 

One of them has to go.

 

If they are the same function, you may be able to move the function into general.php. If they are different functions, simply rename the function and the function call in header.php.

 

Good luck,

-Skittles

Link to comment
Share on other sites

Ey people, have used 3½ hr now to getting this to work, but im close, very close..

 

I got this error:

 

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 222278 is not allowed to access /tmp owned by uid 0 in /customers/***.com/***.com/httpd.www/catalog/includes/functions/sessions.php on line 148

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /customers/***.com/***.com/httpd.www/catalog/includes/functions/sessions.php:148) in /customers/***.com/***.com/httpd.www/catalog/includes/functions/sessions.php on line 97

 

Someone there can help me?

 

Thanks for your time

Link to comment
Share on other sites

//

 

Forgot to tell, i also having this problem when im trying to send a newspaper

 

Warning: Cannot modify header information - headers already sent by (output started at /customers/***.com/***.com/httpd.www/catalog/admin/includes/functions/sessions.php:110) in /customers/***.com/***.com/httpd.www/catalog/admin/includes/functions/general.php on line 22

Link to comment
Share on other sites

  • 4 weeks later...

A piece of advice:

 

Forget about it. I had the script installed and working fine.

After fighting of the usual "once in a while" spam attempts the big spam hit one morning.

 

The errors in the script were used to send out thousands of spam mails causing the server to overload.

It took hours to clean up the mess.

Link to comment
Share on other sites

Hi there folks,

 

I've got a problem: i'm using Newsletter & Subscribtion a long time and from the beginning I had an error but never paid any attention to it, because everything was working fine...until now...

 

The main issue is that I have more than 1300 members who are receiving this newsletter. I think that's the main problem, but don't know how to fix this.

 

After sending the newsletters to everyone here's the error I get:

 

The error is: Fatal error: Maximum execution time of 30 seconds exceeded in /home/www/sylkamode/shop/admin/includes/classes/mime.php on line 134

 

I've tried everything, but can't find the problem. I always thought that it has to do something with safe mode, but nothing.

 

Is there anyone who can tell my what to do?

 

Kind regards,

 

Marcus A. Kaptein

Link to comment
Share on other sites

  • 3 weeks later...

If you are finding you are having too much trouble with this module, you may want to consider trying Newsletter & Subscribers Module v 0.2 instead which appears to be based on the contribution discussed in this thread. I installed it last night and it seems to work seamlessly for me (MS2). Although I had one error when subscribing and pressing the submit button, and that was related to the snoopy1.class.php file - which I omitted entirely (did not upload it at all). So far everything seems to work!

 

You'll find the working contribution here: http://www.oscommerce.com/community/contri...arch,newsletter

 

There is just one tiny problem which I would like to solve, maybe someone here knows how? :)

 

In my newsletter heading it says for X-Mailer: Palms&Gardens relating to the default info of the module.

 

Date: 6 Apr 2007 17:18:09 -0000

To: "Elli G." <[email protected]>

Subject: Testing Newsletter

From: Smarter Antiques Show Signs <[email protected]>

X-Mailer: Palms&Gardens

 

Does anyone know where the X-Mailer information can be changed?

 

Thanks for all your time and efforts! It is much appreciated. :thumbsup:

 

Elli

Link to comment
Share on other sites

Hi there,

 

I have installed the newsletter (newsletter_modul_v0.2_en_-_de) for MS2, but when I go to send a newsletter, I get this error:

 

Warning: Missing argument 3 for newsletter_subscribers() in /home/site/public_html/admin/includes/modules/newsletters/newsletter_subscribers.php on line 16

 

Warning: Missing argument 4 for newsletter_subscribers() in /home/site/public_html/admin/includes/modules/newsletters/newsletter_subscribers.php on line 16

 

Warning: Missing argument 5 for newsletter_subscribers() in /home/site/public_html/admin/includes/modules/newsletters/newsletter_subscribers.php on line 16

 

Warning: Missing argument 6 for newsletter_subscribers() in /home/site/public_html/admin/includes/modules/newsletters/newsletter_subscribers.php on line 16

 

 

Any ideas how to fix this?

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
any solution for this?

This code work fine, try this

 

<?php
/*
 $Id: newsletters.php,v 1.17 2003/06/29 22:50:52 hpdl 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');

 $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

 if (tep_not_null($action)) {
switch ($action) {
  case 'lock':
  case 'unlock':
	$newsletter_id = tep_db_prepare_input($HTTP_GET_VARS['nID']);
	$status = (($action == 'lock') ? '1' : '0');

	tep_db_query("update " . TABLE_NEWSLETTERS . " set locked = '" . $status . "' where newsletters_id = '" . (int)$newsletter_id . "'");

	tep_redirect(tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']));
	break;
  case 'insert':
  case 'update':
	if (isset($HTTP_POST_VARS['newsletter_id'])) $newsletter_id = tep_db_prepare_input($HTTP_POST_VARS['newsletter_id']);
	$newsletter_module = tep_db_prepare_input($HTTP_POST_VARS['module']);
	$title = tep_db_prepare_input($HTTP_POST_VARS['title']);
	$content = tep_db_prepare_input($HTTP_POST_VARS['content']);

	$newsletter_error = false;
	if (empty($title)) {
	  $messageStack->add(ERROR_NEWSLETTER_TITLE, 'error');
	  $newsletter_error = true;
	}

	if (empty($module)) {
	  $messageStack->add(ERROR_NEWSLETTER_MODULE, 'error');
	  $newsletter_error = true;
	}

	if ($newsletter_error == false) {
	  $sql_data_array = array('title' => $title,
							  'content' => $content,
							  'module' => $newsletter_module);

	  if ($action == 'insert') {
		$sql_data_array['date_added'] = 'now()';
		$sql_data_array['status'] = '0';
		$sql_data_array['locked'] = '0';

		tep_db_perform(TABLE_NEWSLETTERS, $sql_data_array);
		$newsletter_id = tep_db_insert_id();

		// ################# Contribution Newsletter v050 ##############		
		// Selectionne le pied de page à utiliser
		if ($newsletter_module=='newsletter_subscribers') {
		  $news_id_subscriber = '1';  
		} elseif ($newsletter_module=='newsletter')	{	
		  $news_id_subscriber = '2';
		} elseif ($newsletter_module=='product_notification') {	
		  $news_id_subscriber = '3';
		}

		// Insertion de la nouvelle newsletter subscribers avec entête et pied de pages par défault - Lecture base subcribers_default
		$latest_news_query = tep_db_query("select news_id, module_subscribers, header, status, unsubscribea, unsubscribeb from " . TABLE_SUBSCRIBERS_DEFAULT . " where news_id = '" . $news_id_subscriber . "'");
		  $latest_news = tep_db_fetch_array($latest_news_query);
		$nlatest_news = new objectInfo($latest_news);

		// Remplace les caractères ' par \' pour insérer dans la nouvelle newsletter
		$module_subscribers = ereg_replace("[']", "\'", $nlatest_news->module_subscribers);
		$header = ereg_replace("[']", "\'", $nlatest_news->header);
		$unsubscribea = ereg_replace("[']", "\'", $nlatest_news->unsubscribea);
		$unsubscribeb = ereg_replace("[']", "\'", $nlatest_news->unsubscribeb);

		// Ecriture dans la base subcribers_infos
		tep_db_query("insert into " . TABLE_SUBSCRIBERS_INFOS . " (news_id, newsletters_id, status, module_subscribers, header, date_added, unsubscribea, unsubscribeb ) values ('', '" . $newsletter_id . "', '1' , '" . $module_subscribers . "', '" . $header . "', now(), '" . $unsubscribea . "', '" . $unsubscribeb . "') ");
// ################# END - Contribution Newsletter v050 ##############

	  } elseif ($action == 'update') {
		tep_db_perform(TABLE_NEWSLETTERS, $sql_data_array, 'update', "newsletters_id = '" . (int)$newsletter_id . "'");
	  }

	  tep_redirect(tep_href_link(FILENAME_NEWSLETTERS, (isset($HTTP_GET_VARS['page']) ? 'page=' . $HTTP_GET_VARS['page'] . '&' : '') . 'nID=' . $newsletter_id));
	} else {
	  $action = 'new';
	}
	break;
  case 'deleteconfirm':
	$newsletter_id = tep_db_prepare_input($HTTP_GET_VARS['nID']);

	tep_db_query("delete from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$newsletter_id . "'");

	tep_redirect(tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page']));
	break;
  case 'delete':
  case 'new': if (!isset($HTTP_GET_VARS['nID'])) break;
  case 'send':
  case 'confirm_send':
	$newsletter_id = tep_db_prepare_input($HTTP_GET_VARS['nID']);

	$check_query = tep_db_query("select locked from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$newsletter_id . "'");
	$check = tep_db_fetch_array($check_query);

	if ($check['locked'] < 1) {
	  switch ($action) {
		case 'delete': $error = ERROR_REMOVE_UNLOCKED_NEWSLETTER; break;
		case 'new': $error = ERROR_EDIT_UNLOCKED_NEWSLETTER; break;
		case 'send': $error = ERROR_SEND_UNLOCKED_NEWSLETTER; break;
		case 'confirm_send': $error = ERROR_SEND_UNLOCKED_NEWSLETTER; break;
	  }

	  $messageStack->add_session($error, 'error');

	  tep_redirect(tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']));
	}
	break;
}
 }
?>
<!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">
<div id="spiffycalendar" class="text"></div>
<!-- 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">
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
		<td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  </tr>
	</table></td>
  </tr>
<?php
 if ($action == 'new') {
$form_action = 'insert';

$parameters = array('newsletters_id' => '', 
'module_subscribers' =>'', 
'title' => '', 
'header' => '', 
'content' => '', 
'unsubscribea' => '', 
'unsubscribeb' => '');

$nInfo = new objectInfo($parameters);

if (isset($HTTP_GET_VARS['nID'])) {
  $form_action = 'update';

  $nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

  //$newsletter_query = tep_db_query("select title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");	
  $newsletter_query = tep_db_query("select q.newsletters_id, q.module_subscribers, p.title, q.header, p.content, q.unsubscribea, q.unsubscribeb from " . TABLE_NEWSLETTERS . " p, " . TABLE_SUBSCRIBERS_INFOS . " q where p.newsletters_id = '" . (int)$nID . "' and p.newsletters_id = q.newsletters_id");
	$newsletter = tep_db_fetch_array($newsletter_query);

  $nInfo->objectInfo($newsletter);
} elseif ($HTTP_POST_VARS) {
  $nInfo->objectInfo($HTTP_POST_VARS);
}

$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
$directory_array = array();
if ($dir = dir(DIR_WS_MODULES . 'newsletters/')) {
  while ($file = $dir->read()) {
	if (!is_dir(DIR_WS_MODULES . 'newsletters/' . $file)) {
	  if (substr($file, strrpos($file, '.')) == $file_extension) {
		$directory_array[] = $file;
	  }
	}
  }
  sort($directory_array);
  $dir->close();
}

for ($i=0, $n=sizeof($directory_array); $i<$n; $i++) {
  $modules_array[] = array('id' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.')), 'text' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.')));
}
?>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  </tr>
  <tr><?php echo tep_draw_form('newsletter', FILENAME_NEWSLETTERS, (isset($HTTP_GET_VARS['page']) ? 'page=' . $HTTP_GET_VARS['page'] . '&' : '') . 'action=' . $form_action); if ($form_action == 'update') echo tep_draw_hidden_field('newsletter_id', $nID); ?>
	<td><table border="0" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main"><?php echo TEXT_NEWSLETTER_MODULE; ?></td>
		<td class="main"><?php echo tep_draw_pull_down_menu('module', $modules_array, $nInfo->module); ?></td>
	  </tr>
	  <tr>
		<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
	  </tr>
	  <tr>
		<td class="main"><?php echo TEXT_NEWSLETTER_TITLE; ?></td>
		<td class="main"><?php echo tep_draw_input_field('title', $nInfo->title, '', true); ?></td>
	  </tr>
	  <tr>
		<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
	  </tr>
	  <tr>
		<td class="main" valign="top"><?php echo TEXT_NEWSLETTER_CONTENT; ?></td>
		<td class="main"><?php echo tep_draw_textarea_field('content', 'soft', '100%', '20', $nInfo->content); ?></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main" align="right"><?php echo (($form_action == 'insert') ? tep_image_submit('button_save.gif', IMAGE_SAVE) : tep_image_submit('button_update.gif', IMAGE_UPDATE)). '  <a href="' . tep_href_link(FILENAME_NEWSLETTERS, (isset($HTTP_GET_VARS['page']) ? 'page=' . $HTTP_GET_VARS['page'] . '&' : '') . (isset($HTTP_GET_VARS['nID']) ? 'nID=' . $HTTP_GET_VARS['nID'] : '')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td>
	  </tr>
	</table></td>
  </form></tr>
<?php
 } elseif ($action == 'preview') {
$nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

//$newsletter_query = tep_db_query("select title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");
$newsletter_query = tep_db_query("select q.newsletters_id, q.module_subscribers, p.title, q.header, p.content, q.unsubscribea, q.unsubscribeb, p.module from " . TABLE_NEWSLETTERS . " p, " . TABLE_SUBSCRIBERS_INFOS . " q where p.newsletters_id = '" . (int)$nID . "' and p.newsletters_id = q.newsletters_id");
$newsletter = tep_db_fetch_array($newsletter_query);

$nInfo = new objectInfo($newsletter);
?>
  <tr>
	<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>
  </tr>
  <tr>
	<td><tt><?php echo nl2br($nInfo->content); ?></tt></td>
  </tr>
  <tr>
	<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>
  </tr>
<?php
 } elseif ($action == 'send') {
$nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

//$newsletter_query = tep_db_query("select title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");
$newsletter_query = tep_db_query("select q.newsletters_id, q.module_subscribers, p.title, q.header, p.content, q.unsubscribea, q.unsubscribeb, p.module from " . TABLE_NEWSLETTERS . " p, " . TABLE_SUBSCRIBERS_INFOS . " q where p.newsletters_id = '" . (int)$nID . "' and p.newsletters_id = q.newsletters_id");
$newsletter = tep_db_fetch_array($newsletter_query);

$nInfo = new objectInfo($newsletter);

include(DIR_WS_LANGUAGES . $language . '/modules/newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
//echo DIR_WS_LANGUAGES . $language . '/modules/newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.'))."<br>";
include(DIR_WS_MODULES . 'newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
//echo DIR_WS_MODULES . 'newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.'));
$module_name = $nInfo->module;

$module = new $module_name($nInfo->newsletters_id, $nInfo->module_subscribers, $nInfo->title, $nInfo->header, $nInfo->content, $nInfo->unsubscribea, $nInfo->unsubscribeb);
?>
  <tr>
	<td><?php if ($module->show_choose_audience) { echo $module->choose_audience(); } else { echo $module->confirm(); } ?></td>
  </tr>
<?php
 } elseif ($action == 'confirm') {
$nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

//$newsletter_query = tep_db_query("select title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");
$newsletter_query = tep_db_query("select q.newsletters_id, q.module_subscribers, p.title, q.header, p.content, q.unsubscribea, q.unsubscribeb, p.module from " . TABLE_NEWSLETTERS . " p, " . TABLE_SUBSCRIBERS_INFOS . " q where p.newsletters_id = '" . (int)$nID . "' and p.newsletters_id = q.newsletters_id");
$newsletter = tep_db_fetch_array($newsletter_query);

$nInfo = new objectInfo($newsletter);

include(DIR_WS_LANGUAGES . $language . '/modules/newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
include(DIR_WS_MODULES . 'newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
$module_name = $nInfo->module;
$module = new $module_name($nInfo->newsletters_id, $nInfo->module_subscribers, $nInfo->title, $nInfo->header, $nInfo->content, $nInfo->unsubscribea, $nInfo->unsubscribeb);
?>
  <tr>
	<td><?php echo $module->confirm(); ?></td>
  </tr>
<?php
 } elseif ($action == 'confirm_send') {
$nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

//$newsletter_query = tep_db_query("select newsletters_id, title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");
$newsletter_query = tep_db_query("select q.newsletters_id, q.module_subscribers, p.title, q.header, p.content, q.unsubscribea, q.unsubscribeb, p.module from " . TABLE_NEWSLETTERS . " p, " . TABLE_SUBSCRIBERS_INFOS . " q where p.newsletters_id = '" . (int)$nID . "' and p.newsletters_id = q.newsletters_id");
$newsletter = tep_db_fetch_array($newsletter_query);

$nInfo = new objectInfo($newsletter);

include(DIR_WS_LANGUAGES . $language . '/modules/newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
include(DIR_WS_MODULES . 'newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));
$module_name = $nInfo->module;
$module = new $module_name($nInfo->newsletters_id, $nInfo->module_subscribers, $nInfo->title, $nInfo->header, $nInfo->content, $nInfo->unsubscribea, $nInfo->unsubscribeb);
?>
  <tr>
	<td><table border="0" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main" valign="middle"><?php echo tep_image(DIR_WS_IMAGES . 'ani_send_email.gif', IMAGE_ANI_SEND_EMAIL); ?></td>
		<td class="main" valign="middle"><b><?php echo TEXT_PLEASE_WAIT; ?></b></td>
	  </tr>
	</table></td>
  </tr>
<?php
 tep_set_time_limit(0);
 flush();
 $module->send($nInfo->newsletters_id);
?>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  </tr>
  <tr>
	<td class="main"><font color="#ff0000"><b><?php echo TEXT_FINISHED_SENDING_EMAILS; ?></b></font></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  </tr>
  <tr>
	<td><?php echo '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>
  </tr>
<?php
 } else {
?>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr class="dataTableHeadingRow">
			<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_NEWSLETTERS; ?></td>
			<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_SIZE; ?></td>
			<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_MODULE; ?></td>
			<td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_SENT; ?></td>
			<td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_STATUS; ?></td>
			<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td>
		  </tr>
<?php
$newsletters_query_raw = "select newsletters_id, title, length(content) as content_length, module, date_added, date_sent, status, locked from " . TABLE_NEWSLETTERS . " order by date_added desc";
$newsletters_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $newsletters_query_raw, $newsletters_query_numrows);
$newsletters_query = tep_db_query($newsletters_query_raw);
while ($newsletters = tep_db_fetch_array($newsletters_query)) {
if ((!isset($HTTP_GET_VARS['nID']) || (isset($HTTP_GET_VARS['nID']) && ($HTTP_GET_VARS['nID'] == $newsletters['newsletters_id']))) && !isset($nInfo) && (substr($action, 0, 3) != 'new')) {
	$nInfo = new objectInfo($newsletters);
  }

  if (isset($nInfo) && is_object($nInfo) && ($newsletters['newsletters_id'] == $nInfo->newsletters_id) ) {
	echo '				  <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '\'">' . "\n";
  } else {
	echo '				  <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $newsletters['newsletters_id']) . '\'">' . "\n";
  }
?>
			<td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $newsletters['newsletters_id'] . '&action=preview') . '">' . tep_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a> ' . $newsletters['title']; ?></td>
			<td class="dataTableContent" align="right"><?php echo number_format($newsletters['content_length']) . ' bytes'; ?></td>
			<td class="dataTableContent" align="right"><?php echo $newsletters['module']; ?></td>
			<td class="dataTableContent" align="center"><?php if ($newsletters['status'] == '1') { echo tep_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK); } else { echo tep_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS); } ?></td>
			<td class="dataTableContent" align="center"><?php if ($newsletters['locked'] > 0) { echo tep_image(DIR_WS_ICONS . 'locked.gif', ICON_LOCKED); } else { echo tep_image(DIR_WS_ICONS . 'unlocked.gif', ICON_UNLOCKED); } ?></td>
			<td class="dataTableContent" align="right"><?php if (isset($nInfo) && is_object($nInfo) && ($newsletters['newsletters_id'] == $nInfo->newsletters_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $newsletters['newsletters_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td>
		  </tr>
<?php
}
?>
		  <tr>
			<td colspan="6"><table border="0" width="100%" cellspacing="0" cellpadding="2">
			  <tr>
				<td class="smallText" valign="top"><?php echo $newsletters_split->display_count($newsletters_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_NEWSLETTERS); ?></td>
				<td class="smallText" align="right"><?php echo $newsletters_split->display_links($newsletters_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page']); ?></td>
			  </tr>
			  <tr>
				<td align="right" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'action=new') . '">' . tep_image_button('button_new_newsletter.gif', IMAGE_NEW_NEWSLETTER) . '</a>'; ?></td>
			  </tr>
			</table></td>
		  </tr>
		</table></td>
<?php
 $heading = array();
 $contents = array();

 switch ($action) {
case 'delete':
  $heading[] = array('text' => '<b>' . $nInfo->title . '</b>');

  $contents = array('form' => tep_draw_form('newsletters', FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=deleteconfirm'));
  $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
  $contents[] = array('text' => '<br><b>' . $nInfo->title . '</b>');
  $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
  break;
default:
  if (is_object($nInfo)) {
	$heading[] = array('text' => '<b>' . $nInfo->title . '</b>');

	if ($nInfo->locked > 0) {
	  $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=new') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=unlock') . '">' . tep_image_button('button_unlock.gif', IMAGE_UNLOCK) . '</a>');
	} else {
	  $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=lock') . '">' . tep_image_button('button_lock.gif', IMAGE_LOCK) . '</a>');
	}
	$contents[] = array('text' => '<br>' . TEXT_NEWSLETTER_DATE_ADDED . ' ' . tep_date_short($nInfo->date_added));
	if ($nInfo->status == '1') $contents[] = array('text' => TEXT_NEWSLETTER_DATE_SENT . ' ' . tep_date_short($nInfo->date_sent));
  }
  break;
 }

 if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
echo '			<td width="25%" valign="top">' . "\n";

$box = new box;
echo $box->infoBox($heading, $contents);

echo '			</td>' . "\n";
 }
?>
	  </tr>
	</table></td>
  </tr>
<?php
 }
?>
</table></td>
<!-- body_text_eof //-->
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Link to comment
Share on other sites

  • 1 month later...

I installed the newsletter and when someone subscribes it goes to

 

newsletters_subscribe_success.php

 

The text that says thanks for subscribing is formated to the right and it pusshes the right column over same on the unsubscribe and sugestions?

Thanks!

Link to comment
Share on other sites

Am I missing anything also? I cant figure out how to send people emails for the newsletter or create a template. I dropped the newsletters table and now I get an error as you can see on the first pic.

 

newslettermanager.gif

 

 

I am just confused on how it works i went to tools and tried sending an email to the subscribers and never got it. I got the thanks for subscribing email and thats it.

 

newsletteradmin.gif

Edited by osts
Link to comment
Share on other sites

  • 4 weeks later...

This is a great contribution! I seem to have everything working except I am still getting "Error: Newsletter module required" just as i did with the basic newsletter. Does anyone have any idea how to get this working? Someone in another post mentioned they ousted the "Check For Newsletter Module" and it worked find. They didnt mention where that line was located and I cannot find it! HELP!!!!

 

Jason

Link to comment
Share on other sites

  • 2 months later...

Hello,

 

i installed the newsletter & subscribtion addon, and i really like it.

 

But, when i subscribe, i get an email with this content:

EMAIL_WELCOMECLOSING_BLOCK1CLOSING_BLOCK2CLOSING_BLOCK3UNSUBSCRIBExxxxxxx@xxxxxx

xxxxx.xx

 

(where the xxxx is my mailadres)

 

the subject is EMAIL_WELCOME_SUBJECT

 

in the file catalog/newsletter_subscribe.php i found the line

$message .= EMAIL_WELCOME . CLOSING_BLOCK1 . CLOSING_BLOCK2 . CLOSING_BLOCK3 . UNSUBSCRIBE . $HTTP_POST_VARS['Email'] ;
mail(strtolower($HTTP_POST_VARS['Email']), EMAIL_WELCOME_SUBJECT, $message, "From: " . EMAIL_FROM);

 

All those fields have got names in the languagefile (/catalog//includes/languages/english/newsletters.php).

 

Can anybody help me, please?

Link to comment
Share on other sites

  • 2 months later...

hi

 

can somone help with this one

i have installed the Newsletter & Subscribers contribution

all went ok untill i tried entering admin section

the error that i get is this:

 

Fatal error: Call to undefined function: tep_href_link() in /home/*****/public_html/admin/includes/boxes/newsletters.php on line 18

 

can somone help with that?

 

thanks

 

<?php
/*
 $Id: catalog.php,v 1.20 2002/03/16 00:20:11 hpdl Exp $
 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]
 Copyright © 2002 osCommerce
 Released under the GNU General Public License
*/
?>
<!-- newsletter //-->
         <tr>
           <td>
<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_NEWSLETTER,
 'link'  => tep_href_link(FILENAME_NEWSLETTERS, 'selected_box=newsletter'));
 if ($selected_box == 'newsletter') {
   $contents[] = array('text'  =>

// ########## Contribution Admin Acces Level ##########
// NOTICE INSTALLATION : Si vous avez la contribution Admin Acces Level suivez les consigne ci-dessous
// Veuillez supprimer les commentaires de la ligne 34 à 38 (tep_admin_files_boxes) et mettre le reste en commentaires ligne 28 à 32

// Mettre en commentaire (//) si vous n'avez pas la contribution Admin Access Level
   				   '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_NEWSLETTER_MANAGER . '</a><br>' .
                                  '<a href="' . tep_href_link(FILENAME_NEWSLETTERS_EXTRA_DEFAULT, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_NEWSLETTER_EXTRA_DEFAULT . '</a><br>' .
                                  '<a href="' . tep_href_link(FILENAME_NEWSLETTERS_EXTRA_INFOS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_NEWSLETTER_EXTRA_INFOS . '</a><br>' .
                                  '<a href="' . tep_href_link(FILENAME_NEWSLETTERS_UPDATE, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_NEWSLETTER_UPDATE . '</a><br>' .
                                  '<a href="' . tep_href_link(FILENAME_NEWSLETTERS_SUBSCRIBERS_VIEW, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_NEWSLETTER_SUBSCRIBERS_VIEW . '</a>'																	 

// A Supprimer les commentaires (//) pour la contribution Admin Acces Level
//tep_admin_files_boxes(FILENAME_NEWSLETTERS, BOX_CUSTOMERS_NEWSLETTER_MANAGER) .
   //tep_admin_files_boxes(FILENAME_NEWSLETTERS_EXTRA_DEFAULT, BOX_NEWSLETTER_EXTRA_DEFAULT).
//tep_admin_files_boxes(FILENAME_NEWSLETTERS_EXTRA_INFOS, BOX_NEWSLETTER_EXTRA_INFOS) .
   //tep_admin_files_boxes(FILENAME_NEWSLETTERS_UPDATE, BOX_NEWSLETTER_UPDATE) .   				   		    
//tep_admin_files_boxes(FILENAME_NEWSLETTERS_SUBSCRIBERS_VIEW, BOX_NEWSLETTER_SUBSCRIBERS_VIEW) 
 );
// ########## END - Contribution Admin Acces Level ##########
 }
 $box = new box;
 echo $box->menuBox($heading, $contents);
?>
           </td>
         </tr>
<!-- newsletter_eof //-->

Edited by solokkhz
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...