We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29988
    • 89 Posts
    This is an auto-generated support/comment thread for AuthorTimestamp.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    Outputs author of the document and it's creation time/date, can be formatted totaly.
      • 15196
      • 18 Posts
      Just a small request: is there a way to for instance use isFolder to only allow this to be shown on documents, and not on folders?
      I’m kindof new to the whole API thing and don’t really find the correct method to extract it.
      thanks smiley
        • 7923
        • 4,213 Posts
        After the $docInfo is created on the snippet code add line: if ($docInfo[’isfolder’]) { return; }


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 28021
          • 13 Posts
          The snippet gives me me a wrong date: 01 January 1970... And is possible to get the month in my language (Dutch) ? I saw you use strftime and the variables for it, so it should work. But the output stays in English...
            • 7923
            • 4,213 Posts
            The date/time is retrieved from the server.. what format did you use?

            To get the date in dutch, call setlocale() php function in the snippet, you could put forexample:

            setlocale(LC_ALL, ’nld_nld’);

            to top of your confic.inc.php to have the effect in all snippets..


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 10746
              • 126 Posts
              Looking at AuthorTimeStamp snippet.

              I want to have my docs tagged as follows:

              Author: Me, Created: 2005-08-21, Last Updated: 2006-11-17

              Do I just hack around with AuthorTimeStamp to "customize" it for my own needs... Or is there a "re-usable" way to do this? (I mean, having two dates.. I can do the date configuration easily enough.)

              Cheers

              Gordon
                • 7923
                • 4,213 Posts
                use this to get the author and created date and the one in extras to do just the modified date. Or edit one snippet from this.


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 25423
                  • 47 Posts
                  the snippet gives author: Built-in Administration account embarrassed

                  help please
                    Excuse for bad English
                    • 10746
                    • 126 Posts

                    Quote from: Roksar at Dec 09, 2006, 08:49 PM

                    the snippet gives author: Built-in Administration account embarrassed

                    help please

                    You probably haven’t set a proper name for the initial admin account...

                    On 0.9.5 you go to Security > Manager Users in order to alter the nam, email and other things.

                    HTH

                    gordon
                      • 25423
                      • 47 Posts
                      thanks!
                        Excuse for bad English