We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I’ve been hesitating to release this module, because the main part to installing DADA is the configuration file. And I really can’t get into supporting that. But just as long as you understand that I can’t help with your configuration, here’s what I’ve got.

    Module code:
    include $modPath . '/dadamail.php';

    Module configuration tab (edit the Module ID to match the Id of your module, it will be the id in the URL query string for the link to editing the module):
    &modId=Module ID;int;7 &modPath=Path;string;../assets/modules/DadaMail

    And dadamail.php:
    <?php 
    // Dada Management Module
    // License - GPL
    
    if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the MODx Content Manager instead of accessing this file directly.");
    unset($_SESSION['itemname']); // clear this, because it's only set for logging purposes
    ?>
    <http>
    <head>
    <title>Manage Mailing Lists</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />    
    <link rel="stylesheet" type="text/css" href="media/style/<?php echo $modx->config['manager_theme']; ?>/style.css" />
    <style>
    #preLoader{position:absolute;z-index:50000;width:100%;height:100%;text-align:center;vertical-align:middle;}
    .preLoaderText{background-color:#ffffff;width:300px;height:150px;padding:50px;border:1px solid #003399;}
    </style>
    </head>
    <body>
    <div class="subTitle" style="margin-bottom:0px">
    	<span class="right"><img src="media/style/<?php echo $modx->config['manager_theme']; ?>/images/_tx_.gif" width="1" height="5"><br /><img src="media/style/<?php echo $modx->config['manager_theme']; ?>/images/icons/context_view.gif" align="absmiddle" /> Manage Mailing Lists</span>
    </div>
    
    <div class="sectionHeader"><img src='media/style/<?php echo $modx->config['manager_theme']; ?>/images/misc/dot.gif' alt="." /> Newsletter Management</div>
    <div class="sectionBody">
    	<!-- load modules -->
    	<ul>		
            <li><a class="mailinglink" href="<?php echo $modx->config['site_url']; ?>/cgi-bin/dada/mail.cgi?flavor=sign_in">Manage Newsletters</a></li>							
    	</ul>					
    </div>
    </body>
    </html>
    

      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 32142
      • 19 Posts
      Susan,

      I have recently installed Dadamail for one of my clients, and just followed your excellent instructions here and I am up & running in under 5 minutes....!!!!
      I have also logged in numerous times on your other site to follow closely all your tutorials as well.
      Thanks very very much for all the wonderful work, as it is, I am just a newbie to Modxcms, and have been able to cut my teeth in under a very short period
      of time, but still learning always.
      When everything is up & running well, I will post links here.

      Thanks for the module codes as well. I am going to go through it to also learn how to do same with other scripts...:)

      Once more thanks again.

      Webman
        • 26310
        • 130 Posts
        susan,

        would you mind elaborating on step 2 please? I’m confused by that, and do I need to install dada before this? or at all? huh Thanks for all your work on this.
          I twitch because I care....and drink too much coffee.
        • Yes, you do need to have a working installation of DADA. The module just makes managing it from inside MODx easier.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 11336
            • 20 Posts
            Hi,

            I wonder if someone could go through this in steps as i’m not quite grasping the Module explanation.
            I have installed DadaMail and all seems to be fine when i access the script via:
            http://www.myWebsite.com/cgi-bin/dada/mail.cgi

            1. I have created a new Module in Manager called DadaMail.
            2. I have added...
            &modId=Module ID;int;7 &modPath=Path;string;../assets/modules/DadaMail
            ...in the Module configuration field in the Configuration tab.

            - Do i need to put the DadaMail files in the assets/modules folder as oppose to in the cgi-bin as instructed in the DadaMail instructions?

            - Where do i add...
            include $modPath . '/dadamail.php';


            - Where do i add...
            <?php 
            // Dada Management Module
            // License - GPL
            
            if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the MODx Content Manager instead of accessing this file directly.");
            unset($_SESSION['itemname']); // clear this, because it's only set for logging purposes
            ?>
            <http>
            <head>
            <title>Manage Mailing Lists</title>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />    
            <link rel="stylesheet" type="text/css" href="media/style/<?php echo $modx->config['manager_theme']; ?>/style.css" />
            <style>
            #preLoader{position:absolute;z-index:50000;width:100%;height:100%;text-align:center;vertical-align:middle;}
            .preLoaderText{background-color:#ffffff;width:300px;height:150px;padding:50px;border:1px solid #003399;}
            </style>
            </head>
            <body>
            <div class="subTitle" style="margin-bottom:0px">
            	<span class="right"><img src="media/style/<?php echo $modx->config['manager_theme']; ?>/images/_tx_.gif" width="1" height="5"><br /><img src="media/style/<?php echo $modx->config['manager_theme']; ?>/images/icons/context_view.gif" align="absmiddle" /> Manage Mailing Lists</span>
            </div>
            
            <div class="sectionHeader"><img src='media/style/<?php echo $modx->config['manager_theme']; ?>/images/misc/dot.gif' alt="." /> Newsletter Management</div>
            <div class="sectionBody">
            	<!-- load modules -->
            	<ul>		
                    <li><a class="mailinglink" href="<?php echo $modx->config['site_url']; ?>/cgi-bin/dada/mail.cgi?flavor=sign_in">Manage Newsletters</a></li>							
            	</ul>					
            </div>
            </body>
            </html>




            Thanks for any help with this.

            G
            • One more time.

              1. Install DADA in your cgi-bin directory, configure it and make sure it works all by itself. This module does not install or configure DADA, all it does is run the DADA management scripts from the MODx manager.

              2. Create a new module.

              3. For the module’s code, put
              include $modPath . '/dadamail.php';

              Save the module.

              4. In the Manage Modules page, hover your mouse cursor over the link to your new dadamail module. Make a note of the id in the URL displayed (browsers display the URLs of hovered links differently; FF displays it in the status bar at the bottom of the web browser).

              4. Open the module for editing again, and in the module’s configuration tab, put
              &modId=Module ID;int;7 &modPath=Path;string;../assets/modules/DadaMail

              (use the ID of the module you have just created in place of the 7 above).

              5. In your site’s files, create a new directory, assets/modules/DadaMail. Upload a file named dadamail.php containing the code of dadamail.php.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 11336
                • 20 Posts
                Thanks that’s just what was needed. It all works ok and i can see the logic the only thing now is to get to grips with Dada, making sure the unsubscribe pages etc are all based on my website template....something for the Dada forums i think.

                Thanks again Sotwell.
                  • 43015
                  • 2 Posts
                  rogerhoughton Reply #18, 11 years ago
                  I realise this is a rather old thread but has anyone managed to integrate Dada Mail with a Revo install?