Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newsletter subscribe widget #44

Open
ss23 opened this issue Mar 22, 2013 · 0 comments
Open

Newsletter subscribe widget #44

ss23 opened this issue Mar 22, 2013 · 0 comments

Comments

@ss23
Copy link
Contributor

ss23 commented Mar 22, 2013

A widget that shows a simpler way to subscribe to a newsletter by just submiting your email. It also generates a password if a new member has bean created so he won't have problems registering in the future.

Please add this to the main release as this is a much simpler way to setup a newsletter without the need for userforms.

Add the attached php file to the ./newsletter/code/ catalog and apped these translations to ./newsletter/lang/:

en_US:

$lang['en_US']['NewsletterWidget']['CONFMAILSUBJECTVAL'] = 'Welcome to our newsletter!';
$lang['en_US']['NewsletterWidget']['CONFMAILBODYVAL'] = <<<BODY
Hello,

You have just successfully registered to our newsletter.
<% if RegisteredNewMember %>
You can also use the email address you passed do the newsletter to login to our websites forum, wiki, etc. using this password:

Password: \$Password
<% end_if %>
If you would wish to unsubscribe from this newsletter in the future you can do it by clicking on this link:

Unsubscribe link: \$UnsubscribeLink
BODY;

$lang['en_US']['NewsletterWidge']['CONFMAILSUBJECT'] = 'Confirmation mail subject';
$lang['en_US']['NewsletterWidge']['CONFMAILBODY'] = 'Confirmation mail body';
$lang['en_US']['NewsletterWidge']['EMAILADDED'] = 'Email added do newsletter';
$lang['en_US']['NewsletterWidge']['SUBMIT'] = 'Submit';

pl_PL:

$lang['pl_PL']['NewsletterWidget']['CONFMAILSUBJECTVAL'] = 'Witamy w naszym newletterze!';
$lang['pl_PL']['NewsletterWidget']['CONFMAILBODYVAL'] = <<<BODY
Witam.

W?a?nie doda?e? si? do naszego newslettera
<% if RegisteredNewMember %>
Adres email, który poda?e? mo?esz u?y? tak?e do zalogowania si? do naszego forum, wiki, itp. u?ywaj?c has?a:

Has?o: \$Password
<% end_if %>
Je?eli chcia? by? w przysz?o?ci wyrejestrowa? si? z tego newslettera mo?esz to zrobi? korzystaj?c z poni?szego linku:

Link do wyrejestrowania: \$UnsubscribeLink
BODY;

$lang['pl_PL']['NewsletterWidge']['CONFMAILSUBJECT'] = 'Tytu? listu z potwierdzeniem';
$lang['pl_PL']['NewsletterWidge']['CONFMAILBODY'] = 'Tre?? listu z potwierdzeniem';
$lang['pl_PL']['NewsletterWidge']['EMAILADDED'] = 'Email zosta? dodany do newslettera';
$lang['pl_PL']['NewsletterWidge']['SUBMIT'] = 'Wy?lij';

Attachments: http://open.silverstripe.org/attachment/ticket/4429/pl_PL.php http://open.silverstripe.org/attachment/ticket/4429/SubscribeNewsletterWidget.php http://open.silverstripe.org/attachment/ticket/4429/SubscribeNewsletterWidget.ss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant