We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17717
    • 433 Posts
    Has anybody managed to develop a workaround for guest notifications?

    Thanks
    Lee
      http://www.blend.uk.com | Web Design by Blend
      • 4195
      • 398 Posts
      This will be on my feature list.
        Armand Pondman
        MODx Coding Team
        :: Jot :: PHx
        • 3232
        • 380 Posts
        Has there been any progress on this?
          • 33992 ☆ A M B ☆
          • 455 Posts
          Tip:
          subscribe checkbox for site users:
          replace $_GET with $_REQUEST in jot.class.inc.php line 174. it should be this:
          $this->config["query"]["action"] = $_REQUEST[$this->config["querykey"]["action"]];

          and add an input to form:
          [+jot.subscription.enabled:is=`1`:then=`
          Subscribe: <input type="checkbox" name="jot[+jot.link.id+]" value="subscribe" [+jot.subscription.status:is=`1`:then=`checked="checked"`+] />
          `+]



          Subscribe for all users, need a lot of hacks. the TYPE of "jot_subscription:userid" column should change to VARCHAR, check user sessions if user is guest, save the email instead userid in this column.
          modify "doNotifySubscribers" method to send emails to email address and ....

          what do you think? are agree with doing these hacks or waiting for new version?
          I’ll work on it if you are agree with it!
            God loves me. 【ツ】


            MODX.ir (Persian Support)

            Boplo.ir/modx/ (Persian)