We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22448
    • 241 Posts
    Just noticed that temailer is using MooTools for the subscribe snippet.
    Did anybody port the subscribe snippet to jQuery?
    We’ve standardized on jQuery for our front end. I’d like to avoid having to use two libraries at the same time for the conflict avoidance reasons.

    Thanks in advance

      • 22448
      • 241 Posts
      Hi all,

      It seems that Subscribe snippet is inert.
      You can see the issue here: http://pangu.arctosgroup.com/en/newsletter.html

      The form does come up but pressing "Sign up" results in no response on the page and no records are being inserted into the database.

      I have read through this thread and have already manually added mootools.js, mootools-core.js, mootools-more.js, and temailer.js to the template. jQuery has been removed from this template so there should be no conflict.

      Any help would be greatly appreciated as the deadline is looming and i’m stumped.

      Thanks in advance.
        • 10190
        • 187 Posts
        Same here,

        everythings works fine, but hitting "Sign Up" doesn’t do anything. Testmails, the module GUI and so on seem to work fine.

        Any ideas how to get subscribing working? Is it supposed to work with double opt in (means sending an email to the email address provided with a link which confirms the subscription process)?

        Cheers
        Frisco
          • 30552
          • 75 Posts
          Frisco, make sure mootools is being called in the headers on the subscription page, but don’t manually call the mootools files included with the installation, or the temailer.js file.

          Just a regular call to mootools (in case your template is not already calling it). If you are still having a problem, please email me - [email protected], or Google Talk me at "preppykev" - thanks.
            • 11055 ☆ A M B ☆
            • 3,112 Posts
            I tried to figure out the "Undefined variable" errors as my previous post.
            Your installer’s index.php contains orphan variables, like $path and $modx, while it doesn’t include the path.
            So I made a dirty work around in the install/index.php:
            From origin
            <?php
            
            	//include default language file
            	include_once($path . "../lang/english.inc.php");
            
            	//include other language file if set.
            	$form_language = isset($language)?$language:$modx->config['manager_language'];
            	if($form_language!="english" && $form_language!='') {
            		if(file_exists($path ."../lang/".$form_language.".inc.php"))
            			include_once $path ."../lang/".$form_language.".inc.php";
            		else
            			if( $isDebug ) $debugText .= "<strong>Language file '$form_language.inc.php' not found!</strong><br />"; //always in english!
            	}
            ?>
            


            with
            <?php
            $docroot= $_SERVER['DOCUMENT_ROOT']."/modx-root/";
            $path = $docroot."assets/modules/temailer";
            include_once($docroot . "manager/includes/config.inc.php"); // to get $modx
            
            	//include default language file
            	include_once($path . "/lang/english.inc.php");
            
            	//include other language file if set.
            	$form_language = isset($language)?$language:$modx->config['manager_language'];
            	if($form_language!="english" && $form_language!='') {
            		if(file_exists($path ."/lang/".$form_language.".inc.php"))
            			include_once $path ."/lang/".$form_language.".inc.php";
            		else
            			if( $isDebug ) $debugText .= "<strong>Language file '$form_language.inc.php' not found!</strong><br />"; //always in english!
            	}
            ?>
            


            Anyway, you seem forget to add several &_lang of these arrays into english.inc.php:
            <?php
            $_lang['optDbTable']='optDbTable';
            $_lang['optEmailTpl']='optEmailTpl';
            $_lang['optSubscrSnip']='optSubscrSnip';
            $_lang['optUnsubscrSnip']='optUnsubscrSnip';
            
            $_lang['optDefaultFromAddr']='optDefaultFromAddr';
            $_lang['optDefaultFromName'] = 'optDefaultFromName';
            $_lang['optNewsletterContainerId'] = 'optNewsletterContainerId';
            ?>
            

            What is that all about?
              Rico
              Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
              MODx is great, but knowing how to use it well makes it perfect!

              www.virtudraft.com

              Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

              Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

              Maintainter/contributor of Babel

              Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
              • 30552
              • 75 Posts
              Goldsky,

              Thanks for those additions.

              I have taken this project from my business partner, who no longer works on it, and I made lots of changes. However, I am not a PHP programmer, so I have stumbled through this project a bit.

              Did your workarounds fix the install issue? If so, I will just include them in the next minor upgrade.

              Also, I did forget to make those entries in the english.inc.php file. Sorry about that. Thank you for pointing that out. I appreciate everyone’s help and inquiries.

              -Kevin
                • 19889
                • 616 Posts
                I just discovered TE Mailer and wanted to give it a go - however, I
                ran into some issues when pointing the browser to the install
                directory - please see attached image.
                Am I doing anything wrong?
                  • 30552
                  • 75 Posts
                  Quote from: mmjaeger at Nov 11, 2009, 02:04 PM

                  I just discovered TE Mailer and wanted to give it a go - however, I
                  ran into some issues when pointing the browser to the install
                  directory - please see attached image.
                  Am I doing anything wrong?

                  mmjaeger, thanks for pointing this out. I’m actually working on it currently, but the language stuff in goldsky’s post is what needs to be inserted in the language file. If you simply proceed with the installation, keeping all the defaults, it should work fine.

                  Kevin
                    • 19889
                    • 616 Posts
                    thanks - tried to send a newsletter to my email address - however, although temailer tells me that it was successful, I’m not getting anything?
                      • 11055 ☆ A M B ☆
                      • 3,112 Posts
                      test mode?
                        Rico
                        Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                        MODx is great, but knowing how to use it well makes it perfect!

                        www.virtudraft.com

                        Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                        Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                        Maintainter/contributor of Babel

                        Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.