We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8471
    • 333 Posts
    Yes, I’m using the 0.2b version and I have the errors which I have write
      Sorry for my bad English grin
      • 32241
      • 1,495 Posts
      Quote from: edipo at Feb 09, 2006, 03:32 AM

      Yes, I’m using the 0.2b version and I have the errors which I have write

      Did you try the one that I attached with my previous post?
        Wendy Novianto
        [font=Verdana]PT DJAMOER Technology Media
        [font=Verdana]Xituz Media
        • 8471
        • 333 Posts
        yes is the same embarrassed
          Sorry for my bad English grin
          • 32241
          • 1,495 Posts
          Quote from: edipo at Feb 09, 2006, 09:36 AM

          yes is the same embarrassed
          Try to call it this way, and see what happen.
          [!Newsletter!]
          


          use this code for a link to all the 4 different modes, and don’t forgot to remove your_page_id_here with the page id that you have the snippet calling on.
          [~your_page_id_here~]?mode=signup
          [~your_page_id_here~]?mode=signout
          [~your_page_id_here~]?mode=msg
          [~your_page_id_here~]?mode=doc
          


          Are you using v0.9.1? What system are you using windows or linuz? PHP version?
          Is there anyway I can see into the testing site maybe? I’m kinda confuse, because I can’t reproduce the same problem on mine. smiley

          Please report back to me on what’s the problem that you encountered, if possible please paste the error msg again in here wink
            Wendy Novianto
            [font=Verdana]PT DJAMOER Technology Media
            [font=Verdana]Xituz Media
            • 8471
            • 333 Posts
            Quote from: Djamoer at Feb 09, 2006, 09:46 AM

            Try to call it this way, and see what happen.
            [!Newsletter!]
            

            I see the subscribe page

            Quote from: Djamoer

            use this code for a link to all the 4 different modes, and don’t forgot to remove your_page_id_here with the page id that you have the snippet calling on.
            [~your_page_id_here~]?mode=signup
            [~your_page_id_here~]?mode=signout
            [~your_page_id_here~]?mode=msg
            [~your_page_id_here~]?mode=doc
            

            Sorry, where I have to put this code exactly?

            Quote from: Djamoer

            Are you using v0.9.1? What system are you using windows or linuz? PHP version?
            Is there anyway I can see into the testing site maybe? I’m kinda confuse, because I can’t reproduce the same problem on mine. smiley

            Please report back to me on what’s the problem that you encountered, if possible please paste the error msg again in here wink

            I’m using modx v0.9.1 on win 2000 with Apache, PHP 5.1.2 and MySql 4.1
            If you want I create you an access to my manger
            Thanks for all
              Sorry for my bad English grin
              • 32241
              • 1,495 Posts
              The last code is actually just a hyperlink to make it easier for you to access it. You can paste them on the same page with the snippet.

              Sure thing, I would love to. Just give me access to the MODx manager, and I’ll see what I can do. Rename the password to something else first, and Private message it to me. So later you can change it back to your normal password.
                Wendy Novianto
                [font=Verdana]PT DJAMOER Technology Media
                [font=Verdana]Xituz Media
                • 28471
                • 48 Posts
                This is a nice snippet, although the email validation doesnt seem to work. (well on my setup anyway), any text can be subscribed.

                So i just added a validateEmail function to validate email and replace the emailchecks within the snippet, seems to validate emails better now.

                function validateEmail($email)
                {	
                       $regexp = "^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$";	
                	if( $email!='' && eregi($regexp, $email) )
                	{
                		return true;
                	}
                	else
                	{
                		return false;
                	}
                }
                


                And replace similar regular expression code below ...
                if(trim($_POST['email']) == '' || !ereg("^[-!#$%&'*+./0-9=?A-Z^_`a-z{|}~]+", trim($_POST['email']))){
                						$outError[] = "E-mail address doesn't seem to be valid!";
                					}
                


                .. With this..
                if (!validateEmail(trim($_POST['email']))   {
                     $outError[] = "E-mail address not valid";
                  }
                


                  • 32241
                  • 1,495 Posts
                  Cool, thanks...

                  I just fix it for the next release.
                    Wendy Novianto
                    [font=Verdana]PT DJAMOER Technology Media
                    [font=Verdana]Xituz Media
                    • 2376
                    • 21 Posts
                    This looks like just what I need!

                    How do i put this into my site?

                    I have a newsletter signup page, I put this into the page: [!Newsletter? &mode=`signup` &tplSignupForm=`SignupForm`!]

                    and get nothing.

                    thanks in advance, ad
                      • 32241
                      • 1,495 Posts
                      try to use [!Newsletter!], and access the other page using ?mode=signout or mode=signup on your address. Check out my test site. http://test.djamoer.net/newsletter

                      The link will look just like that. If it’s working fine, then you can start customizing it by reading the note on the snippet.

                      Let me know if you’re stuck or you found bugs on the snippet.

                      Sincerely,
                        Wendy Novianto
                        [font=Verdana]PT DJAMOER Technology Media
                        [font=Verdana]Xituz Media