We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ A M B ☆
    • 1,231 Posts
    For some reason when using a different document to upload images doesn’t work if you are signed in as the gallery admin but if logged into the manager it works. I get a blank screen and no matter how simple the maxigallery call is, it will not show the manage image form etc. Why will it work for the manager and not an allocated web user admin?
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 7923
      • 4,213 Posts
      What are the snippet calls?

      You need to have the &manager_webusers or &admin_webusers parameter in the call that you are using to manage the gallery.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 25551 ☆ A M B ☆
        • 1,231 Posts
        On my page where I want the gallery to appear I have...

        [!MaxiGallery? &manage_target=`42` &admin_webusers=`[[galleryowner]]` &galleryPictureTpl=`ImageTpl` &pics_per_page=`1` &pics_per_row=`1` &max_pic_size=`250x300` &max_thumb_size=`250x300` &quality_big=`100` &quality_pic=`100` &quality_thumb=`100` &max_pic_number=`1` !]

        and on the gallery edit page (id 42)

        [!MaxiGallery? &admin_webusers=`[[galleryowner]]` &is_target=`1` &pics_per_page=`1` &pics_per_row=`1` &max_thumb_size=`300x300` &quality_big=`100` &quality_pic=`100` &quality_thumb=`100` &max_pic_number=`1` !]

        If I am the manager and click I see the form for uploading as I should, but sign in as a web user in another browser I see the manage image button, I click it and it takes me to the gallery edit page. All that appears is the image that was uploaded when signed in as the manager... here is the source from the browser.


        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
        <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
        <head> 
        <title>Image </title> 
        <style type="text/css"> 
        * {padding:0px; margin:0px}
        body {background-color:#131415; color:#eee; font-size:medium; width:}
        img {border:0px}
        A:link{color:#eeeeee}
        A:hover{color:#ff0000}
        .back {background:#131415}
        </style> 
         
          <link rel="stylesheet" href="/assets/snippets/maxigallery/css/default.css" type="text/css" media="screen" /> 
        </head> 
          <body> 
        <div class="back"> 
         
         
         
        		<div class="thumbscontainer"> 
        			<ul class="thumbs"> 
        <li> 
        	
        	 	<img src="/assets/galleries/40/tn_mypic.jpg" class="thumbnail" title="  » Click to zoom ->" alt="  » Click to zoom ->" /> 
        
        </li> 
        			</ul> 
        		</div> 
         
        </div> 
        
        </script> 
        </body> 
        </html>


        as you can see... it only shows the image and not the form etc. But if signed in as the manager it works as it should so there must be some sort of permissions issue? The doc where I edit the gallery has been made public and private and neither made a difference to the web user.

        Thanks!
          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart
          • 7923
          • 4,213 Posts
          &admin_webusers parameter shows only the pictures that the current user has uploaded. &manager_webusers can see all pictures in the gallery. Does that galleryowner snippet return the same user id on both documents, eg. in the gallery document and in the picture management document (ID 42).


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 25551 ☆ A M B ☆
            • 1,231 Posts
            the snippet returns the webuser name who created the document... sorry I forgot to add that part. The document is created by a webuser and the snippet returns the full name of that person so the gallery belongs to them. The manage image button appears as it should but like I said, the manage gallery page only shows the single image that is there and no admin features.

            I tried both &manager_webusers=`[[galleryowner]]` &admin_webusers=`[[galleryowner]]` but both still only shows me the pictures and no upload form.

            I just re-read your post... the gallery edit page is created by the admin so the galleryowner snippet is no use with the new target edit page! My bad, sorry!
              Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
              AugmentBLU - MODX Partner

              BLUcart - MODX Revolution E-Commerce & Shopping Cart
              • 25551 ☆ A M B ☆
              • 1,231 Posts
              Quote from: rossco at Aug 23, 2009, 05:37 PM

              the snippet returns the webuser name who created the document... sorry I forgot to add that part. The document is created by a webuser and the snippet returns the full name of that person so the gallery belongs to them. The manage image button appears as it should but like I said, the manage gallery page only shows the single image that is there and no admin features.

              I tried both &manager_webusers=`[[galleryowner]]` &admin_webusers=`[[galleryowner]]` but both still only shows me the pictures and no upload form.

              I just re-read your post... the gallery edit page is created by the admin so the galleryowner snippet is no use with the new target edit page! My bad, sorry! I just made another snippet to reflect the sign in users name on the edit target page so it works now. grin
                Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                AugmentBLU - MODX Partner

                BLUcart - MODX Revolution E-Commerce & Shopping Cart