We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14089
    • 56 Posts
    i’m using ditto to pull blog summaries. on the individual blog posts, i am wanting to use phx to show the date and author. here is my call, but for some reason it isn’t working. any ideas?

    [*createdon:date=`%B %e, %Y`*] by [*createdby:userinfo=`name`*]


      for all things independent, check out http://www.indieophile.com
      • 4385
      • 372 Posts
      What isn’t working? The date, userinfo, or both? If it is both, do you have PHx installed, it is an extra plugin? (You said it was a stupid question.)

      If it is just the date that is being displayed, change "name" to "username".

      This should work... [*createdon:date=`%B %e, %Y`*] by [*createdby:userinfo=`username`*]

        DropboxUploader -- Upload files to a Dropbox account.
        DIG -- Dynamic Image Generator
        gus -- Google URL Shortener
        makeQR -- Uses google chart api to make QR codes.
        MODxTweeter -- Update your twitter status on publish.
        • 14089
        • 56 Posts
        neither one of them are working. phx is installed as an extra plugin. if i just use [*createdon*] it shows the unix time stamp and if i use [*createdby*] it shows the ID of the author, so it has to be phx. as far as i can tell, everything is installed correctly. (i followed the steps on the wiki). it’s really frustrating as i need this to work pretty badly. can i use something other than phx to display that information in a readable format?
          for all things independent, check out http://www.indieophile.com
          • 14089
          • 56 Posts
          according to the system log there is a parse error.

          Parse error: syntax error, unexpected ’<’ in /blah/blahblah/public_html/manager/includes/document.parser.class.inc.php(745) : eval()’d code on line 1

          i upgraded to modx .9.6.3, then it stopped working. i looked at that php file, but i don’t see the error. granted, i’m not a php pro, but i couldn’t see anything wrong. i didn’t change it after the upgrade.
            for all things independent, check out http://www.indieophile.com
            • 14089
            • 56 Posts
            i reinstalled phx and everything is fine now. i dunno. thanks anyway!
              for all things independent, check out http://www.indieophile.com
              • 4385
              • 372 Posts
              Version: 2.1.3 PHx works with 0.9.6.3

              Did you check the box for "OnParseDocument" on the System Events tab?

              You could try turning on debugging in the configuration of the PHx plugin.
                DropboxUploader -- Upload files to a Dropbox account.
                DIG -- Dynamic Image Generator
                gus -- Google URL Shortener
                makeQR -- Uses google chart api to make QR codes.
                MODxTweeter -- Update your twitter status on publish.
                • 4385
                • 372 Posts
                Glad you got it working. PHx has been a big help to me.
                  DropboxUploader -- Upload files to a Dropbox account.
                  DIG -- Dynamic Image Generator
                  gus -- Google URL Shortener
                  makeQR -- Uses google chart api to make QR codes.
                  MODxTweeter -- Update your twitter status on publish.