Quote:
Originally Posted by Danielle
try it and see.
it will show
wierd isnt it?
Printable View
Quote:
Originally Posted by Danielle
try it and see.
it will show
wierd isnt it?
Nevermind...I should have gone to bed after the last dumb thing I posted...sorry! I'm doing way too many things at once here. You are totally right, I apologize. I could have sworn I had a bunch of files in my custom folder, but I don't, just those two! I'm totally embarassed now...I'm making the dumbest mistakes tonight :blush:
Thanks for being so nice when faced with such stupidity :laugh:
Quote:
Originally Posted by Danielle
no biggie glad to be able to help.
Hello. Before i start with my problem i want to say thanks for the great contribution!
I've been trying to install it and everything worked until the last step and i'm not sure what i've done wrong. I want the newsletter to be in the header and so edited the tpl_header file in /includes/templates/YOUR_TEMPLATE/common/ as follows:
<div class="navMainSearch forward"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>
<?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
?>
</div>
<br class="clearBoth" />
</div>
I then enabled the header function in 'Configuration -> Layout Settings'.
I now get the following error:
Warning: main(includes/templates/template_default/templates/tpl_subscribe_header.php) [function.main]: failed to open stream: No such file or directory in /homepages/16/d113661620/htdocs/eshop/includes/modules/zenzenart/subscribe_header.php on line 20
Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/templates/tpl_subscribe_header.php' (include_path='.:/usr/local/lib/php') in /homepages/16/d113661620/htdocs/eshop/includes/modules/zenzenart/subscribe_header.php on line 20
I'm really not sure where i've made a mistake... :cry:
Any help is hugely appreciated! :D
Thanks in advance...
Hi - me again. Just a bit more info. It seems this error is not solely connected to the newsletter appearing in the header. It also appears on the page that returns if an invalid/ or no email is inserted and submit is pressed.
Thanks again for your time....
eek - sorry! found the answer at post 219!! Here's the answer in case it helps anyone else...
@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.
Glad you figured it out, Tiger.
-Ng_
Hello (AGAIN - I know :blush: ).
Now that i've got it working, the contribution looks great - thanks heaps ng. I was just wondering - is there anyway to automatically send a discount coupon to users who subscribe?
Thanks
You're a star! Thanks gn. I'll look into it too and if i find the (ish)way i'll post it here... (Reckon you'll figure it out way before me though :D !)
Good night