Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

newsletter_module_v02


lolstar

Recommended Posts

hello i have this problem

when i want to send a newsletter whit the module newsletter:

 

what matter ?

 

/////////////////////////////////////////

 

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

 

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

 

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

 

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

 

////////////////////////////////////////

Link to comment
Share on other sites

  • 2 months later...

Ok i've find the problem (sorry for my english...)

When you use newsletter manager (newsletter.php) you can chose the module to use (newsletter/newsletter_subscriber/products_notification).

 

If you use newsletter_subscriber you use the function :

 function newsletter_subscribers($header, $title, $contenta, $unsubscribea, $unsubscribeb, $footer)

(in admin/modules/newsletters/newsletter_subscribers.php)

If you use another module you use this function :

function newsletter($title, $content)

(in admin/modules/newsletters/newsletter.php)

 

So, you can see that some parameters are missing...

 

Change that :

 

in admin/modules/newsletters/newsletter.php

 

change :

function newsletter($title, $content)

in

 function newsletter_subscribers($header, $title, $content, $unsubscribea, $unsubscribeb, $footer)

idem in products_notification.php

 

in admin/newsletter.php

next elseif ($HTTP_GET_VARS['action'] == 'send') {

replace :

    

$newsletter_query = tep_db_query("select title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . tep_db_input($nID) . "'");

$newsletter = tep_db_fetch_array($newsletter_query);

by

    

$newsletter_query = tep_db_query("select p.title, p.content, p.module, q.header, q.footer, q.unsubscribea, q.unsubscribeb from " . TABLE_NEWSLETTERS . " p, " . TABLE_SUBSCRIBERS_INFOS . " q where p.newsletters_id = '" . tep_db_input($nID) . "' ");

   $newsletter = tep_db_fetch_array($newsletter_query);

after...

replace

  $module = new $module_name($nInfo->title, $nInfo->content);

by

$module = new $module_name($nInfo->header, $nInfo->title, $nInfo->content, $nInfo->unsubscribea, $nInfo->unsubscribeb, $nInfo->footer);

 

inthe same file find

 } elseif ($HTTP_GET_VARS['action'] == 'confirm') {

and make the same changes as below..

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...