We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19383
    • 10 Posts
    Hi, here is a script which also uses iptc (as an example).
    http://www.endzeit21.de/pixliePlayground/pixlie20/beispiel.php
    http://rapidshare.com/files/312250966/pixlie_2.2.1.php.html

    and here is the test image [4]: http://img682.imageshack.us/img682/854/testimagep.jpg


    some information for the others ..
    IPTC Image metadata
    The IPTC defined a set of metadata attributes that can be applied to images, part of a broader standard developed in the early 1990s and known as the IPTC Information Interchange Model (IIM). Embedded IIM image information is often referred to as an "IPTC header". The Extensible Metadata Platform (XMP) has largely superseded IIM’s file structure, but the IIM attributes are defined in the IPTC Core schema for XMP and most image manipulation programs keep the XMP and non-XMP IPTC attributes synchronized. Because of its nearly universal acceptance among photographers — even amateurs — this is by far IPTC’s most widely used standard.

    http://en.wikipedia.org/wiki/IPTC
      ---------------------------------------------------
      (PS: sorry for my "GoogleTranslator" english laugh )
      • 24449
      • 81 Posts
      Ok,

      I’ve added some IPTC support and released a new AutoGallery.inc.php at http://www.zombietuesday.com/autogallery

      I have just ripped the list of data items from that pixlie code (hey, I’m told thats what web developers do...). Each item will appear as a placeholder if it exists, so you can use things lie [+iptc_caption+]. The list of supported items is here: http://www.zombietuesday.com/iptcnames

      Let me know if it works for people!


      Ramsay
        • 19383
        • 10 Posts
        works great grin big thanks

        Edit: there is a small problem with the display of the special characters in the name

        input/output:
        1234567890ß´qwertzuiopü+#äölkjhgfdsayxcvbnm,.-!§$%&/()=?`*’_:;
        1234567890ߴqwertzuiop�+#��lkjhgfdsayxcvbnm,.-!�$%&/()=?`*’_:;

        ... and the double extension is still in there

        regards modix wink
          ---------------------------------------------------
          (PS: sorry for my "GoogleTranslator" english laugh )
          • 24449
          • 81 Posts

          fine, fine, FINE! wink The default file now removes doubled extensions. If anyone is searching for reasons why their folder with a jpg and mp3 of the same name doesn’t work this is it wink invert the fix suggested a few posts above.

          As for the special characters: I’m not sure its my fault! wink All my code does is move the values around (from iptcparse to an array, to another array, to modx’s parseChunk). It could be your PHP install doesn’t support them? Or they need to be turned on in your php.ini? Although - since I assume you write a lot in German already - you have probably already done all that.

          If anyone knows that "Oh, you need to supply the magic wibble flag to parseChunk to support special characters, didn’t you know that?" please do tell me!


          Ramsay
            • 19383
            • 10 Posts
            The itcp-output is encoded in ISO-8859-1. But I use on my site UTF-8 charset
            There is a function which encodes the string data to UTF-8.
            utf8_encode()

            http://www.php.net/manual/en/function.utf8-encode.php

            maybe it works ... (I need to learn php undecided)
              ---------------------------------------------------
              (PS: sorry for my "GoogleTranslator" english laugh )
              • 24449
              • 81 Posts
              Modix: check your PMs tongue

              I need some test data or a test subject!
                • 19383
                • 10 Posts
                pm sent
                  ---------------------------------------------------
                  (PS: sorry for my "GoogleTranslator" english laugh )
                  • 24449
                  • 81 Posts
                  For those not in on the secret PMs:

                  I have just updated the inc.php to do as suggested and convert IPTC data to UTF-8. It seems to work (for Germans at least! wink )


                  Ramsay
                    • 23235
                    • 40 Posts
                    Ramsay, while looking for something else, I found out I could fix the capitalization problem with the following formatting <p>[+name+][+string:ucfirst+]</p>.
                      • 8018
                      • 5 Posts
                      ramsay, thanks for your work on this.

                      I got AutoGallery working properly.

                      I was attempting to install the Gallery Display and did exactly as stated. It get this error "Gallery "18" does not exist! " I assume it’s attempting to open an actual gallery.

                      I used the exact coding off of your website http://www.zombietuesday.com/autogallery.html

                      Here’s all of my coding:
                      urlalias = autogalmod
                      [[AutoGalMod]]
                      [[setter]]


                      Photo Galleries: urlalias = gallerypage
                      [!AutoGallery?itemchunk=AutoGalleryItem&tnwidth=170&tnheight=210 &adminbuttons=GalAdminButtons&admingroups=admins&quality=100]] [!MemberCheck?groups=admins&chunk=GalAddButton]]

                      setter
                      <?php
                      $modx->setPlaceholder($arg, $_REQUEST[$arg]);
                      ?>


                      Everything else is exactly like your site. Thanks.