We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    First, let me say I love MaxiGallery. My compliments to the chef.

    I wanted to ask about something odd that’s happened with some galleries I set up.

    I was able to upload and display a series of pictures in several galleries after getting the "manage" button to show up.

    Now, however, when I click on the Manage button in existing galleries, I go to the management screen but see no pictures. All the buttons and the upload boxes are there, but none of the photos. The photos show if I’m not at the management screen so I know they’re still in the database.

    I uploaded a new picture and it DOES show up in the manage screen as it should, so my snippet calls must be ok.

    I went into PhpMyAdmin and looked at the MaxiGallery database. All my earlier pictures have NULL for own_id. The new picture (the only one that displays) has an own_id of 3.

    I’m almost certain that the other photos displayed on the manager screen earlier (it’s been a few days since I checked).

    First, any idea what happened? Is there something that could reset own_id?

    Second, what is own_id so I can put the appropriate values in the database for the other pix.

    Thanks,

    Bob
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 7923
      • 4,213 Posts
      Thanks for the compliments. smiley

      You are probably using &manager_webusers or &manager_webgroups parameters in the snippet call..? Here’s how the MaxiGallery permission things works:

      • If you are logged in from the front end and belong to the set &manager_webusers or &manager_webgroups, you can manage your own pictures in the gallery, but not the ones that are uploaded by others (eg. if you first uploaded pictures when logged in from back-end).

      • If you are logged in to the back-end and belong to MODx administrator role or have edit rights to the document, you can manage all pictures in the gallery.

      • If you are logged in from the front end and belong to the set &admin_webusers or &admin_webgroups, you can manage all pictures in the gallery.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 3749
        • 24,544 Posts
        Thanks for the quick reply. That makes perfect sense.

        Just a couple of quick questions:

        Is own_id the user ID of the person who uploaded the picture?

        And, is own_id null if the picture is uploaded by someone logged in to the backend as a manager? If not, what does a null value mean here?

        OT: Any thoughts of having MaxiGallery also handle video files? My little digital camera creates .avi files and it would be great to include them with the still photos in a gallery.

        Bob
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 7923
          • 4,213 Posts
          Quote from: BobRay at Apr 29, 2007, 01:15 PM

          Is own_id the user ID of the person who uploaded the picture?
          Yes.
          Quote from: BobRay at Apr 29, 2007, 01:15 PM

          And, is own_id null if the picture is uploaded by someone logged in to the backend as a manager? If not, what does a null value mean here?
          Yes. The own_id field is only filled if the picture has been uploaded by a web user and it defaults to null.

          Quote from: BobRay at Apr 29, 2007, 01:15 PM

          OT: Any thoughts of having MaxiGallery also handle video files? My little digital camera creates .avi files and it would be great to include them with the still photos in a gallery.
          See: http://modxcms.com/forums/index.php/topic,13969.0.html


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 3749
            • 24,544 Posts
            You’ve made my day ... Thanks!! laugh

            Bob
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting