Fork me on GitHub

Problems with Module 'majordomo'  Bottom

  • Hi,

    I am webmaster for a community that does not only use Postnuke but also a mailing list. As most people are not familiar with using an Ecartis/Listar type of list I have installed the following majordomo module for postnuke:
    http://www.ezoshosting.com/majordomomodule.php

    I want to edit the mail template to use the Listar syntax instead of the majordomo one but got stuck with something completely different:

    the module does not seem to send out messages.

    When I use the subscribe/unsubscribe functions on the website I just get the message that my wish "has been recorded and will be activated within 24 hours".

    It seems there must be some functionality for the admin to review the subscriptions/unsubscriptions and grant or deny them.

    Does anyone have an idea how I can link to that functionality or how I can access it?

    I took a look at the modules´ table space and the web-form entries are being strored in the DB and just have to be activated.

    Any help with this module or an alternative to it is greatly welcome.

    kwaH
  • I am having the same exact problem. I have installed the module, but cannot seem to find the admin interface for it. Any suggestions would be appreciated.
  • ahh... i'm having the same problem :)

    If you look in pnuser.php you will see that there is a function called majordomo_user_transfer().

    Code

    function majordomo_user_transfer()
    {
        $majordomo = array();
        $majordomo[password] = pnModGetVar('majordomo', 'password');
        $majordomo[listname] = pnModGetVar('majordomo', 'listname');
        $majordomo[listserver] = pnModGetVar('majordomo', 'listserver');·····
        if (!pnModAPILoad('majordomo', 'user'))
        {
            $out = _LOADFAILED;
        }
        else
        {
            $users = pnModAPIFunc('majordomo', 'user', 'getall');
        }
        $txt = '';
        foreach ($users as $user)
        {
            if ($user[actiontype] == 0)·
            {
                $txt.= "approve ".$majordomo[password]." subscribe ".$majordomo[listname]." ".$user[email]."\n";
            }·
            else·
            {
                $txt.= "approve ".$majordomo[password]." unsubscribe ".$majordomo[listname]." ".$user[email]."\n";
            }
        }
        mail($majordomo[listserver],·
             _DAILYREPORT,·
             $txt,
             "From: ".pnConfigGetVar('adminmail'));
        pnModAPIFunc('majordomo', 'user', 'delall');········
    }


    That's it! Now the only problem is... when oh when oh when does this actually get done? Is there a web interface to call this? Is it automatic? Obviously not on my site. As you can see the last thing it does is delete all the entries in the DB after telling majordomo what to do with them, so if you have anything in your nuke_majordomo table, this has not been called.

    I am considering a couple things:
    1. making a web interface for the admin to click "approve"
    2. calling this function *everytime* someone ads their email address, this might be a big inefficient if tons of people add emails
    3. making the block have 'refresh' like other blocks that pull data from external sources. what i mean is that maybe every 30 mins it should call this function.


    if i figure anything out, i'll post it. anybody else get this to work?
  • After initializing the module did you activate it? On 723 the admin link doesn't show up until the module is activated.
  • Yep, it's activated alright...

    But in the admin menu these are the only choices:

    Majordomo server address
    Majordomo listname
    Majordomo owner
    Majordomo password

    There's nothing there that says, "go ahead and add currently stored address in the DB to the majordomo list"

    Is your admin screen different?
  • 0 users

This list is based on users active over the last 60 minutes.