Zen Cart Logo
Forums / All Other Contributions/Addons / Newsletter-Only Subscriptions for v1.3x

Newsletter-Only Subscriptions for v1.3x

Views: 295,593

Results 281 to 300 of 1,165
25 Sep 2006, 4:55 PM
#281
bhfruitcakeco avatar

bhfruitcakeco

New Zenner

Join Date:
Aug 2006
Posts:
22
Plugin Contributions:
0

Newsletter-Only Subscriptions for v1.3x

NotGoddess:

Like other searches, the tool kit searches line by line so it wouldn't catch the wrapping. If you ever run into that again, you can try searching by part of the string that's significant-e.g. $column_width - 30 . You'll get more false positives, but may have more luck finding it.

Thanks! I'll keep that in mind.

NotGoddess:

btw, does this mean we're on the fruitcake list? :) :)

-Ng_

Only if you want to be. :)

25 Sep 2006, 6:05 PM
#282
lamz avatar

lamz

New Zenner

Join Date:
Jul 2006
Posts:
23
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

hi

i was wondering:

when i put the form on my site i can do it eighter in a sitebox ore in the header. is it possible to put it in the center of my mainpage?

26 Sep 2006, 3:33 PM
#283
dgwyn avatar

dgwyn

New Zenner

Join Date:
Nov 2005
Posts:
18
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

NotGoddess:

Maybe I can just get this fixed one file at a time. :) :)

@dgwyn:

I've attached a patch that updates create_account.php module and admin/customers.php for 1.3.5 it adds the subscribed date for customers.

What it does is set the subscribed date to the current time-so if a customer subscribes, then unsubscribes, then subscribes again, the date will be that 2nd subscription date.

[snip]
I'll also get this on my site.

What a day I've had with subscribers! I was testing out the patch that had been applied, and writing to my hosting support that it still wasn't working. I hit refresh on the suibscribers screen, and the update button disappeared and so did all my non-customer subscribers! Fortunately I had a recent enough backup to restore their names.

However, even with the patch, I still get a null date when a customer subscribes to the newsletter. Any ideas?

26 Sep 2006, 5:24 PM
#284
dgwyn avatar

dgwyn

New Zenner

Join Date:
Nov 2005
Posts:
18
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I could be wrong, but watching the flow on my site today, I think the page called when a customer updates their newsletter status is account_newsletter, and the logic needs to be in the file header_php.php. Again, I've been wrong many, many times before, but I think that may be the source of the data error.

26 Sep 2006, 6:14 PM
#285
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

lamz:

when i put the form on my site i can do it eighter in a sitebox ore in the header. is it possible to put it in the center of my mainpage?

If you look at the readme or sample header file, you'll see the snippet you need. You should be able to place this anywhere you can put php code.

If you want to put the sidebox setup inside the page, it's a tad bit more work (because you want to avoid duplicate id's) but I can get you the snippet if you need it.

-Ng_

26 Sep 2006, 6:19 PM
#286
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

dgwyn:

I could be wrong, but watching the flow on my site today, I think the page called when a customer updates their newsletter status is account_newsletter, and the logic needs to be in the file header_php.php. Again, I've been wrong many, many times before, but I think that may be the source of the data error.
I've got two things dead-lining tonight, but if I can I'll look into this again this evening and make sure the right calls are being made. I think you may be correct in that I don't think I updated that file, but I can't check it here :(

-Ng_

27 Sep 2006, 2:21 PM
#287
mathias avatar

mathias

New Zenner

Join Date:
Aug 2006
Posts:
6
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Radish:

Hi Ng,

Sorry to post again, but I was doing some other testing and when I signed up for an account with a duplicate email address i got this ugly sql error:

1062 Duplicate entry '[email protected]' for key 2
in:
[INSERT INTO subscribers (customers_id, email_address, email_format, confirmed) VALUES ('9', '[email protected]', 'HTML', '1')]

> 
> If I refresh, it goes back to my cart with the proper error displayed.  I can try to submit again, and an alert pops up stating my 'state' needs to have more than 2 characters.
> 
> Is this something I should run from my ZC admin?
> 
> Thanks again,
> 
> Colin
Hi,

I've installed the last version of the contribution, and the bug is still present.

Is it planned to fix it ?

Thanks, 

Mathias
27 Sep 2006, 3:23 PM
#288
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Actually I've decided to label it a 'feature' - free sql error with every mod!
:) :) :) :).

Yes, I plan to fix it. I've put aside an hour each night this week to just work on this contrib. Normally it wouldn't take that much to update, but I'm also adding the unsubscribe feature/sidebox/page module and had to rewrite part of that (and still have it back compatible).

You know how about I do this. I'll backtrack the tree and just update the current release so it's fully compat-fixing the known bugs and get that out tonight.

Then I'll re-integrate the new features into another release.

-Ng_

27 Sep 2006, 6:07 PM
#289
riiver_of_dreams avatar

riiver_of_dreams

New Zenner

