Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / Newsletter-Only Subscriptions for v1.3x

Newsletter-Only Subscriptions for v1.3x

14 Jan 2009, 7:45 AM
#781
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Post #781 by nagelkruid

Chuckwa:

Do you have a link to download the 2.1.1 version? It is still listing 2.1.0 as the latest version on the Newsletter Subscribe entry on the download page.
Sure: http://www.xs4all.nl/~vee/
Please let me know if it works for you.

Cheers,
Jeroen

18 Jan 2009, 10:43 PM
#782
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Post #782 by ryanb4614

1.3.8 any problem with this and the Easy singup and login mod? I noticed this: \includes\modules\yourtemplate\create_account.php

19 Jan 2009, 6:02 PM
#783
chuckwa avatar

chuckwa

New Zenner

Join Date:
Apr 2008
Posts:
42
Plugin Contributions:
0

Post #783 by chuckwa

nagelkruid:

Sure: http://www.xs4all.nl/~vee/
Please let me know if it works for you.

Cheers,
Jeroen

Got it installed this weekend. Seems to be working fine. Sent out a set of newsletters and have had people successfully subscribe!

21 Jan 2009, 4:03 AM
#784
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Post #784 by ryanb4614

Having some issues with this mod, If a user makes an account, the copy of the welcome letter gets sent to my admin emai, normal... But the Welcome email won't send to the customer?

21 Jan 2009, 8:44 AM
#785
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Post #785 by nagelkruid

ryanb4614:

Having some issues with this mod, If a user makes an account, the copy of the welcome letter gets sent to my admin emai, normal... But the Welcome email won't send to the customer?

I can't reproduce this error in my shop.
You may have altered the file in another way.
When you subscribe to the newsletter as a non-customer, do you get the e-mail with the confirmation link?

If you don't get this confirmation e-mail i think you should relook at your e-mail configuration settings.

Jeroen

21 Jan 2009, 3:20 PM
#786
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Post #786 by ryanb4614

I have the easy signup and login mod?? I do get the confirmation email when they signup just for the news letter, but when creating a new account I get the [create account] email to my admin email but customer does not get the welcome letter....

21 Jan 2009, 3:33 PM
#787
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Post #787 by nagelkruid

ryanb4614:

I have the easy signup and login mod?? I do get the confirmation email when they signup just for the news letter, but when creating a new account I get the [create account] email to my admin email but customer does not get the welcome letter....
I don't know that mod, what i do know is that this mod doesn't do much in the create account section other than checking if an e-mail allready was subscribed for the newsletter.
It does not change anything in the e-mail functionality.

here is the code that gets added to the includes/modules/your_template/create_account.php Maybe you can try and add that manually to your previously used php file

// BEGIN newsletter_subscribe mod 1/1
// If a newsletter only account exists we update the info,
// but keep the subscription active, and give them a message that to
// change they should do so on their account page (after creation).
    if(defined('NEWSONLY_SUBSCRIPTION_ENABLED') && (NEWSONLY_SUBSCRIPTION_ENABLED=='true')) {
      $check_subscribers_query = "select count(*) as total from " . TABLE_SUBSCRIBERS . "
                                  where email_address = '" . zen_db_input($email_address) . "' ";
      $check_subscribers = $db->Execute($check_subscribers_query);
      if ($check_subscribers->fields['total'] > 0) {
        $sql = "UPDATE " . TABLE_SUBSCRIBERS . " SET
                customers_id = '" . (int)$_SESSION['customer_id'] . "',
                email_format = '" . zen_db_input($email_format) . "',
                confirmed = '1' 
                WHERE email_address = '" . zen_db_input($email_address) . "' ";
        $db->Execute($sql);
        $messageStack->add('create_account', SUBSCRIBE_MERGED_NEWSONLY_ACCT);
      } else {
        if (!empty($newsletter)) {
          $sql = "INSERT INTO " . TABLE_SUBSCRIBERS . " 
                  (customers_id, email_address, email_format, confirmed, subscribed_date)
                  VALUES ('" . (int)$_SESSION['customer_id'] . "', '" . zen_db_input($email_address) . "', '" . zen_db_input($email_format) . "', '1', now())";
          $db->Execute($sql);
        }
      }
    }
