THIS DOES NOT WORK and in fact, it screwed up my database so I had to reinstall and redo everything.
Please don't post a workaround if have not tested it...
Printable View
Neither of theses changes would "screw up" anyone's database.. The first change would simply add the admin menu and the second is meant to apply to newer databases than when this mod was written so if your data base doesn't support the command it simply will error out.. The admin menu code posted does need a minor change as it looks like the forum parsed out some of the code particularly "subscrip##################er". (Edited to add: the forum has been configured to filters out certain words.. looks it didn't like the words s-u-b-s-c-r-i-p-t-i-o-n or n-e-w-s-l-e-t-t-e-r) So if you used this code AS IS, you would have gotten errors for sure..
As for directing someone not to post a workaround??? This is a support forum for an open source application... written by volunteers and supported by the community volunteers.. People post code snippets ALL THE TIME that are tested, slightly tested, or even un-tested.. It is up to you to determine whether or not you should use them.. In the case of this code snippet, the community member clearly post that he had slightly tested the code..
The real issue with this mod is probably related to how it's constructed to begin with, and the fact that it's a Zen Cart v1.3.x compatible mod that modifies many files and many of these same files changed with Zen Cart v1.5.. Dr Bytes advice is the real reason to NOT use this mod..Quote:
I have tested briefly, though not thoroughly nor on a live store, and all seems fine.
This module was working perfectly, till I messed it up.
Pulling my hair and don't know where to start?
I am now getting the Radio button choices for HTML or TEXT-Only appearing after the e-mail input box! And it wasn't there before. I need to get rid of it. :bangin:
I figure out what went wrong, and wanted to share it.
I had changed the admin>Configuration>E-MailOptions>Use MIME HTML When Sending Emails to true from false.
That triggered the if statement in includes/templates/YourTemplate/templates/tpl_subscribe_header.php to place the radio button options of HTML or TEXT-ONLY to appear.
Since I did want to send out my e-mail notifications as HTML and did not want the choice to appear, I changed the following:
to:PHP Code:
if(EMAIL_USE_HTML == 'true') {
$content .= '<label>' . zen_draw_radio_field('email_format', 'HTML', true) . ENTRY_EMAIL_HTML_DISPLAY . '</label>';
$content .= '<label>' . zen_draw_radio_field('email_format', 'TEXT', false) . ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
}
$content .= zen_image_submit (BUTTON_IMAGE_SUBSCRIBE,HEADER_SUBSCRIBE_BUTTON, 'value="' . HEADER_SUBSCRIBE_BUTTON . '" ');
$content .= '</form>';
?>
Make sure to add a comment of why you did this .PHP Code:
if(EMAIL_USE_HTML == 'CHANGED FROM true TO THIS. READ ABOVE MEMO') {
$content .= '<label>' . zen_draw_radio_field('email_format', 'HTML', true) . ENTRY_EMAIL_HTML_DISPLAY . '</label>';
$content .= '<label>' . zen_draw_radio_field('email_format', 'TEXT', false) . ENTRY_EMAIL_TEXT_DISPLAY . '</label>';
}
$content .= zen_image_submit (BUTTON_IMAGE_SUBSCRIBE,HEADER_SUBSCRIBE_BUTTON, 'value="' . HEADER_SUBSCRIBE_BUTTON . '" ');
$content .= '</form>';
?>
Or you can simply comment out that the if statement.
using 1.3.9h store for this person
she used to have this installed then something happened and it seemed to have partially vanished. I reinstalled all the files and it is working once more BUT in admin when you go to the Customers/Subscription Manager to view the ones that have subscribed....the date of subscription is not quite right.
I tested it with adding my own subsription to my account -- both using the little header subscribe and the sidebox subscribe forms and both times this is what the date claims to be: 11/30/2036 not quite right I would say...lol
how can I get it to register the correct date of subscribing?
I know this is an old thread, but was wondering if the 1.5 version just released has a fix for the following:-
I double checked and everything is there and uploaded properly. Thanks for any help with this.Quote:
Parse error: syntax error, unexpected T_CASE in /*****/customers.php on line 341
i got the same problem. Was hoping someone can help me. I try to change the line 341 in customers php. Find the line customer and change it to customers as it was advice on 2 or 3 page of this thread. Still the same The only what help me was to replace the new file with the old back up version of customers.php and the problem seems to disappear.
Can anyone direct me to a site where I can see how this add-on looks from the customer's perspective?
Thanks!
Hello,
I have just installed a fresh version. When I click on Customers > Subscription Manager I get:
Parse error: syntax error, unexpected T_CASE in /home/content/96/11406796/html/2014/myadmin/customers.php on line 341
Andy idea?
Thanks!
It's actually when I click Customers > Customers. I don't see a Subscription Manager option in the Customers drop down menu.