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

26 Nov 2009, 10:53 AM
#881
ftdc avatar

ftdc

New Zenner

Join Date:
Oct 2009
Location:
Stockholm, Sweden
Posts:
16
Plugin Contributions:
0

Post #881 by ftdc

Forgot some info!!!

Mods i have are:

column layout grid

zenlightbox

ultimate seo url's

multilanguage ezpages

loginbox

languagecurrency links in header

I also have a translation of this in swedish but i cant get it to work so... those hours translating it makes it more frustating not getting it to work past first stepp in the installatin.:censored:king:censored:it mo:censored:ing codes dont do what i want it to

26 Nov 2009, 11:42 AM
#882
ftdc avatar

ftdc

New Zenner

Join Date:
Oct 2009
Location:
Stockholm, Sweden
Posts:
16
Plugin Contributions:
0

Post #882 by ftdc

:oops:got it onley english in admin works great now thanks for everyone involved in thes mod great one if it verent for you great coders out there us noobs wouldn't have someone to try to get as god as hope y'all have a great day, week, year One Love:smartalec:

27 Nov 2009, 10:03 AM
#883
coolglobal avatar

coolglobal

New Zenner

Join Date:
Jul 2007
Posts:
64
Plugin Contributions:
0

Post #883 by coolglobal

Is there any way to NOT have the confirm email sent out.
I just want people to sign up for the newsletter, and they are immediately confirmed and on the list. All Done. I can work out the email bounces later. All this confirming stuff is inefficient and a hassle for the potential subscriber. Its my job to sort out the good from the bad.

28 Nov 2009, 9:59 AM
#884
coolglobal avatar

coolglobal

New Zenner

Join Date:
Jul 2007
Posts:
64
Plugin Contributions:
0

Post #884 by coolglobal

I worked out a simple solution. I edited the text on the confirm email and the related text on the site, to say the new subscription was working. I can then confirm the subscriptions manually in admin.

Any ideas on automating the confirmation part for admin? A line of php?

28 Nov 2009, 4:14 PM
#885
astarkley avatar

astarkley

New Zenner

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

Post #885 by astarkley

Can you tell me where the file is located to change the picture that is sent with the confirmation e-mail ? The current picture is the Engeltjes & Draken logo. I'd like to change it to my own. :smile:

28 Nov 2009, 11:50 PM
#886
senortim avatar

senortim

New Zenner

Join Date:
Jul 2007
Posts:
75
Plugin Contributions:
0

Post #886 by senortim

nagelkruid:

Tell me what happens if you run this command in the sql patchtool which is available under tools:

UPDATE subscribers SET email_format = 'TEXT' WHERE email_address = '[email protected]';

>  
> do you get a green line that says succesfully processed or do you get an error?

Thanks, nagelkruid. I get a green line. Also, I know that the db_prefix is correct. (BTW, The original symptom of this problem was that all the items in the subscribe sidebox where filled with the constant names and thus ALL CAPS. Part of the reason I suspect the define pages.)
28 Nov 2009, 11:53 PM
#887
senortim avatar

senortim

New Zenner

Join Date:
Jul 2007
Posts:
75
Plugin Contributions:
0

Post #887 by senortim

senortim:

Also, I know that the db_prefix is correct.

In case this tidbit got lost in the thread, the module did work fine for me for several months. It probably failed when I added a whole slew of define page.

Thanks again for any ideas! Until this is solved Amazon is getting all my client's profits. :(

29 Nov 2009, 11:36 AM
#888
coolglobal avatar

coolglobal

New Zenner

Join Date:
Jul 2007
Posts:
64
Plugin Contributions:
0

Post #888 by coolglobal

Astarkley:

Can you tell me where the file is located to change the picture that is sent with the confirmation e-mail ? The current picture is the Engeltjes & Draken logo. I'd like to change it to my own. :smile:

Depending on your browser or email client:
Try right clicking the image in question and select view image, the path to the image will become visible in the address bar. A simple trick to locate the path to any image.

Firefox is a great browser to use for developing, if you don't already have it. Free to download.

29 Nov 2009, 6:29 PM
#889
nagelkruid avatar

nagelkruid

Zen Follower

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