// END newsletter_subscribe mod 1/1

    // phpBB create account
31 Jan 2009, 5:55 PM
#788
nikki72 avatar

nikki72

New Zenner

Join Date:
Dec 2008
Posts:
97
Plugin Contributions:
0

Post #788 by nikki72

Doodlebuckets:

Thanks! I think that's what I'll do :o) I really love my template. I also just remembered that the defined pages from the newsletter subscription mod are not showing up in the admin Define Pages Editor. I've uploaded the mod twice, so I don't think I missed anything. How do I get those to show up there? Thanks! Amy

PS For anyone who's using the Apple Zen template, the above line of code should have a second break in it to put the subscribe button down to the next line:

$content .= ' <br /><br />' . zen_image_submit (BUTTON_IMAGE_SUBSCRIBE,HEADER_SUBSCRIBE_BUTTON, 'value="' . HEADER_SUBSCRIBE_BUTTON . '" ');

Otherwise it just sits next to the text-only line :)

I have had to play around a bit to get the box to look the same across browsers. I finally got close with this:```
/**

  • Side Box Template

  • @package templateSystem

  • @copyright Copyright 2003-2006 Zen Cart Development Team

  • @copyright Portions Copyright 2003 osCommerce

  • @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

  • @version $Id: tpl_subscribe.php,v 1.1 2006/06/16 01:46:16 Owner Exp $
    */

    $content = '';
    $content .= zen_draw_form('subscribe', zen_href_link(FILENAME_SUBSCRIBE, '', 'SSL'), 'post', '');
    $content .= zen_draw_hidden_field('act', 'subscribe');
    $content .= zen_draw_hidden_field('main_page',FILENAME_SUBSCRIBE);
    $content .= (empty($subscribe_text) ? '' : $subscribe_text);
    $content .= '  ' . zen_draw_input_field('email', '', 'size="18" maxlength="90" style="width: ' .
    ($column_width-20) . 'px" value="' . HEADER_SUBSCRIBE_DEFAULT_TEXT .
    '" onfocus="if (this.value == '' . HEADER_SUBSCRIBE_DEFAULT_TEXT . '') this.value = '';"');
    if(EMAIL_USE_HTML == 'true') {
    $content .= ' <br /> ' . zen_draw_radio_field('email_format', 'HTML', true, 'id="emailhtmlformat"');
    $content .= ' <label for="emailhtmlformat" class="radioButtonLabel">'. ENTRY_EMAIL_HTML_DISPLAY . '</label><br />';
    $content .= zen_draw_radio_field('email_format', 'TEXT', false, 'id="emailtextformat"');
    $content .= ' <label for="emailtextformat" class="radioButtonLabel">'. ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
    }

$content .= ' <br /><br />' . zen_image_submit (BUTTON_IMAGE_SUBSCRIBE,HEADER_SUBSCRIBE_BUTTON, 'value="' . HEADER_SUBSCRIBE_BUTTON . '" ');
$content .= '</form>';
?>

this is my sidebox/tpl_subscribe.php, I am using the apple zen template.
However, in IE the buttons are center align instead of left like in firefox and opera- Has anyone found a fix to that?
thx
9 Feb 2009, 4:02 PM
#789
eminentonline avatar

eminentonline

New Zenner

Join Date:
Nov 2008
Location:
West Sussex
Posts:
43
Plugin Contributions:
0

Post #789 by eminentonline

Hi all

I've tried installing this mod twice now, but still to no avail. FileZilla comes back and says all file transfers were successful; I go in and modify the 2 files - define_newsletter_subscribe and define_newsletter_unsubscribe as instructed.

However, when I log on to my Admin, I click the Customers tab and can still only see the following:

Customers
Orders
Group Pricing
PayPal IPN

Any ideas what I may or may not be doing?
I renamed all of the 'YOUR_TEMPLATE' folders to the name of my template prior to uploading, so that shouldn't be a problem (I forgot that last time....)

Thanks in advance.

Nick.

**Eminent Online** - Makeup, Beauty Products, Fragrances, Lingerie, Ties and Cufflinks at discount prices.

10 Feb 2009, 9:33 AM
#790
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Post #790 by nagelkruid

eminentonline:

However, when I log on to my Admin, I click the Customers tab and can still only see the following:
Customers
Orders
Group Pricing
PayPal IPN
Please look in your admin folder, go to includes/boxes/extra_boxes
Do you have any file there that relates to subscription_manager_ ?

10 Feb 2009, 10:30 AM
#791
eminentonline avatar

eminentonline

New Zenner

Join Date:
Nov 2008
Location:
West Sussex
Posts:
43
Plugin Contributions:
0

Post #791 by eminentonline

Hi - just checked, and yes, I have one file:

subscription_manager_customers_dhtml.php

Regards

Nick.

**Eminent Online** - Makeup, Beauty Products, Fragrances, Lingerie, Ties and Cufflinks at discount prices.

10 Feb 2009, 2:01 PM
#792
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Post #792 by nagelkruid

eminentonline:

Hi - just checked, and yes, I have one file:
subscription_manager_customers_dhtml.php
Nick.

Ok, thats pretty good, afaik that file should enable it to show in your admin section. Can you actually verify that the file you uploaded has content on your webserver and that it has the correct/same permissions as the other files in that folder?

This file refers to 2 other files:
your_admin/includes/languages/english/subscription_manager.php
and
your_admin/includes/extra_datafiles/subscription_manager_filenames.php
Can you check if these files have uploaded correctly as well?

BTW, i also noticed on your site that the page index.php?main_page=subscribe
does not load correctly.
It loads the left column and then stops which can be referred to as a "blank page". If you search the forum for blank page you will find dr.byte's debug script that will help you get the exact error why this page can't load.

If you can post the error you are getting when you use that debug page it would certainly help.

10 Feb 2009, 6:10 PM
#793
eminentonline avatar

eminentonline

New Zenner

Join Date:
Nov 2008
Location:
West Sussex
Posts:
43
Plugin Contributions:
0

Post #793 by eminentonline

nagelkruid:

BTW, i also noticed on your site that the page index.php?main_page=subscribe
does not load correctly.
It loads the left column and then stops which can be referred to as a "blank page". If you search the forum for blank page you will find dr.byte's debug script that will help you get the exact error why this page can't load.

Not sure I understand what you mean there - what is it exactly that should be loading but doesn't?

Regards

Nick.

**Eminent Online** - Makeup, Beauty Products, Fragrances, Lingerie, Ties and Cufflinks at discount prices.

10 Feb 2009, 10:40 PM
#795
eminentonline avatar

eminentonline

New Zenner

Join Date:
Nov 2008
Location:
West Sussex
Posts:
43
Plugin Contributions:
0

Post #795 by eminentonline

brilliant! Thanks for pointing that out - I probably wouldn't have noticed. I've not managed to see the subscribe page yet, as I've not been able to get the mod to work.

I'll run the de-bug in the morning when I'm on my main laptop and post the results.

To be fair, just about every mod I've tried to do so far hasn't worked - I don't think it's entirely down to me, as I always follow the instructions to the letter (apart from the one mistake I made when I first tried to install this one). The template I use is one provided by my dropshipper (with a couple of minor changes), so don't know if they've altered the coding in any way.

Regards, and thanks for your help on this so far.

Nick

**Eminent Online** - Makeup, Beauty Products, Fragrances, Lingerie, Ties and Cufflinks at discount prices.

11 Feb 2009, 11:07 AM
#796
eminentonline avatar

eminentonline

New Zenner

Join Date:
Nov 2008
Location:
West Sussex
Posts:
43
Plugin Contributions:
0

Post #796 by eminentonline

Here is the debug report on the 'subscribe' problem:

[10-Feb-2009 09:38:43] PHP Warning: main(includes/templates/template_default/templates/tpl_subscribe_default.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /home/sites/eminent.me.uk/public_html/includes/templates/Drop6/common/tpl_main_page.php on line 72
[10-Feb-2009 09:38:43] PHP Warning: main(includes/templates/template_default/templates/tpl_subscribe_default.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /home/sites/eminent.me.uk/public_html/includes/templates/Drop6/common/tpl_main_page.php on line 72
[10-Feb-2009 09:38:43] PHP Warning: main(includes/templates/template_default/templates/tpl_subscribe_default.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /home/sites/eminent.me.uk/public_html/includes/templates/Drop6/common/tpl_main_page.php on line 72
[10-Feb-2009 09:38:43] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/template_default/templates/tpl_subscribe_default.php' (include_path='.:/usr/share/pear') in /home/sites/eminent.me.uk/public_html/includes/templates/Drop6/common/tpl_main_page.php on line 72

I'll take a further look to see what other problems it brings up.

**Eminent Online** - Makeup, Beauty Products, Fragrances, Lingerie, Ties and Cufflinks at discount prices.

11 Feb 2009, 11:13 AM
#797
eminentonline avatar

eminentonline

New Zenner

Join Date:
Nov 2008
Location:
West Sussex
Posts:
43
Plugin Contributions:
0

Post #797 by eminentonline

The only other one I have is this one, but I guess I need to post this into the correct thread:

[10-Feb-2009 16:00:51] PHP Fatal error: Call to undefined function: rss_feed_link() in /home/sites/eminent.me.uk/public_html/includes/templates/Drop6/common/tpl_footer.php on line 22

Regards

Nick.

**Eminent Online** - Makeup, Beauty Products, Fragrances, Lingerie, Ties and Cufflinks at discount prices.

11 Feb 2009, 11:18 AM
#798
eminentonline avatar

eminentonline

New Zenner

Join Date:
Nov 2008
Location:
West Sussex
Posts:
43
Plugin Contributions:
0

Post #798 by eminentonline

Oh, and this one.......

[03-Feb-2009 14:15:21] PHP Parse error: syntax error, unexpected T_STRING in /home/sites/eminent.me.uk/public_html/includes/modules/sideboxes/more_information.php on line 17

To be fair though, I need to prioritise, and the newsletter sign up is most important, followed by the more_information, followed by the RSS Feed.

**Eminent Online** - Makeup, Beauty Products, Fragrances, Lingerie, Ties and Cufflinks at discount prices.

11 Feb 2009, 11:31 AM
#799
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Post #799 by nagelkruid

eminentonline:

Here is the debug report on the 'subscribe' problem:
I'll take a further look to see what other problems it brings up.

Heh, looks like you are going to have fun debugging some stuff :)
Anyway, for the subscribe page, it seems to be failing because it cannot locate tpl_subscribe_default.php

can you post the exact location where you have copied that file to?

11 Feb 2009, 12:01 PM
#800
eminentonline avatar

eminentonline

New Zenner

Join Date:
Nov 2008
Location:
West Sussex
Posts:
43
Plugin Contributions:
0

Post #800 by eminentonline

Oops!

Looks like when I copied all the files across, I also copied the 'tpl_main_page_example.php' file to:

admin/ includes/ templates/ Drop6/common

Do you think this could be the problem?

**Eminent Online** - Makeup, Beauty Products, Fragrances, Lingerie, Ties and Cufflinks at discount prices.