We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30585
    • 833 Posts
    Hi guys,

    Can anyone please tell me what I’m doing wrong? I need a quick help creating a snippet to include a newsletter subscription form on a MODx powered site.
    I’m using an old Mailing list manager called WEBinsta mailing manager and I have two php code portions to deal with. This is my first attempst to write a snippet since my developper friend went out of the country and I hope I won’t make a fool of myself.

    The first code is this:(This loads all other dependencies)

    <?php 
    $mailbar=1;
    $group=1; 
    include("maillist/mailbar.php");
    ?>


    The subscription form is this one:
    <?php
    if(isset ($_GET['page']))
    {
    if ($_GET['page'] == "mail")
    {
    include("maillist/mailmain.php");
    }
    if ($_GET['page'] == "about")
    {
    include("about.php");
    }
    }else {
    /* include( your title page"); */
    print(":The subscribe messages will appear here :");
    }
    ?> 


    I have created a snippet that I named "mailist" in which I pasted the subscription code and My question has more to do with the integration of the first code. Should I use a modeule or another snippet that I include in the template.

    I know this seams really easy and I’m sorry if I’m wasting your time.

    Thanks for your help
      A MODx Fanatic