We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6726
    • 7,075 Posts
    You mean in the first validation scheme ?

    Yes there is (in green) :

    preg_match(’`^[[:alnum:]]([-_.]?[[:alnum:]])*@[[:alnum:]]([-_.]?[[:alnum:]])*\.([a-z]{2,4})$`’,$data)

    My problem is that email with no . - _ before the @ are not allowed... like [email protected]... I thought it was because of the red part above
      .: COO - Commerce Guys - Community Driven Innovation :.


      MODx est l'outil id
      • 13166
      • 24 Posts
      I have two problems and one minor problem (feature requests):

      1) How can I include the images as attachments? Because some freemail services filters the links to the images.
      2) How can send text only newsletters? I build the newsletter with ditto, so I could change the output to text only.
      3) How can I use more than one mailing list? This could be a solution for my text only problem. The user can subscribe to the "text only" list and get an other newsletter.
      3a) Is it possible that a subscriber choose the format at the subscription form. In relation to the attribute the subscriber get a HTML or text only newsletter.

      Thanks Istvan
        • 9498
        • 1 Posts
        I’m having an issue getting TXNewsletter 0.9 installed.

        I’ve followed the install instructions through all the way through to Step 9. However when i try to Run the module, it doesn’t do anything...

        Clicking on TXNewsletters just gives a blank page with no errors. I’ve got display_errors switched on, and allow_url_open is on.
        i’ve checked my apache logs, and nothing there...

        Any ideas what it could be?

        Cheers
        Gavin

          • 36832
          • 22 Posts
          Hi,

          I am stuck at the step 4 of the TXNewsletters module. Does somebody know why the code below is returned from ModX when trying to Manage Module Dependencies, at the time of the last line of the step 4, - in module dependencies tab, add " TXNewsletters " snippet dependancy to share params?

          « MODx Parse Error »
          MODx encountered the following error while attempting to parse the requested resource:
          « Execution of a query to the database failed - Table 'pokerclub.smd' doesn't exist »
                SQL: SELECT smd.id,COALESCE(ss.name,st.templatename,sv.name,sc.name,sp.name,sd.pagetitle) as 'name',CASE smd.type WHEN 10 THEN 'Chunk' WHEN 20 THEN 'Document' WHEN 30 THEN 'Plugin' WHEN 40 THEN 'Snippet' WHEN 50 THEN 'Template' WHEN 60 THEN 'TV' END as 'type' FROM smd LEFT JOIN `pokerclub`.`modx_site_htmlsnippets` sc ON sc.id = smd.resource AND smd.type = '10' LEFT JOIN `pokerclub`.`modx_site_content` sd ON sd.id = smd.resource AND smd.type = '20' LEFT JOIN `pokerclub`.`modx_site_plugins` sp ON sp.id = smd.resource AND smd.type = '30' LEFT JOIN `pokerclub`.`modx_site_snippets` ss ON ss.id = smd.resource AND smd.type = '40' LEFT JOIN `pokerclub`.`modx_site_templates` st ON st.id = smd.resource AND smd.type = '50' LEFT JOIN `pokerclub`.`modx_site_tmplvars` sv ON sv.id = smd.resource AND smd.type = '60' WHERE smd.module=3 ORDER BY smd.type,name 


          Many Thanks,
          Alex
            • 5004
            • 62 Posts
            Quote from: fabilo at Apr 30, 2008, 11:38 PM

            I too was having trouble with the unsubscribe link not working. It wasn’t executing the replacement. I went and had a look in txnewsletters.inc.php and on line #1541 i changed the reg pattern so the line of code is:
            $send_html = preg_replace('/\{link_unsubscribe\}/', $link, $html);
            and now it seems to work. smiley

            Hi,
            I try with your replacement, but still the unsubscribe doesn’t work. sad
            Thanks
              • 18995
              • 13 Posts
              Email Validation Update

              I have a customer who cannot subscribe to the newsletter because the email address has a ( ’ ) in it. For example, "john.O’[email protected]"

              Does anyone have an update for the validation that would allow emails like this to be added to the database?
                www.mediagang.co.uk: Developing your business online
                • 26548
                • 3 Posts
                Hello,
                I have trouble to get the unsubscribe function to work.
                The link in the email works well and I get the unsubscribe-form, but when I klick on "unsubscribe" I get the 404 Error page.
                I tried this…
                Quote from: fabilo at Apr 30, 2008, 11:38 PM

                I too was having trouble with the unsubscribe link not working. It wasn’t executing the replacement. I went and had a look in txnewsletters.inc.php and on line #1541 i changed the reg pattern so the line of code is:
                $send_html = preg_replace('/\{link_unsubscribe\}/', $link, $html);
                and now it seems to work. smiley
                …but it doesn’t work for me.
                The W3C validation on the unsubscribe page says (if it helps):

                #  Warning  Line 107, Column 79: cannot generate system identifier for general entity "id".
                
                …--grtnerei-willmann-qqb.de/index.php?&id=" >
                
                ✉
                
                An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
                
                Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters.
                
                If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.
                
                Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
                # Error Line 107, Column 79: general entity "id" not defined and no default entity.
                
                …--grtnerei-willmann-qqb.de/index.php?&id=" >
                
                ✉
                
                This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
                # Warning Line 107, Column 81: reference not terminated by REFC delimiter.
                
                …rtnerei-willmann-qqb.de/index.php?&id=" >
                
                ✉
                
                If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
                # Warning Line 107, Column 81: reference to external entity in attribute value.
                
                …rtnerei-willmann-qqb.de/index.php?&id=" >
                
                ✉
                
                This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&'.
                # Error Line 107, Column 81: reference to entity "id" for which no system identifier could be generated.
                
                …rtnerei-willmann-qqb.de/index.php?&id=" >
                
                ✉
                
                This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
                # Info Line 107, Column 78: entity was defined here.
                
                …xn--grtnerei-willmann-qqb.de/index.php?&id=" >
                
                # Error Line 107, Column > 80: XML Parsing Error: EntityRef: expecting ';'.
                
                …grtnerei-willmann-qqb.de/index.php?&id=" >…


                Any ideas???

                sebian
                  • 22668
                  • 718 Posts
                  2 sebian
                  Check 4 and 5 steps

                  4/
                  ...skip...
                  - in module dependencies tab, add " TXNewsletters " snippet dependancy to share params with

                  5/ in snippet configuration > properties tab, select "TXNewsletters" in "Import module shared parameters" list

                  No errors here?

                  2 alxndr and 2 all who has same error.
                  You need to fix mutate_module_resources.dynamic.php file.
                  You can download fixed file in attach.
                  ATTENTION, if you have installed older Modx than r3422 - Do not use this file! Tested only with r3422 and later.

                  more info in jira http://svn.modxcms.com/jira/browse/MODX-289
                    • 26548
                    • 3 Posts
                    Quote from: Paprikas at Aug 24, 2008, 05:08 PM

                    2 sebian
                    Check 4 and 5 steps

                    4/
                    ...skip...
                    - in module dependencies tab, add " TXNewsletters " snippet dependancy to share params with

                    5/ in snippet configuration > properties tab, select "TXNewsletters" in "Import module shared parameters" list

                    I thought that I had already made but apparently the settings were not saved.
                    Now it works fine. Thanks for this great module.

                    grin
                      • 17057
                      • 91 Posts
                      Hello,

                      On a website y have the form subscription in the right column on every page.

                      Is it possible to have the subscription page on every page ?

                      Thanks,

                      lezebre