We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36624
    • 535 Posts
    hello, very useful snippet.I got it working well.
    but how do you import thousand of contacts right now ? db import ?
      CTRL+SHIFT+U - Clear Cache
      CTRL+SHIFT+H - Hiding Heft Panel
      CTRL+SHIFT+N - Fast Create Resource
      CTRL+ALT+P - Preview Recource (in edit resorce window)
      CTRL+ALT+S - Save
      • 37438
      • 20 Posts
      Quote from: cristianb88 at Oct 05, 2011, 04:13 PM
      If i try send a newsletter call this url:

      http://www.mysite.it/revo/core/components/ditsnews/cron/cron.php

      But the page result:
      Fatal error: Call to a member function getAttribute() on a non-object in /home/mhd-01/www.mysite.it/htdocs/revo/core/components/ditsnews/model/ditsnews/ditsnews.class.php on line 123

      This is what I did.
      I located that line in the code, then changed what's in there to

      //get site_url from base tag or default MODX setting
      $site_url = '';
      if (is_object($dom->getElementsByTagName('base')->item(0)))
      $site_url = $dom->getElementsByTagName('base')->item(0)->getAttribute('href');

      if(empty($site_url))
      $site_url = $this->modx->getOption('site_url');


        • 37438
        • 20 Posts
        Quote from: emmanuel at Oct 14, 2011, 10:09 AM
        hello, very useful snippet.I got it working well.
        but how do you import thousand of contacts right now ? db import ?

        hi , how did you replace the place holder in the message field?

        from my understanding the following is supposed to do it ?

        $message = $newsletter->get('message');

        //get message including parsed placeholders
        $chunk = $this->modx->newObject('modChunk');
        $chunk->setContent($message);
        $message = $chunk->process(array(
        'firstname' => $subscriber->get('firstname'),
        'lastname' => $subscriber->get('lastname'),
        'fullname' => $subscriber->get('firstname').' '.$subscriber->get('lastname'),
        'company' => $subscriber->get('company'),
        'email' => $subscriber->get('email'),
        'code' => $subscriber->get('code')
        ));
          • 37952
          • 1 Posts
          Hi!
          This is a great component, but I can see the very strange behavior, that I can hardly explain sad
          when I try to do a new Newsletter, on pop-up window I cannot see the groups' checkboxes.
          It's better see on the video - http://youtu.be/-jB0xDeKYtQ
          Maybe someone can help me with that?
          Thanks!
          /* sorry for my English */ [ed. note: phomigo last edited this post 14 years, 9 months ago.]
            • 39333
            • 151 Posts
            Hello,

            I am trying to test this component on Revo 2.2.0 and I can't seem to get it to go. I've been over the settings several times and have the cron job all setup in Cpanel.

            Is there any reason this shouldn't work in 2.2.0?

            Thanks

            EDIT: I guess this is the wrong place to address the newest versions. Will search elsewhere.
            [ed. note: eric.swd last edited this post 14 years, 5 months ago.]
              MODX...the Zen of CMS
              "Bight off more than you can chew and keep right on chewing."