Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 01:04:20 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
149637
Posts in
21099
Topics by
7562
Members
Latest Member:
ionline
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
Newsletter module
Pages:
1
2
[
3
]
4
5
Go Down
Author
Topic: Newsletter module (Read 30227 times)
markywatts
Offline
Posts: 27
Re: Newsletter module
«
Reply #50 on:
May 08, 2008, 07:57:09 AM »
Hi,
I am new to websitebaker... but it's a fantastic thing
Have just installed the new version 2.7
Installed Mass Mail module no probs and can send emails from it.
Installed Newsletter no probs and added necessary code to template index.php page.
But when I view the website where the module should appear it gives the following error:
Fatal error: The indicated Massmail Group "Newsletter" does not exists, please check the Massmail configuration!
Is this to do with WB 2.7? Can you help please.. I need this feature working for my client.
Thanks
Marky
Logged
Ralf (Berlin)
Offline
Posts: 1314
Re: Newsletter module
«
Reply #51 on:
May 08, 2008, 01:11:06 PM »
Hello Marky,
please create in Mass Mail a new group "Newsletter" - then all will work fine...
Regards
Ralf
Logged
markywatts
Offline
Posts: 27
Re: Newsletter module
«
Reply #52 on:
May 08, 2008, 06:59:50 PM »
Thanks! was being a bit thick with the excitement!
I have also followed below instructions. Which has allowed me to setup multiple newsletter subscriptions! so different code pages with the below changed:
newsletter_info('AnotherNewsletter','newsletter@ralf-hertsch.de',true,false); }
Changed 'Newsletter' to 'AnotherNewsletter' and setup another mail group called "AnotherNewsletter" then people can just subscribe to that! which is perfect for my client. It works so must be ok to do.
Create a new page or a new section within a still existing page of type Code and insert the function call for the Newsletter Snippet:
if (function_exists('newsletter_info')) {
newsletter_info('Newsletter','newsletter@ralf-hertsch.de',true,false); }
Thanks for a very neat script!
Logged
Boudi
Addon Team
Offline
Posts: 793
Re: Newsletter module
«
Reply #53 on:
June 03, 2008, 08:53:07 AM »
Hi,
Is it possible to send e-mails in pure html?
Code:
<? if (function_exists('newsletter_info')) { newsletter_info('Newsletter','info@company.com',false,true); } ?>
after reading some lines around here in the code above html should be possible when setting the code to false html should work but unfortenately I get the newsletter in plain text.
Any idea how this is possible?
Logged
...:: Bake the Unbakable ::...
Ralf (Berlin)
Offline
Posts: 1314
Re: Newsletter module
«
Reply #54 on:
June 03, 2008, 04:09:02 PM »
Hello,
Code:
newsletter_info('Newsletter','info@company.com',false,true);
causes the
Newsletter Snippet
(
but
not
the massmail module which will send the newsletters!
) to send subscribing and unsubscribing mails in multipart mode. Because the Newsletter Snippet uses textmode by default you need to transform the plain text messages to HTML messages to get really subscribing and unsubscribing mails in HTML. You will find them within the language files, i.e. EN.php:
Code:
define('nl_mail_activate', "Thank you for your interest in our newsletter!\r\nTo activate the newsletter, please use this link:\r\n\r\n--> %s\r\n\r\nThank You!");
define('nl_mail_delete',"To our regret you want to be signed off our newsletter.\r\nPlease use the following link to deactivate the newsletter:\r\n\r\n--> %s\r\n\r\nThank you!");
Hope this help you?
Regards
Ralf
Logged
Boudi
Addon Team
Offline
Posts: 793
Re: Newsletter module
«
Reply #55 on:
June 03, 2008, 10:22:40 PM »
Hi Ralf,
Yes it does. I was totally wrong.
I thought there was a way to send a html newsletter throughout the massmail function instead of text. But now I see that that is not possible. I had to read better. Sorry.
Thank you for responding.
Logged
...:: Bake the Unbakable ::...
sberghmans
Offline
Posts: 8
Re: Newsletter module
«
Reply #56 on:
June 04, 2008, 01:50:52 PM »
Hi,
I installed newsletter snippet on my web site but had some trouble applying ccs.
Basically here is the definition (really simple):
.newsletter {
background-color: #f10025;
color: #FFFFFF;
padding-left: 2px;
}
.newsletter input {
width: 95%;
font-size: 10px;
}
but it appear the text color is not white
? It is black. Everything else is well rendered.
Any idea?
Stephan
Logged
simmy2000
Offline
Posts: 16
Re: Newsletter module
«
Reply #57 on:
June 04, 2008, 06:57:35 PM »
hi, i'm not being able to translate the language file of the newsletter module.
i tried to translate it by Language Edit module but there are not changeable strings. Moreover i tried to change directly the DE.php file code by changing only parts that i needed to translate. anyway this thing didn't let the all website working.
would you please explain to me how to translate the module correctly?
Thanks
Simone
Logged
Ralf (Berlin)
Offline
Posts: 1314
Re: Newsletter module
«
Reply #58 on:
June 04, 2008, 07:06:43 PM »
Hello Stephan,
there is no obviously error in your CSS - perhaps you have a more important definition within your screen.css. Please try to place the definitions for the newsletter snippet at the end of your screen.css.
At
http://ralf-hertsch.de/pages/en/website-baker/newsletter-snippet.php?lang=EN
you will find some explanations and an example for screen.css.
Regards
Ralf
Logged
Ralf (Berlin)
Offline
Posts: 1314
Re: Newsletter module
«
Reply #59 on:
June 04, 2008, 07:39:33 PM »
Hello Simone,
I don't use the usal WB language files because they won't work proper within classes (encapsulation, OOP).
The language file uses definitions for constants, i.E.:
Code:
define('nl_error_database_error', '<p>A database error occurs:</p><p><strong>%s</strong></p>');
the first string defines a named constant, which should never changed (
'nl_error_database_e
rror'
).
The second string (behind the comma) contains the informations, which will be displayed and should be translated:
Code:
'<p>A database error occurs:</p><p><strong>%s</strong></p>'
The string contains HTML tags for formatting - don't change them, translate only the relevant string, i.E. translate
A database error occurs
to
Es ist ein Datenbank Fehler aufgetreten
.
%s
is a placeholder for an extra string, which will be inserted at runtime by the program - in this case the error message of the database.
So, it's not to tricky
Translate only the second string, don't change HTML tags and don't remove placeholders like %s or %02d.
Regards
Ralf
Logged
simmy2000
Offline
Posts: 16
Re: Newsletter module
«
Reply #60 on:
June 05, 2008, 11:46:27 AM »
Ralf hi, thanks for answering.
Unfortunately, even following your instructions, I can not solve the problem.
the problem is only when I change one line with the first string "nl_error", because other strings, if translated, are fine (I was able to translate correctly the text of the home page and the text sent by mail).
lines with strings "nl_error", won't allow me to open the site (if modified)
an example of what I changed:
Code:
define('nl_error_email_already_subscribed','<p>Die E-Mail Adresse <strong>%s</strong> ist bereits im Verteiler eingetragen.</p>');
changed to:
Code:
define('nl_error_email_already_subscribed','<p>L'indirizzo E-mail <strong>%s</strong> è già stato sottoscritto.</p>');
translating only this line, I have this big problem.
I make some mistake?
«
Last Edit: June 05, 2008, 11:48:49 AM by simmy2000
»
Logged
Ralf (Berlin)
Offline
Posts: 1314
Re: Newsletter module
«
Reply #61 on:
June 05, 2008, 03:43:41 PM »
Hi,
it's a problem with the single quote sign. The sign marks the start and end of the string. So, if you want to use a single quote within the string you must mask it with a backslash to tell the php interpreter "this is a quote within the string".
OK. Please change your string
Code:
'<p>L'indirizzo E-mail <strong>%s</strong> è già stato sottoscritto.</p>'
to the following:
Code:
'<p>L\'indirizzo E-mail <strong>%s</strong> è già stato sottoscritto.</p>'
Alternate you can also use HTML syntax to mask the string:
Code:
'<p>L´indirizzo E-mail <strong>%s</strong> è già stato sottoscritto.</p>'
Regards
Ralf
Logged
simmy2000
Offline
Posts: 16
Re: Newsletter module
«
Reply #62 on:
June 05, 2008, 06:28:38 PM »
thank you ralf!!! problem solved!!!
Logged
bgg
Offline
Posts: 101
Re: Newsletter module
«
Reply #63 on:
October 29, 2008, 10:31:11 AM »
any admin interface to manage subscribers?
Logged
markywatts
Offline
Posts: 27
Re: Newsletter module
«
Reply #64 on:
November 22, 2008, 09:17:17 AM »
Hi,
Module working well at:
http://www.gilbertthompson.co.uk/
But the Wholesale business has multiple departments which it requires email subscription to each group. They are needing one page that allows people to select checkboxes to subscribe to multiple groups: flowers, plants, sundries and offers. They don't want to have separate pages for each one as this is time consuming as most customers will subscribe to more than one.
Can someone explain how to do this or something that allows this? The site has just gone live so they are very keen to get this done!
Thanks
Mark
Logged
Re-Mi
Offline
Posts: 84
Re: Newsletter module
«
Reply #65 on:
December 09, 2008, 11:50:20 PM »
Hi,
first of all great snippet... it works verry well.
But i got a question.
I made a website for a customer i used the snippet at the bottom of the page (
http://fundays.veddek.com
) and the customer loves it.. but for the snippet to work with the scribbled paper i blanked out the language file.
But now the customer also wants the snippet on a normal page, so far so good i copied the lines into a code2 field. and all i got was a blank form (offcourse i removed the translation). Is there a way i can adjust the second snippet to display the regular text (with a second language file or something).
Kind regards,
Michel
Logged
Ralf (Berlin)
Offline
Posts: 1314
Re: Newsletter module
«
Reply #66 on:
December 11, 2008, 10:45:35 AM »
Hello Michel,
in general it's not a good idea to remove the translation, it's always a better way to try a solution by using css...
Try the following:
Edit
/newletter/htt/submit.htt
and insert additional tags arround the placeholders for the strings you want to manipulate, i.e.
<b> ... </b>
. Replace {intro} with
<b>{intro}</b>
and {text_subscribe}, {text_unsubscribe} with
<b>{text_subscribe}</b>
,
<b>{text_unsubscribe}</b>
:
Code:
<div class="newsletter">
<form name="nl" action="{form_action}" method="post">
<table width="100%">
<input type="hidden" name="nl_action" value="subscribe">
<colgroup>
<col width="50%">
<col width="50%">
</colgroup>
<tr>
<td colspan="2"><b>{intro}</b></td>
</tr>
<tr>
<td colspan="2"><span style="font-size:smaller;">{header_email}</span><br><input type="text" name="nl_email" value="{nl_email}"></td>
</tr>
<tr>
<td><input type="radio" name="nl_subscribe" value="1" checked="checked"><span style="font-size:smaller;"><b>{text_subscribe}</b></span></td>
<td><input type="radio" name="nl_subscribe" value="0"><span style="font-size:smaller;"><b>{text_unsubscribe}</b></span></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="{btn_submit}"></td>
</tr>
</table>
</form>
</div>
Next step is to edit your template and replace the call for the Newsletter Snippet with:
<?php
if (function_exists('newsletter_info')) {
echo "<div id="nl_hide">";
newsletter_info('Newsletter','newsletter(at)ralf-hertsch(dot)de',true,false);
echo "</div>";
}
?>
Now you have an additional class with id nl_hide which you can perform at your screen.css:
Code:
#nl_hide b { display:none; }
... with the result, that the strings will be hidden.
At the additional page you may call the Newsletter Snippet as usual.
Not tested, but should work...
Regards
Ralf
Logged
oeh
Offline
Posts: 190
Re: Newsletter module
«
Reply #67 on:
January 03, 2009, 11:47:19 PM »
Hi all.
Found that there where missing all the Norwegian letters
"Æ æ Ø ø Å å" in class.parser.php.
Added these chars to the conversion table.
from line 66 --> 105 then gets to be:
Code:
return $this->data[$matches[1]];
}
function encodeSpecialChars(&$value) {
$value = ereg_replace("ä","ä",$value);
$value = ereg_replace("Ä","Ä",$value);
$value = ereg_replace("æ","æ",$value);
$value = ereg_replace("Æ","Æ",$value);
$value = ereg_replace("ö","ö",$value);
$value = ereg_replace("Ö","Ö",$value);
$value = ereg_replace("ø","ø",$value);
$value = ereg_replace("Ø","Ø",$value);
$value = ereg_replace("å","å",$value);
$value = ereg_replace("Å","Å",$value);
$value = ereg_replace("ü","ü",$value);
$value = ereg_replace("Ü","Ü",$value);
$value = ereg_replace("ß","ß",$value);
$value = ereg_replace("","€",$value);
return $value;
}
function decodeSpecialChars(&$value) {
$value = ereg_replace("ä","ä",$value);
$value = ereg_replace("Ä","Ä",$value);
$value = ereg_replace("æ","æ",$value);
$value = ereg_replace("Æ","Æ",$value);
$value = ereg_replace("ä","ä",$value);
$value = ereg_replace("Ä","Ä",$value);
$value = ereg_replace("ö","ö",$value);
$value = ereg_replace("Ö","Ö",$value);
$value = ereg_replace("ø","ø",$value);
$value = ereg_replace("Ø","Ø",$value);
$value = ereg_replace("å","å",$value);
$value = ereg_replace("Å","Å",$value);
$value = ereg_replace("ü","ü",$value);
$value = ereg_replace("Ü","Ü",$value);
$value = ereg_replace("ß","ß",$value);
$value = ereg_replace("€","",$value);
return $value;
}
Regards
Odd Egil
Logged
Good bye ;-{(
oeh ;-}>
sparkdigital
Offline
Posts: 345
Re: Newsletter module
«
Reply #68 on:
February 13, 2009, 04:27:31 PM »
Hi Ralph,
Thanks for this mod - great job! Just one question - I'm adding email addresses from old subscribers (before we had this mod) using the admin panel. When I enter the email address and select the group I get the following message:
"
xxx@xxx.com
Subscribed to extra addresses
Mail address not in subscribe table."
And the email address isn't in the list when I'm wanting to send out the newsletter - any idea what I'm doing wrong?
Also, I changed the email address in the the snippet in my template but the admin panel doesn't seem to pick up on that - how could I solve this?
Many thanks for your help!
Konrad
Logged
sparkdigital
Offline
Posts: 345
Re: Newsletter module
«
Reply #69 on:
February 13, 2009, 04:35:52 PM »
Hi Ralph, forget the first question - it is working but just took some refreshes for the email addresses to appear.
But I'd be grateful if you could answer my second point.
Thanks,
Konrad
Logged
tost
Offline
Posts: 7
Re: Newsletter module
«
Reply #70 on:
February 22, 2009, 06:48:07 PM »
Hello Ralf.
Thank you for a great module.
I installed it, tryed it, liked it and translated it to Norwegian. (NO.php)
Find it attached.
Best regards
Torstein
Logged
sparkdigital
Offline
Posts: 345
Re: Newsletter module
«
Reply #71 on:
February 23, 2009, 12:45:43 AM »
Sorry Ralph, worked that one out as well - it obviously depends on the user you are logged in as!
Thanks,
Konrad
Logged
sparkdigital
Offline
Posts: 345
Re: Newsletter module
«
Reply #72 on:
February 24, 2009, 03:02:11 PM »
Hi ralph,
I was wondering if it is possible to change the following:
When someone subscribers and click on the activation page it shos the page with the confirmation text but the page itself displays the text 'All posted mials'. How could I change it so it displays the homepage instead? Or if that isn't possible maybe a wysiwyg section with some text but not the 'All posted mails'.
Thanks very much!
Konrad
Logged
Marg
Offline
Posts: 4
Re: Newsletter module
«
Reply #73 on:
March 03, 2009, 01:55:52 PM »
Error: The email address could not be associated, please contact the support!
When I click the activation link in the email, I receive the above message and can't see what the issue is... Anyone?
Thanks
Logged
daydreamer
Offline
Posts: 232
Re: Newsletter module
«
Reply #74 on:
March 06, 2009, 12:08:29 AM »
Page jumps to top after clicking submit, How do you make it stay?
Logged
Pages:
1
2
[
3
]
4
5
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...