Join Date:
Sep 2006
Posts:
35
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I just installed the newsletter only mod and everything is fine in the admin, but when I try to go to the storefront, all I get is this error:

Warning: main(includes/templates/sns/common/tpl_header.php): failed to open stream: No such file or directory in /home/cook/public_html/shop/includes/templates/template_default/common/tpl_main_page.php on line 70

Warning: main(includes/templates/sns/common/tpl_header.php): failed to open stream: No such file or directory in /home/cook/public_html/shop/includes/templates/template_default/common/tpl_main_page.php on line 70

Fatal error: main(): Failed opening required 'includes/templates/sns/common/tpl_header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cook/public_html/shop/includes/templates/template_default/common/tpl_main_page.php on line 70

I am new to zencart (although I had this mod working fine in the past, before yahoo ate my catalog--have since moved to another host who is zencart certified---) and new to php, plus totally clueless about sql.

Any help would be appreciated.

27 Sep 2006, 6:13 PM
#290
riiver_of_dreams avatar

riiver_of_dreams

New Zenner

Join Date:
Sep 2006
Posts:
35
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Please pardon my ignorance---fixed the problem. I uploaded the tpl_header.php.example file without realizing what it was.

27 Sep 2006, 6:15 PM
#291
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

@riiver_of_dreams:
I definately need to start making a faq :)

(will put it on the todo list as soon as she has time to make a todo list)

-Ng_

28 Sep 2006, 1:20 PM
#292
lighterboy_crew avatar

lighterboy_crew

New Zenner

Join Date:
Jun 2006
Posts:
10
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

NotGoddess:

@riiver_of_dreams:
I definately need to start making a faq :)

(will put it on the todo list as soon as she has time to make a todo list)

-Ng_

Hi Ng, i'm a newbies here. i have put this mod to my store. i followed all the intructions on the 'readme'. but it didnt show my Newslleter suscribe sidebox.

Yes, i glad if u can making a FAQ for this mod right know.:yes:

28 Sep 2006, 4:42 PM
#293
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Lighterboy_crew:

Hi Ng, i'm a newbies here. i have put this mod to my store. i followed all the intructions on the 'readme'. but it didnt show my Newslleter suscribe sidebox.

Yes, i glad if u can making a FAQ for this mod right know.:yes:

I'll see what I can do tonight when I finished up the mod (sorry folks-I forgot I had to wake up at 4am today), but doing a quick look at your site it looks like you are missing the language file for subscribe.php so it's a chance that you didn't rename all of the 'YOUR_TEMPLATE' directories or copy the files over.

At bare minimum if you have:
/includes/modules/sideboxes/subscribe.php
and/or
/includes/modules/sideboxes/foo/subscribe.php
(where foo is your template name)
You should see the box appear in admin->tools->layout boxes controller.
where you can then turn it on and have it appear.

If it's not showing up there, you need to make sure the files are in place first.

-Ng_

29 Sep 2006, 3:15 AM
#294
lighterboy_crew avatar

lighterboy_crew

New Zenner

Join Date:
Jun 2006
Posts:
10
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

NotGoddess:

I'll see what I can do tonight when I finished up the mod (sorry folks-I forgot I had to wake up at 4am today), but doing a quick look at your site it looks like you are missing the language file for subscribe.php so it's a chance that you didn't rename all of the 'YOUR_TEMPLATE' directories or copy the files over.

At bare minimum if you have:
/includes/modules/sideboxes/subscribe.php
and/or
/includes/modules/sideboxes/foo/subscribe.php
(where foo is your template name)
You should see the box appear in admin->tools->layout boxes controller.
where you can then turn it on and have it appear.

If it's not showing up there, you need to make sure the files are in place first.

-Ng_

Thank you for replying,

Yes, it showing up..But, the size of side box is to large. and i refer to your links:
http://notgoddess.com/scripts/newsletter-subscribe?pg=2
and http://www.zen-cart.com/forum/showpost.php?p=266385&postcount=278

i chance a size to 45 px like you suggest. but is still looks the same and not fixed to my store.
The box on my sidebox are only showing up this thing----->

**box_heading_subscribe (more...this is on title)

BOX-SUBCRIBE_DEFAULT_TEXT

EMPTY BOX(ONE BOX)

HEADER_SUBSCRIBE_BUTTON**

my questions also, why the box or button like html and text only not appear? i would like it can looks like this site: http://www.duckydoodles.com/ or http://www.newyorkcustomgolf.com

Can u help me NG?.i'm quiet :wacko: now..

29 Sep 2006, 4:45 AM
#295
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Lighterboy_crew:

Thank you for replying,
Yes, it showing up..But, the size of side box is to large. and i refer to your links:
http://notgoddess.com/scripts/newsletter-subscribe?pg=2
and http://www.zen-cart.com/forum/showpost.php?p=266385&postcount=278

i chance a size to 45 px like you suggest. but is still looks the same and not fixed to my store.
Those posts you refer to are a special case-your sidebox width/inner sidebox width don't have that issue.
You want to use the other 'too wide' solution, with the patch found on my site page under 'The sidebox may be too wide (v2.0.2)' or just wait for the release.

Lighterboy_crew:

The box on my sidebox are only showing up this thing----->

**box_heading_subscribe (more...this is on title)

BOX-SUBCRIBE_DEFAULT_TEXT

EMPTY BOX(ONE BOX)

HEADER_SUBSCRIBE_BUTTON**
As I mentioned in the post above-you don't have your language files in place, nor it seems the 'extra definitions'
Double-check to make sure you renamed all the 'YOUR_TEMPLATE' folders to match your real template name and that they are all moved over.
Also, you have multiple languages on your site. Remember that you need to copy the language file into each language and translate the text (or leave it English).

Lighterboy_crew:

my questions also, why the box or button like html and text only not appear? i would like it can looks like this site: http://www.duckydoodles.com/ or http://www.newyorkcustomgolf.com

You must have HTML mail turned on in your admin section in order for those radio buttons to show (because if you don't use HTML mail, why offer folks the choice when you alway send as text).
Check out: admin -> configuration -> email options -> Use MIME HTML When Sending Emails
If it is true, you should see the radio buttons.

-Ng_

29 Sep 2006, 7:40 AM
#296
lighterboy_crew avatar

lighterboy_crew

New Zenner

Join Date:
Jun 2006
Posts:
10
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

NotGoddess:

As I mentioned in the post above-you don't have your language files in place, nor it seems the 'extra definitions'
Double-check to make sure you renamed all the 'YOUR_TEMPLATE' folders to match your real template name and that they are all moved over.
-Ng_

For your info, before this (last weeks) i already rename "YOUR_TEMPLATE' to my template. but i rename it a little bit different from real template. Example baru_lain is a template i use know and i renamed to Baru only. when i try renamed as u suggest it cant in my FTP. i dont know why.

do u have any ideas?..

29 Sep 2006, 11:40 AM
#297
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Lighterboy_crew:

For your info, before this (last weeks) i already rename "YOUR_TEMPLATE' to my template. but i rename it a little bit different from real template. Example baru_lain is a template i use know and i renamed to Baru only. when i try renamed as u suggest it cant in my FTP. i dont know why.

do u have any ideas?..

I cannot give you technical advise on the ftp, sorry.
If you cannot rename the folder can you upload it again, with the correct name?

-Ng_

29 Sep 2006, 3:31 PM
#298
bhfruitcakeco avatar

bhfruitcakeco

New Zenner

Join Date:
Aug 2006
Posts:
22
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I have two suggestions:

The first is to take NG's advice about renaming the file locally then uploaded it.

The second would be to check your chmod settings. Not too long ago I had a b*tch of a time with my admin panel. It turned out I had somehow changed the settings on a folder to 444, and as such, couldn't upload a file I had made changes to, to make the admin page work.

30 Sep 2006, 4:40 AM
#299
fruitfly avatar

fruitfly

New Zenner

Join Date:
Mar 2006
Posts:
17
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Hi all,

I have what I hope is a very simple request. I'm trying to figure out how to make a little change in the backend to satisfy a client --

They'd like to have the newsletter-only subscribers default to HTML, rather than to text, and would like to have it not show the options for HTML / text. (I know it's considered somewhat bad form... but this is what they want, and I have to agree on some level that nearly everyone uses HTML-abled email clients these days...)

Can anyone tell me the changes I need to make to have this be the case? I've tried a few things, but with my limited PHP knowledge, all I can seem to do is screw it up royally. :D

***Edited: Ok, so I'm smarter than I thought -- I can remove the choices via the template, but then it defaults to TEXT -- I cannot seem to figure out where to change the default to HTML. I'm going to keep digging, but it would be so nice if someone beats me to it and answers this (as I've looked, a LOT, already.)

Thanks in advance for any help!

30 Sep 2006, 4:58 AM
#300
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

FruitFly:

They'd like to have the newsletter-only subscribers default to HTML, rather than to text, and would like to have it not show the options for HTML / text.

Rather than tell you the editing in the module (cuz that'll change when I get the next one out, just do this:
In the sidebox template:

includes/templates/yourtemplate/sideboxes/tpl_subscribe.php:

Take out:

   if(EMAIL_USE_HTML == 'true') {
    $content .= ' <br /> <label>' . zen_draw_radio_field('email_format', 'HTML', true) . ENTRY_EMAIL_HTML_DISPLAY . '</label>';
    $content .= ' <label style="white-space:nowrap">' . zen_draw_radio_field('email_format', 'TEXT', false) . ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
   }

add in:

   $content .= zen_draw_hidden_field('email_format', 'HTML');

What this does is change those radio buttons to a hidden field set to the HTML value. Now customers will still be able to change that in their account settings if you don't edit that page, but news-only subscribers will get html by default (unless you change it in admin).

-Ng_