Post #889 by nagelkruid

Astarkley:

Can you tell me where the file is located to change the picture that is sent with the confirmation e-mail ? The current picture is the Engeltjes & Draken logo. I'd like to change it to my own. :smile:
O dear,
feels like a little red ears moment here :P
the logo is only added in the html email so check the email_template_newsletter_subscription.html in your email folder.
I wonder how it resolves to loading our logo though, it should load whatever you have in email/header.jpg but when that is missing, you could see our alt tag, as that seems to be hardcoded in there, sorry

29 Nov 2009, 6:37 PM
#890
nagelkruid avatar

nagelkruid

Zen Follower

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

Post #890 by nagelkruid

senortim:

Thanks, nagelkruid. I get a green line. Also, I know that the db_prefix is correct. (BTW, The original symptom of this problem was that all the items in the subscribe sidebox where filled with the constant names and thus ALL CAPS. Part of the reason I suspect the define pages.)
Yeah, the green line tells us few good things:

  1. your table prefix is correct
  2. the table subscribers exists

I support the idea that the ALL CAPS does indicate there may be a problem with your define pages, or the contents of it.

29 Nov 2009, 6:50 PM
#891
nagelkruid avatar

nagelkruid

Zen Follower

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

Post #891 by nagelkruid

senortim:

Hi Jeroen,

Oh, wow. So I just realized this error is not just the sidebox but it's hitting my registration as well. (Maybe that's a clue about what's wrong?)

Something really seems wrong with my defines. The "newsletter_subscribe_filesnames.php" is in /includes/extra_datafiles/ -- and he "subscribe.php" is in /includes/languages/english/my_template/.

I'm getting an error now on the define "TABLE_SUBSCRIBERS".

Thanks for your help!
Tim
As the SQL query catched in the admin, i am thinking it has to be somewhere in the shop-side of things.
The only place i would suspect this to go wrong is indeed in newsletter_subscribe_filenames.php.
You allready said it's there, if it isn't corrupt then i wouldn't know why it would throw that error.
Maybe you should try re-uploading that file.
If that doesn't solve anything then i don't think the error is in subscribe mod, but i would probably remove the mod anyway and see if the shop would start running without an error again, or if you then possibly get a different error message.

1 Dec 2009, 7:08 PM
#892
senortim avatar

senortim

New Zenner

Join Date:
Jul 2007
Posts:
75
Plugin Contributions:
0

Post #892 by senortim

Thanks, nagelkruid. I'll give that a try. It might take a while to see; I've got the site running in a crippled mode that required some modifications to code. (Would be great!! if ZC would let us turn off MODs in a control panel!!) :-)

2 Dec 2009, 8:15 AM
#893
nagelkruid avatar

nagelkruid

Zen Follower

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

Post #893 by nagelkruid

senortim:

Thanks, nagelkruid. I'll give that a try. It might take a while to see; I've got the site running in a crippled mode that required some modifications to code. (Would be great!! if ZC would let us turn off MODs in a control panel!!) :-)
Heh, they can write a control panel, but it is still up to the people who write these mods to have a proper disable/enable function.

But i agree, especially for code added to core-files and autoloaders, would be great to have an if(this_mod_enabled) option in there....mmm, sounds like a perfect world...:cool:

5 Dec 2009, 1:58 AM
#894
slappadudle avatar

slappadudle

New Zenner

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

Post #894 by slappadudle

Hi there,

I need urgent support on this one.. After installation my site is now just blank pages. I have not touched tpl_header.php

http://www.lizdisler.com.au

Any ideas?

5 Dec 2009, 2:21 AM
#895
slappadudle avatar

slappadudle

New Zenner

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

Post #895 by slappadudle

slappadudle:

I have not touched tpl_header.php

Shortly after writing this I realised that the file had actually been overwritten by an example but now, even after restoring the original, it still loads blank. What's going on??

5 Dec 2009, 7:56 AM
#896
nagelkruid avatar

nagelkruid

Zen Follower

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

Post #896 by nagelkruid

slappadudle:

Hi there,

I need urgent support on this one.. After installation my site is now just blank pages. I have not touched tpl_header.php

http://www.lizdisler.com.au

