We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16430
    • 217 Posts
    I got one message too.
    I dont have appache error logging turned on...
      • 44659
      • 20 Posts
      Quote from: kudykam at Oct 23, 2013, 07:08 PM
      Well I dont want to use base template (I deleted it already) I want to use my template (which also conatains *content placeholder), but it shows nothing...

      Have you set 'h' or/and 'e' parameters in your link?
      See 'virtuNewsletter.reader' snippet in about 58 line. Maybe you can't see anything, because you are redirecting to unauthorized page (which is not set properly)?

      And to @goldsky:

      I start use vN (virtuNewsletter) about 2 days ago, and after MUCH debugging, checking etc. see, theres a lot of problems and shortcomings. I know that such a large system like yours is some hard to take care, but it should be compact. I really appreciate your work, and that i don't need to search for other systems, so i share my insights (and some questions):

      1. If you write any system for more people, it is very important thing to update-to-date documentation (RTFM). If it is not possible then at least update the most important parts (like i.e. unsubscribe link or web reader link - i didn't know about 'h' and 'e' parameters, until look into snippet).
      2. In your example about CRON:
      php -q /home/xxx[absolute_path]xxx/public_html/assets/components/virtunewsletter/conn/web.php action=web/crons/queues/process site_id=modx12abc345678d90.12345678

      parameters are given after spaces. It is proper way, but in this case, you can't use $_REQUEST or $_GET variables in connector file (web.php), or at least not only. If you passing parameters in that way, you need to use e.g. $argv (it should be also mentioned in RTFM)
      further:
      it is good idea to use only one method to retrive the values from URL parameters: $_GET or $_REQUEST. In vN you used both smiley (i talked about the same parameters e.g. 'action' in different files).
      3. I think that much better solution for email templates would be using chunks, not documents. That elements are edited very rarely. It could be simplify things.
      4. You can also simplify the way in which messages are displayed on web. Just create document with template which will be used to display page on web, but with content intended to send. vN can get only that content, and put it into e.g. prepared chunk with all styles and necessary links (unsubscribe, "web version" etc.)
      Or you can think about that yourself - this is only my prompt smiley

      In the end: as I said, i really appreciate your dedication to this project and it is really useful so i try tu help in its development.

      I greet

      P.S.: eng. isn't my strong point, so sorry for possible mistakes tongue
      • while you're working on your project, if you care to help, please push the changes to the github.
          Rico
          Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
          MODx is great, but knowing how to use it well makes it perfect!

          www.virtudraft.com

          Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

          Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

          Maintainter/contributor of Babel

          Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
        • Quote from: jacqbus at Apr 02, 2014, 05:08 PM

          3. I think that much better solution for email templates would be using chunks, not documents. That elements are edited very rarely. It could be simplify things.
          In my case, the newsletter had different languages.
          How do you manage this using chunks?
            Rico
            Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
            MODx is great, but knowing how to use it well makes it perfect!

            www.virtudraft.com

            Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

            Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

            Maintainter/contributor of Babel

            Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
            • 44659
            • 20 Posts
            Quote from: goldsky at Apr 04, 2014, 07:48 AM
            Quote from: jacqbus at Apr 02, 2014, 05:08 PM

            3. I think that much better solution for email templates would be using chunks, not documents. That elements are edited very rarely. It could be simplify things.
            In my case, the newsletter had different languages.
            How do you manage this using chunks?

            In most cases there's 2,3 or more languages on start, and optionally adding new later. But if you expected the second option, you can create one more unpublish document called "Newsletter Settings" with new template and create required TVs to set whatever configuration you want (i.e. setting templates for languages using MIGx), or even add new Tab to virtuNewsletter panel called "Configuration".

            IMO it's more complicated to prepare/code, but in the end it's much simpler to end user (i.e. content editor).

            If you're using documents, like in current system, end user need to:
            - create 4 more documents (remembering to set the proper template),
            - in new context (we're talking about BABEL translation system, right?) he need to set 4 more settings specifying IDs of new created documents (he also need to know the names (variables) of that settings)

            I'm not such a MODx specialist, but i think documents should be as transparent for end user, as possible.
              • 5750
              • 15 Posts
              Hi everyone,

              i have installed virtunewsletter on MODx and everything worked fine, but in the Newsletter Template i have a Problem with the unsubscribe link.

              I have input the code like in the example of the tutorial:

              <a href="[[~27? &subid=`[[+virtuNewsletter.email.subid]]` &h=`[[+virtuNewsletter.email.hash]]` &act=`unsubscribe` &scheme=`full`]]">
              Unsubscribe
              </a>


              But the Value [[+virtuNewsletter.email.subid]] and [[+virtuNewsletter.email.hash]] are empty in the Newsletter when i send to subscribers.

              Thank you for support.

              best regards

              Coobi
                • 37143
                • 74 Posts
                Hi, I'm also seeing the same thing occur. I guess im making the same mistake....did u ever resolve what you were doing?

                Quote from: Coobi at Aug 27, 2014, 06:09 PM
                Hi everyone,

                i have installed virtunewsletter on MODx and everything worked fine, but in the Newsletter Template i have a Problem with the unsubscribe link.

                I have input the code like in the example of the tutorial:

                <a href="[[~27? &subid=`[[+virtuNewsletter.email.subid]]` &h=`[[+virtuNewsletter.email.hash]]` &act=`unsubscribe` &scheme=`full`]]">
                Unsubscribe
                </a>


                But the Value [[+virtuNewsletter.email.subid]] and [[+virtuNewsletter.email.hash]] are empty in the Newsletter when i send to subscribers.

                Thank you for support.

                best regards

                Coobi
                • Hm... in my case, this always works

                  [[+virtuNewsletter.email.subid:notempty=`
                  <p>
                      <a href="[[~3219?
                         &scheme=`full`
                         &subid=`[[+virtuNewsletter.email.subid]]`
                         &h=`[[+virtuNewsletter.email.hash]]`
                         &act=`unsubscribe`
                         ]]" class="unsubscribe"><font color="#ffffff">Unsubscribe</font></a>
                  </p>
                  <p>
                      <span class="buttonwrapper">
                          <span class="button">
                              <a href="[[~3220?
                                 &scheme=`full`
                                 &newsid=`[[+virtuNewsletter.email.newsid]]`
                                 &h=`[[+virtuNewsletter.email.hash]]`
                                 ]]"><font color="#ffffff">View Online</font></a>
                          </span>
                      </span>
                  </p>
                  `]]
                  

                  What's your version?
                    Rico
                    Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                    MODx is great, but knowing how to use it well makes it perfect!

                    www.virtudraft.com

                    Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                    Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                    Maintainter/contributor of Babel

                    Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                    • 52149
                    • 11 Posts
                    Can I set the newly created newsletter schedule to some custom made template? That is, when a new schedule is created then it is set to the template by default not the selected resource template so that the whole template won't be seen in the email, Only the texts and some links to be shown in the email. Currently the whole resource template is shown in the email that is messy because of the css and scripts.
                      • 7858
                      • 97 Posts
                      Hi, how can I add email address to db and send email for confirmation via php? I want to have subscription both - via virtuNewsletter form and via my custom contact form, if user checks the checkbox to recieve newsletter. Thx.