Welcome, Guest. Please login or register.
March 20, 2010, 08:51:06 PM

Login with username, password and session length
Search:     Advanced search
WB 2.8.1 released!
Download and additional information are available here .
110552 Posts in 15964 Topics by 9310 Members
Latest Member: stevenris10
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Newsletter module
Pages: 1 2 [3] 4 5 Go Down Print
Author Topic: Newsletter module  (Read 19858 times)
markywatts

Offline Offline

Posts: 26


« Reply #50 on: May 08, 2008, 08:57:09 AM »

Hi,

I am new to Website Baker... but it's a fantastic thing  grin 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)
Addons Team
******
Offline Offline

Posts: 816


Don't panic...


WWW
« Reply #51 on: May 08, 2008, 02:11:06 PM »

Hello Marky,

please create in Mass Mail a new group "Newsletter" - then all will work fine...

Regards
Ralf
Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
markywatts

Offline Offline

Posts: 26


« Reply #52 on: May 08, 2008, 07: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

Offline Offline

Posts: 501


//o_-\\


« Reply #53 on: June 03, 2008, 09: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)
Addons Team
******
Offline Offline

Posts: 816


Don't panic...


WWW
« Reply #54 on: June 03, 2008, 05: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

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
Boudi

Offline Offline

Posts: 501


//o_-\\


« Reply #55 on: June 03, 2008, 11:22:40 PM »

Hi Ralf,

Yes it does. I was totally wrong.  cry
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 Offline

Posts: 8


« Reply #56 on: June 04, 2008, 02: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 Huh? It is  black. Everything else is well rendered.

Any idea?

Stephan
Logged
simmy2000

Offline Offline

Posts: 16


« Reply #57 on: June 04, 2008, 07: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  smiley

Simone
Logged
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 816


Don't panic...


WWW
« Reply #58 on: June 04, 2008, 08: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

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 816


Don't panic...


WWW
« Reply #59 on: June 04, 2008, 08: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  smiley

Translate only the second string, don't change HTML tags and don't remove placeholders like %s or %02d.

Regards
Ralf
Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
simmy2000

Offline Offline

Posts: 16


« Reply #60 on: June 05, 2008, 12:46:27 PM »

   
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> &egrave; gi&agrave; stato sottoscritto.</p>');

translating only this line, I have this big problem.

I make some mistake?
« Last Edit: June 05, 2008, 12:48:49 PM by simmy2000 » Logged
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 816


Don't panic...


WWW
« Reply #61 on: June 05, 2008, 04: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".  cool

OK. Please change your string
Code:
'<p>L'indirizzo E-mail <strong>%s</strong> &egrave; gi&agrave; stato sottoscritto.</p>'

to the following:
Code:
'<p>L\'indirizzo E-mail <strong>%s</strong> &egrave; gi&agrave; stato sottoscritto.</p>'

Alternate you can also use HTML syntax to mask the string:
Code:
'<p>L&acute;indirizzo E-mail <strong>%s</strong> &egrave; gi&agrave; stato sottoscritto.</p>'

Regards
Ralf

Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
simmy2000

Offline Offline

Posts: 16


« Reply #62 on: June 05, 2008, 07:28:38 PM »

thank you ralf!!! problem solved!!!  wink
Logged
bgg

Offline Offline

Posts: 101



« Reply #63 on: October 29, 2008, 10:31:11 AM »

any admin interface to manage subscribers?
Logged
markywatts

Offline Offline

Posts: 26


« 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 Offline

Posts: 48


« 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)
Addons Team
******
Offline Offline

Posts: 816


Don't panic...


WWW
« 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...  grin

Regards
Ralf
Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
oeh
Documentation Team
******
Offline Offline

Posts: 130


German Pischer's, what's life without them?


« 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("ä","&auml;",$value);
      $value = ereg_replace("Ä","&Auml;",$value);
    $value = ereg_replace("æ","&aelig;",$value);
      $value = ereg_replace("Æ","&AElig;",$value);
      $value = ereg_replace("ö","&ouml;",$value);
      $value = ereg_replace("Ö","&Ouml;",$value);
      $value = ereg_replace("ø","&oslash;",$value);
      $value = ereg_replace("Ø","&Oslash;",$value);
      $value = ereg_replace("å","&aring;",$value);
      $value = ereg_replace("Å","&Aring;",$value);
      $value = ereg_replace("ü","&uuml;",$value);
      $value = ereg_replace("Ü","&Uuml;",$value);
      $value = ereg_replace("ß","&szlig;",$value);
      $value = ereg_replace("€","&euro;",$value);
    return $value;
  }

  function decodeSpecialChars(&$value) {
       $value = ereg_replace("&auml;","ä",$value);
       $value = ereg_replace("&Auml;","Ä",$value);
    $value = ereg_replace("&aelig;","æ",$value);
      $value = ereg_replace("&AElig;","Æ",$value);
       $value = ereg_replace("&auml;","ä",$value);
       $value = ereg_replace("&Auml;","Ä",$value);
    $value = ereg_replace("&ouml;","ö",$value);
       $value = ereg_replace("&Ouml;","Ö",$value);
      $value = ereg_replace("&oslash;","ø",$value);
      $value = ereg_replace("&Oslash;","Ø",$value);
      $value = ereg_replace("&aring;","å",$value);
      $value = ereg_replace("&Aring;","Å",$value);
       $value = ereg_replace("&uuml;","ü",$value);
       $value = ereg_replace("&Uuml;","Ü",$value);
       $value = ereg_replace("&szlig;","ß",$value);
       $value = ereg_replace("&euro;","€",$value);
    return $value;
  }

Regards
Odd Egil

Logged

Regards
oeh ;-}>
sparkdigital

Offline Offline

Posts: 254


Once a baker, always a baker!


WWW
« 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 Offline

Posts: 254


Once a baker, always a baker!


WWW
« 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 Offline

Posts: 5


Don't fix it if it ain't broken....


WWW
« 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 Offline

Posts: 254


Once a baker, always a baker!


WWW
« 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 Offline

Posts: 254


Once a baker, always a baker!


WWW
« 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 Offline

Posts: 4


« 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 Offline

Posts: 149


« 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 Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!