Any ideas?

  • restore your backup
    or
  • read the "i get the blank page" what to do from drbyte.
    it will install an error logging that will show you what exactly is causing the blank page.
6 Dec 2009, 11:37 PM
#897
slappadudle avatar

slappadudle

New Zenner

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

Post #897 by slappadudle

nagelkruid:

  • restore your backup
    or
  • read the "i get the blank page" what to do from drbyte.
    it will install an error logging that will show you what exactly is causing the blank page.

Done - here's the results. I have removed any empty lines at the bottom of language files, which has fixed blank pages before but not today :(
A fatal error is listed near the bottom but what's causing it??

Notice: Constant TABLE_SUBSCRIBERS already defined in /home/disler/public_html/includes/extra_datafiles/subscription_manager_filenames.php on line 24

Notice: Constant FILENAME_SUBSCRIBE already defined in /home/disler/public_html/includes/extra_datafiles/subscription_manager_filenames.php on line 26

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/disler/public_html/includes/local/configure.php:1) in /home/disler/public_html/includes/functions/sessions.php on line 108

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/disler/public_html/includes/local/configure.php:1) in /home/disler/public_html/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/disler/public_html/includes/local/configure.php:1) in /home/disler/public_html/includes/init_includes/init_sanitize.php on line 122

Notice: Constant OFFICE_IP_TO_HOST_ADDRESS already defined in /home/disler/public_html/includes/languages/english/email_extras.php on line 103

Warning: Cannot modify header information - headers already sent by (output started at /home/disler/public_html/includes/local/configure.php:1) in /home/disler/public_html/includes/init_includes/init_templates.php on line 78

Notice: Constant SUBSCRIBE_DUPLICATE_CUSTOMERS_ERROR already defined in /home/disler/public_html/includes/languages/english/extra_definitions/subscription_manager_extra_definitions.php on line 3

Notice: Constant SUBSCRIBE_DUPLICATE_NEWSONLY_ERROR already defined in /home/disler/public_html/includes/languages/english/extra_definitions/subscription_manager_extra_definitions.php on line 4

Notice: Constant SUBSCRIBE_DUPLICATE_NEWSONLY_ACCT already defined in /home/disler/public_html/includes/languages/english/extra_definitions/subscription_manager_extra_definitions.php on line 5

Notice: Constant SUBSCRIBE_DUPLICATE_OTHER_ACCT already defined in /home/disler/public_html/includes/languages/english/extra_definitions/subscription_manager_extra_definitions.php on line 6

Notice: Constant TEXT_SUBSCRIBER_DEFAULT_NAME already defined in /home/disler/public_html/includes/languages/english/extra_definitions/subscription_manager_extra_definitions.php on line 9

Fatal error: Call to undefined function zen_get_languages() in /home/disler/public_html/index.php on line 25

Notice: Object of class queryFactoryResult could not be converted to int in Unknown on line 0
7 Dec 2009, 8:23 AM
#898
nagelkruid avatar

nagelkruid

Zen Follower

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

Post #898 by nagelkruid

slappadudle:

Done - here's the results. I have removed any empty lines at the bottom of language files, which has fixed blank pages before but not today :(
A fatal error is listed near the bottom but what's causing it??
Is this a custom path you made? includes/local/
I don't have it.

Looking at the errors, i have no clue where this comes from, but i can bet you, you won't be able to reproduce this on a regular shop :huh:

I would just undo the changes you have made by removing the files placed for this mod and removing the manual edits you may have done.

Get your store back up and running and then reconsider how bad you need people to signup for newsletters without subscribing :cool:

If you want to have another go, i recommend test stuff locally before you go live with it as it should be sales coming in 1st place, not services, right?

10 Dec 2009, 1:28 AM
#899
astarkley avatar

astarkley

New Zenner

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

Post #899 by astarkley

Thank you for letting me know.

10 Dec 2009, 1:46 AM
#900
astarkley avatar

astarkley

New Zenner

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

Post #900 by astarkley

I just installed "login as customer from admin" and now my newletter subscription only feature will not generate a subscription only account from the index page. It will create a subscription only accout from the admin panel, howerver. Can anyone give me a few clues. My site is http//letsseethemenu.com :blink: