Ok, I reloaded the orriginal file by ftp and all is fine!
One of those misterious things...
Thanks
Printable View
Ok, I reloaded the orriginal file by ftp and all is fine!
One of those misterious things...
Thanks
Not been able to locate this in the thread, but have got this error message in a ZC1.3.0.2 as soon as I click the email button.I'd appreciate any advice on this.Code:1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ':admin_id' at line 1
in:
[select 'ADMIN' as customers_firstname, admin_name as customers_lastname, admin_email as customers_email_address from zen_admin where admin_id = $SESSION:admin_id ]
That is a reference to this thread:Quote:
Originally Posted by Ryk
http://www.zen-cart.com/forum/showthread.php?t=38281
If you use that, you also need to make edits to audience.php (in catalog includes section...email seems to draw from there rather than admin)
-Ng_
Actually, the code NotGoddess posted a link to is "already" built-in to v1.3.0.2.
However, if you're getting that error, you likely missed upgrading your /includes/functions/audience.php file.
An odd one that as I'd updated (twice) with the most recent version which I downloaded this evening - unless it failed to transfer via FTP.
However, following the edit, everything now works fine! Thanks.
Just an update-
I'll be putting out the final release this week. Apologies for the delay, but RL takes precedence. :(
-Ng_
I am also looking for code for a page like this. Has it been posted somewhere?Quote:
Originally Posted by NotGoddess
Any news on the updated version?
Also, has anyone used the Zen Cart newsletter system to send the newsletter to over 1000 users?
If so, have you had any problems with the script timing out or other problems?
Yes, and yes. Alternative: http://www.zen-cart.com/forum/showth...150#post216150Quote:
Originally Posted by flakrat
after subscribe successful, press refresh on the borwser
or click more than once on the link to confirm subscription in email
then;
Warning: require(includes/templates/template_default/templates/tpl_subscribe_header.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\includes\modules\ilync\subscribe_header.php on line 20
Fatal error: require() [function.require]: Failed opening required 'includes/templates/template_default/templates/tpl_subscribe_header.php' (include_path='.;C:\php5\pear') in C:\wamp\www\includes\modules\ilync\subscribe_header.php on line 20
is this normal, or did I do anything wrong ??
Eric
I'd start by making sure the indicated file is actually on your server ...Quote:
Originally Posted by ericpeng
Hi,
Just wondering if this mod is good to go with v1.3.5 or should I save myself some time and energy (maybe even frustration) and wait for the update?
Cheers,
Colin
I just reinstalled it after the upgrade and am having some troubles...
is it not compatible with v1.35? or am i just too tired..
I haven't tried it on 1.3.5 but I have it running perfectly on 1.3.0.2 sites. May I remind people that before loading any mod it really should be habitual to do a file compare.
Obviously, those mods which create completely new files are a different matter, but anything that touches core files, or even previous overrides, needs to be checked first.
I hear you loud and clear...
works fine on all my 1.3.0.2 sites as well...
it was about the 10th mod i've installed tonight.
gonna give it a fresh start tomorrow. just wondering if anyone had gotten it perfect, to eliminate the wonder...
thanks again.
I'm checking 1.3.5 compatibility now (It'll take a few hours for full check).
I'm still completely bogged down with work but since this is a security I'll move things around and get any changes out as soon as I can.
-Ng_
@ericpeng
Just copy the tpl_subscribe_* files in your templates/yourtemplate/templates/ directory into template_default and you'll be fine (no need to overwrite the unsubscribe template...you do that in your own template).
Due to an initial misunderstanding of how things work those files weren't added to the default_template folder.
-Ng_Quote:
Originally Posted by ericpeng
Thanks NG,
when its ready to go, I'll install and help spread the word...
NotGoddess,
Installed your Newsletter-only mod today and it all works fine .. at least it isn't doing anything strange that I've spotted yet.
Did a careful comparison of files for those I know I've changed and that changed in the 1.3.5 update and after going crossed-eyed it all worked.
Thanks for the mod,
Pete
There don't seem to be any conflicts with zc1.3.5, other than the template_default issue mentioned earlier.
I'm trying to get the new release out-I thought it would be sat/sun but I ended up having two emergencies to handle. I'm going to work on it tonight, but unsure if I'll get it out as I'm exhausted (5hrs sleep out of 48hrs = bad) and will likely need to (try) to sleep early. Tuesday night-wed is the best bet.
-Ng_
Just a quickie,
tried to enter a test email with 24 characters and the entry box stopped after 23!
Do I edit this in admin config or in the code?
Pete,
Sleep well.
it's in the sidebox template file.
sideboxes/tpl_subscribe.php
change or take out the 'maxlength'
Magic,
Thanks,
Pete
And hopefully finally before I rest my overstretched brain ....
Has anyone managed to move the Newsletter unsubscribe link from the Information sidebox to the Newsletter sidebox .. seems a more logical place to have it?
Had a quick shufty at the files but didn't really know where to start without the risk of messing up completely.
Pete
Am I missing something here?
I have this installed on a test site and it shows perfectly fine in the sidebox, however it doesnt matter where I put the code in the tpl_header.php it will not show up, currently testing with 1.3.5 and using the newest upgrade for this contrubition. Below is the code I currently have.
Website being tested on TestingCode:<?php
/**
* Common Template - tpl_header.php
*
* this file can be copied to /templates/your_template_dir/pagename<br />
* example: to override the privacy page<br />
* make a directory /templates/my_template/privacy<br />
* copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
* to override the global settings and turn off the footer un-comment the following line:<br />
* <br />
* $flag_disable_header = true;<br />
*
* @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_header.php 4066 2006-08-06 05:50:06Z ajeh $
*/
?>
<?php
// Display all header alerts via messageStack:
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
echo htmlspecialchars(urldecode($_GET['error_message']));
}
if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
echo htmlspecialchars($_GET['info_message']);
} else {
}
?>
<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>
<div id="headerWrapper">
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
<ul class="back">
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?>
</ul>
</div>
<div class="navMainSearch forward"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />
</div>
<!--eof-navigation display-->
<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
<?php
}
?>
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
// BEGIN newsletter_subscribe mod 1/1
if(defined('NEWSONLY_SUBSCRIPTION_ENABLED') &&
(NEWSONLY_SUBSCRIPTION_ENABLED=='true') &&
(NEWSONLY_SUBSCRIPTION_HEADER=='true')) {
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_SUBSCRIBE_HEADER));
}
// END newsletter_subscribe mod 1/1
?>
<?php
}
}
?>
</div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
<br class="clearBoth" />
<!--eof-branding display-->
<!--eof-header logo and navigation display-->
<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<!--eof-optional categories tabs navigation display-->
<!--bof-header ezpage links-->
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<!--eof-header ezpage links-->
</div>
<?php } ?>
Any ideas would be appreciated.
Thanks in advance
Also tried the code according to the example file attached is the file if you prefer to see it raw.
Anyone got any ideas?
I have gotten the newsletter subscribe button to show after some work, but now wondering why it appears like this:
www.successbooksetc.com
Can someone give me an idea of where to change this look?
With your other issue, it looks like you didn't rename the 'YOUR_TEMPLATE' folders.
In the contribution are a series of folders called 'YOUR_TEMPLATE'. You needed to rename all of those to match your template name. e.g. if you were using the 'classic' template you'd rename them all to 'classic' or if you were using 'pink_elephants' template, you'd name them all that.
-Ng_
@Pete- the sidebox with subscribe/unsubscribe is coming in the next release which I need to just buckle down and get done tonight.
@knuckle-101-
For the header subscribe to work you need 3 things:
1) the code in the header template file (which you've done)
2) turn newsonly subscriptions on (and if you see the normal sidebox you've done that)
3) turn the header subscription box on.
It should be under admin->Configuration->Layout Settings (near bottom)
Show subscribe link in header?
This should be in the readme.txt file that came with the contribution (under Usage Instructions), but I'll try to make it more clear in the next release.
Hi NG;
First of all thank you for your patience on this.
I went back and renamed all the files (not realizing there was more than one) and re-uploaded those, however, I am still getting the same result. Anything else I could check for?
R
In this world there are heroes who want to be known as heroes and those who just buckle down and get on with things.
Cheers NG
Pete
The actual file that's missing is:Quote:
Originally Posted by virago
/includes/language/english/extra_definitions/YOUR_TEMPLATE/newsletter_subscribe_definitions.php
That's what holds the defines for the sidebox.
Again, you'd rename the 'yourTemplate' bit (or move it up a level into the extra_definitions/ folder)
I've attached the file in question.
If you have other languages as well, you'd of course copy that to the apropo language folder and translate.
-Ng_
NG,
Do you have asolution for this post?
I renamed everything as it should be but still no results.Quote:
Originally Posted by knuckle-101
Sorry NG, didnt mean to double post, I did not see your answer however, I did turn on the header control in admin, but it still does not show. For what reason I have no clue.
But I do have the code here where I did replace the code in tpl_header.php file.
Am I doing something wrong or just forgetting something? :down:Code:<?php
/**
* Common Template - tpl_header.php
*
* this file can be copied to /templates/your_template_dir/pagename<br />
* example: to override the privacy page<br />
* make a directory /templates/my_template/privacy<br />
* copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
* to override the global settings and turn off the footer un-comment the following line:<br />
* <br />
* $flag_disable_header = true;<br />
*
* @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_header.php 4066 2006-08-06 05:50:06Z ajeh $
*/
?>
<?php
// Display all header alerts via messageStack:
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
echo htmlspecialchars(urldecode($_GET['error_message']));
}
if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
echo htmlspecialchars($_GET['info_message']);
} else {
}
?>
<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>
<div id="headerWrapper">
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
<ul class="back">
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?>
</ul>
</div>
<div class="navMainSearch forward"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
</div>
<br class="clearBoth" />
</div>
<!--eof-navigation display-->
<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php
// BEGIN newsletter_subscribe mod 1/1
if(defined('NEWSONLY_SUBSCRIPTION_ENABLED') &&
(NEWSONLY_SUBSCRIPTION_ENABLED=='true') &&
(NEWSONLY_SUBSCRIPTION_HEADER=='true')) {
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_SUBSCRIBE_HEADER));
}
// END newsletter_subscribe mod 1/1
?>
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
<?php
}
?>
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
}
}
?>
</div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
<br class="clearBoth" />
<!--eof-branding display-->
<!--eof-header logo and navigation display-->
<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<!--eof-optional categories tabs navigation display-->
<!--bof-header ezpage links-->
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<!--eof-header ezpage links-->
</div>
<?php } ?>
Thanks
Sorry NG, didnt mean to double post, I did not see your answer however, I did turn on the header conrol in admin, but it still does not show to the right. For what reason I have no clue.
But I do have the code here where I did replace the code in tpl_header.php file.
Am I doing something wrong or just forgetting something? :down:Code:</div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
<?php
if(defined('NEWSONLY_SUBSCRIPTION_ENABLED') &&
(NEWSONLY_SUBSCRIPTION_ENABLED=='true') &&
(NEWSONLY_SUBSCRIPTION_HEADER=='true')) {
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_SUBSCRIBE_HEADER));
}
?>
<br class="clearBoth" />
Thanks
I placed the code in between the lines
Seemed to knock it right. I would recommend a code replacement in your next release dont know if anyone else had troubles but I sure do hope this helps someone in the near future.Code:<!--bof-branding display-->
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?>
<?php
if(defined('NEWSONLY_SUBSCRIPTION_ENABLED') &&
(NEWSONLY_SUBSCRIPTION_ENABLED=='true') &&
(NEWSONLY_SUBSCRIPTION_HEADER=='true')) {
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_SUBSCRIBE_HEADER));
}
?>
</div>
NG got one more question for you.
What do I edit to make the worrds Newsletter to appear above the subscribe box?
Thanks again
In the file I mentioned a few posts up-Quote:
Originally Posted by knuckle-101
/includes/language/english/extra_definitions/YOUR_TEMPLATE/newsletter_subscribe_definitions.php
-Ng_
p.s. I won't get the update done tonight. I started out three hours ago trying to do a 'simple' itunes update that managed to kill my computer twice and still not be complete 3hrs later. *sigh* soooo much wasted time. Think I can send Apple a bill for $45 for lost productivity? :)
Dont feel bad, I lost much dollars to but you got a little something coming your way. So do not worry about that.
I tried editing the file you specified but all it does is make the title longer does not seperate from the
Newsletter: email box submit
I like to have this for
Newsletter:
Email box submit
I dont mean to pound on your forum just I spent 4 days trying to get it to work, but thats my fault for two reasons did not see the header control in admin and didnt study it hard enough :(
But I hope it all works well for you.
Rob
NG,
problems with the iTunes update, huh... you're not the only one out there, i hear.
anything i can maybe help with?
Adam.
Apple Certified
I'd love some. I'll PM you in the morning (about 3hrs past my bedtim atm).Quote:
Originally Posted by pensive612
-Ng_
NG,
is this version buggy as hell?
Just wondering cause non of the tect or html radios are showing.
If it is abuggy version I will wait till next version if need be.
Also is your gallerycart compatible with zen?
Rob
Well, you can try adding a <br /> either in the header template file, or in the text definition (former if you don't want to have to edit it for every language, latter if you want some freedom to have/not have it).Quote:
Originally Posted by knuckle-101
For the template file, right after:
addCode:$content .= '<label>'. (empty($subscribe_text) ? '' : $subscribe_text);
Or in the def file, just add it to the define: 'Newsletter: <br />'Code:$content .= ' <br /> ';
Oh, one caveat tho...the current release also uses the header template on the subscribe page when an error occurs, so you'll have the line break there, as well.
If you need it one-line there, but 2 in header, let me know and I can show you what to do (basically copy the header template and use that for subscribe page).
*blink* have you perused the forums much? You are nowhere near the level I'd consider 'pounding' :)Quote:
Originally Posted by knuckle-101
Re your wish for me-It'll all work out with help/time.
I've got this saying (probably stolen from somewhere, but if it is, I can't remember, so it's mine.) :
Life is a hilly road-lots of ups and downs. You gotta hope you're heading toward the mountains instead of the sea; but just in case-learn to swim.
-Ng_
Buggy is debatable :0Quote:
Originally Posted by knuckle-101
but in the case of the radio buttons check to make sure you have html mail enabled in your admin->configuration->email settings.
If you do, the buttons show. If you don't, then it defaults to 'text' email format and they don't show (because you only send one type of mail so users don't need a choice).
GalleryCart is for Menalto's Gallery 1-it's not Zen Compatible. There is a ZenCart module for Gallery 2, but as far as I know no one has ever updated it to work with zc1.3 -it was originally made for 1.2.7
-Ng_
1.3.5 update-
knuckle-101 found an issue with the 1.3.5 create_account.php module not being compatible with the current version shipped with the contribution. I'll be releasing the update tomorrow after I doublecheck to make sure the other account related pages are okay.
In the meantime, you can use winmerge to compare the core version with the ns version in your override directory and just merge the marked changes for the newsletter subscribe mod (marked with // BEGIN and //END comments) into the new core version and save back to your override directory.
-Ng_
While you await an updated I have attached the current version file for 1.3.5.
Upload to includes/modules/YOUR TEMPLATE/ just override your current file, be sure to compare for contrubitions you have added previously in the last release or before.
rename YOUR TEMPLATE with your current template name.
Rob
I have installed the contribution on Zen Cart 1.3.0.2 but I can't get the sidebox to show in the layout boxes controller. It is everywhere else in the admin but the controller.
Any help is greatly appriciated!!
What version of the newsletter do you have installed?
If the sidebox is showing in the layout boxes controller, and you have that turned on for left/right/single, that should be it.Quote:
Originally Posted by offnetrob
You can doublecheck that it's enabled (should enable by defalt). Under 'Configuration -> My Store' you will see the option to enable/disable subscriptions.
Sorry for the confusion. What I meant was that the contribution is active everywhere except in the "layout boxes controller". I do not have the option to use that box anywhere.
The rest of the options for the contribution are fine. I can view the contribution in the "my configuration" and I can view the users it has already merged in.
I just want to figure out how I can add the box to the sideboxes in the store.
The version of the contribution I am using is 2.0.5.
Thanks again!!
That sounds like the files aren't in place.Quote:
Originally Posted by offnetrob
Check the tempate that you use (I'll use 'foo' as the example) in:
/includes/modules/sideboxes/foo/subscribe.php
/includes/templates/foo/sideboxes/tpl_subscribe.php
These were in 'YOUR_TEMPLATE' folders that you needed to rename to 'foo' or the name of your template.
-Ng_
I'm probably doing something lame. I installed Newletter Subscribe v 2.0.5 in Zencart 1.3.0.2 and everything works except it doesn't show in the layout Boxes area. Any ideas?
brynn :-)
See the post just above yours. Verify that the templates/modules are in the right folders.Quote:
Originally Posted by brynn
Hi,
I just installed this mod and everything is great, however, I noticed none of my emails are reaching their destinations anymore. Yesterday, all was good and I was receiving emails in MSN, Yahoo and Telus test accounts, but since the install, I'm not getting anything.
Has anyone else experienced this or is this just a freakish coincidence on my end?
Cheers,
Colin
send a test email to an account you own.
disable subscriptions (in configuration see readme for where)
try again
if no luck:
replace the functions/email.php (not in place to look up name...but email functions)
with the backup you made.
ditto for audience.php
try again.
report back.
Hi NG,
Sorry I didn't get back to you sooner, I made the post late last night and wasn't near the computer all day.
I disabled the mod under 'my store' and uploaded the backups of audience.php and functions_email.php but I am still unable to receive email. The only account is seems to get passed is gmail and even then it's put into the 'junk' folder.
I'm going to email my isp and see if anything changed and hopefully it's not this mod.
Cheers,
Colin
Those two files are the only ones related to the actual email process...if the module was responsible, replacing those with the backups should have fixed.Quote:
Originally Posted by Radish
But you said you are getting email at one account, that indicates that the server is sending mail.
Are you using shared hosting?
If the emails from your site were never previously parsed as 'junk' it sounds like your ip (shared with others) or that of your mail server has been blacklisted for sending spam (not that you did, but others using the same shared ip did). You might check your mail server's ip against a blacklist search, such as is done here:
http://www.mxtoolbox.com/blacklists.aspx
If it has been blacklisted, your host has to be notified so they can try to rectify it.
Another thing to check is where the email is said to be coming from (your store email or nobody AT yourstore DOT com) - some places block the 'nobody' senders as well.
(You can google mail smtp blacklist, etc for a gazillion articles on other possiblities as well).
-Ng_
Ng,
Thanks for the reply. I ran my ip in the site you gave me and it appears on one of the lists. I've emailed my host to see if they can do anything to fix the problem. Once a site has been blacklisted, is it a real process to 'remove' the blacklisting?
Thanks again for your help and many thanks for your mod. I'm super poor right now, but I look forward to giving a donation soon enough.
Colin
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:
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.Code: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')]
I found this code in a post a while back:
Is this something I should run from my ZC admin?Code:ALTER TABLE `subscribers` CHANGE `subscriber_id` `subscriber_id` INT( 11 ) NOT NULL AUTO_INCREMENT
Thanks again,
Colin
It can be, but there are a number of things you and your host can do. You can google 'mail server blacklisted' for more ideas, but some basic things:Quote:
Originally Posted by Radish
You can:
See if you can send using the php mail instead of smtp (or vice versa).
Suggest to your host that they:
Track down the spammer (if still hosted there-spammers are notorious for signing up for 1 month, sending as much spam as they can, then diving out with no forwarding address) and shut him down if still active.
Change the MX ip address for the mail server.
You can also see what servers have you blacklisted and see what requirements they have for removal (if the other address didn't have one you can also do it at http://www.dnsstuff.com/ )
In reality it's up to your host to handle the situation, and most good hosts already have policies in place to do so. If they are unwilling or unable, your best bet is to use an external mail server or switch hosts.
-Ng_
If this question has been answered already, I apologize. I've seen it asked a few times, but not answered because the OPs never seem to want to provide an example.
Anyway, I have a problem with the email entry box in the sidebox being too wide in Firefox. In IE it's both too wide and screws up the the look of the sidebox.
Example can be found at http://bishiharem.com
I noticed that in the tpl_subscribe file there is no width defined, however if I give it one I find not only does the width not matter (145px and 25px both look the same), but adjusting the width screws up the text in the other sideboxes.
Any help would be greatly appreciated.
edit file includes\templates\your template\sideboxes\tpl_subscribe.php
edit line
$content .= ' ' . zen_draw_input_field('email', '', 'size="18" maxlength="30" style="width:
where it says 18, make this smaller or larger to fit your template.
Rob
Ng,
Thanks for the info on removing my site/server from being blacklisted. I spoke with my host and they are going change the MX ip address of the mail server. Hopefully that will fix the problem.
Thanks again!
Forgive for sounding a bit annoyed, but as the OP ....Quote:
Originally Posted by bhfruitcakeco
I posted something blandly assuming it was the issue. I'm rechecking it....
Your box width is only 146px wide (inner width), so with the padding on the input, it's too wide at 145px (col width 175-30=145) to fit.
You need to find in the template:
style="width: ' . ($column_width-30) . 'px"
and change that 30 to 40 or 45, etc until it fits for you.
I'll do some research and see if I can find the proper reference for the box width and adjust the template.
-Ng_
@Radish:
btw, I just wanted to let you know I haven't forgotten you-I just haven't had a chance to research it properly as above, when I try to answer hastily it's trouble. :)
My first thought is that it's just an error in the subscription checking-see it shouldn't LET you subscribe the same email twice.
If that email already has a news-only subscription:
If you try to do another newsonly: it should give a dup error. (in zc not sql).
If you make an account, it should merge those records.
If that email already has a customer account:
newsonly: it's says that and tells you to change on your account page.
new acct: shouldn't allow it (std zen, not just this mod).
So if it's not doing that, it's a bug in the script, not anything you've done and I just have to get the time to fix it. I've got a new setup for the error checking but I'll especially test that case.
The sql you posted won't do any harm, but it's for cased where you uploaded your table and 'lost' the auto-increment values. You can try it but I don't think that's the issue.
-Ng_
I apologize for your annoyance. I did not mean you. I was referring to the querants with similar problems, whom you tried to help, but they wouldn't provide you with an example to help you figure out the problem (OPs=plural).Quote:
Originally Posted by NotGoddess
Then it should be I that apologizes. I've been oversensitive of late. :(Quote:
Originally Posted by bhfruitcakeco
At any rate...did either Knuckle-101's or my suggestion help?
-Ng_
NG,
You know we all love ya anyway.
By the way get on messenger later i finally got the id we need for the sp mod if you are ready to mess with it.
Let me know.
The contibution is working well except for one minor issue. If a new customer signs up for the newsletter, then when the record is added to the subscriber's table, the data added is null. I looked through the code, particularly in create_account.php and don't see in the SQL a date reference. I guess it doesn't really matter, but it just looks odd in the subscription manager screen when the date shows up as something in 2036. Has anyone else seen that?
its a sql insert bug, I am currently working on it to fix it. NG is probably aware of it as well.
Rob
If you try to do a test other then your website address test with a hotmail address or yahoo see if it corrects the year, I beleive it creates the year 2036 when the mod is installed on certian sql levels, not everyones.
The only file I can find that, as written, is /includes/templates/template_default/sideboxes/tpl_search.phpQuote:
Originally Posted by NotGoddess
However, the sophyblue template already overrides it with style="width: ' . ($column_width-50) . 'px"
I also tried knuckle-101's suggestion. Neither increasing nor decreasing worked. :(
I just checked the Layout Boxes Controller and found : sideboxes/sophyblue/subscribe.php (ZenCart's coloring, not mine).
It appears that ZenCart is alerting me to something regarding this file. Maybe this is where the problem lies?
It's red because it's letting you know that the box is in your custom template and not a default box (helps you more easily find it for editing).Quote:
Originally Posted by bhfruitcakeco
I doublechecked and the $column_width variable IS the width of the inner boxes, not the width of the column itself, so that's right at least.
and your width is correct-you have it set to 175 px but your image have spacing that's about 15px worth of padding/margin on each side, so the boxes really ARE 175px wide, but just appear to be more narrow.
But the sideboxes don't know the padding they just know the width. You need to manually adjust for the 'new' width by editing that section I told you:
style="width: ' . ($column_width-30) . 'px"
This is in this file:
/includes/templates/sophyblue/sideboxes/tpl_subscribe.php
Now that line might be wrapped...you might see it as this (including surrounding text) on lines 17-20:
Perhaps that is what is confusing you. You need to change that 30 to a higher number to compensate for the padding-try 40 to get a snug fit, 45 for a little room or 50 for about 10px on either side.Code:$content .= ' ' . zen_draw_input_field('email', '', 'size="18" maxlength="30" style="width: ' .
($column_width-30) . 'px" value="' . HEADER_SUBSCRIBE_DEFAULT_TEXT .
'" onfocus="if (this.value == \'' . HEADER_SUBSCRIBE_DEFAULT_TEXT . '\') this.value = \'\';"');
To help you, I've included that sidebox edited to have width-45px (should fit inside the box with just a little padding)
-Ng_
Maybe I can just get this fixed one file at a time. :) :)
@radish: This -might- help you as well, but I'm not certain yet. If you are using 1.3.5 it won't hurt.
@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.
If a news-only subscriber creates an account, it'll update the subscribed_date to the day they sign up.
Remember to backup before making change to files or the db!
To fix customers currently in the system run this in your sql patches section of the admin:
update subscribers set subscribed_date = now() where subscribed_date = '0000-00-00';
For those not upgraded to 1.3.5 yet:
1) upgrade.
1a) if you can't, read the readme included for how to manually edit the files.
-Ng_
I'll also get this on my site.
@dgwyn: I rec'd a message that your host has fixed this for you.
-Ng_
Thank you SO much for taking the time to do that for me! It looks perfect now. :happy:
Now I must go and thwap the Zen Cart Developer's Tool Kit for not displaying tpl_subscribe.php when I searched for that "phrase".
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.Quote:
Originally Posted by bhfruitcakeco
btw, does this mean we're on the fruitcake list? :) :)
-Ng_
Thanks! I'll keep that in mind.Quote:
Originally Posted by NotGoddess
Only if you want to be. :)Quote:
Originally Posted by NotGoddess
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?
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.Quote:
Originally Posted by NotGoddess
However, even with the patch, I still get a null date when a customer subscribes to the newsletter. Any ideas?
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.
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.Quote:
Originally Posted by lamz
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_
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 :(Quote:
Originally Posted by dgwyn
-Ng_
Hi,Quote:
Originally Posted by Radish
I've installed the last version of the contribution, and the bug is still present.
Is it planned to fix it ?
Thanks,
Mathias
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_
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.
Please pardon my ignorance---fixed the problem. I uploaded the tpl_header.php.example file without realizing what it was.
@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.Quote:
Originally Posted by NotGoddess
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.Quote:
Originally Posted by Lighterboy_crew
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_
Quote:
Originally Posted by NotGoddess
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/showpo...&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..
Those posts you refer to are a special case-your sidebox width/inner sidebox width don't have that issue.Quote:
Originally Posted by Lighterboy_crew
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.
As I mentioned in the post above-you don't have your language files in place, nor it seems the 'extra definitions'Quote:
Originally Posted by Lighterboy_crew
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).
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).Quote:
Originally Posted by Lighterboy_crew
Check out: admin -> configuration -> email options -> Use MIME HTML When Sending Emails
If it is true, you should see the radio buttons.
-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.Quote:
Originally Posted by NotGoddess
do u have any ideas?..
I cannot give you technical advise on the ftp, sorry.Quote:
Originally Posted by Lighterboy_crew
If you cannot rename the folder can you upload it again, with the correct name?
-Ng_
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.
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!
Rather than tell you the editing in the module (cuz that'll change when I get the next one out, just do this:Quote:
Originally Posted by FruitFly
In the sidebox template:
includes/templates/yourtemplate/sideboxes/tpl_subscribe.php:
Take out:
add in:Code: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>';
}
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).Code:$content .= zen_draw_hidden_field('email_format', 'HTML');
-Ng_