We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14793
    • 7 Posts
    Hey guys.

    I’m using MaxiGallery smoothgallery to display some images here.

    https://www.sensovi.com/index.php?id=336

    I want to hide the manage pictures button from normal users and only make it accessible for admins logged in at the front end who are part of the "admin" webgroup.

    I’ve found the &admin_webgroups and the &admin_webusers calls, as well as the &manager_webgroups and the &manager_webusers calls, but I can’t seem to use them properly.

    Here’s the page code.

    <center>[!MaxiGallery? &display=`embedded` &embedtype=`smoothgallery` &smoothgallery_timed=`true` &smoothgallery_width=`425` &max_pic_size=`960` &smoothgallery_height=`282` &smoothgallery_preloader =`true` &quality_pic =`100` &big_use_dropshadow=`0` &disable_rightclick=`1` &smoothgallery_showCarousel=`false` &smoothgallery_showInfopane=`false` &smoothgallery_embedLinks=`false` &manage_target=`336` &smoothgallery_showArrows=`false` &manager_webgroups='TEST' !]</center><center><br /></center>
    <table border="0" cellpadding="10" cellspacing="5" width="450">
    <tbody>
    <tr>
    <td align="left" bgcolor="#ffffff">
    <p>We welcome you to <a href="[~73~]">our office and classroom</a>, or we'll meet you in the convenience, comfort, and privacy of your home through our <a href="[~85~]">online campus and website</a>.</p>
    <p><span style="font-size: 12px;">W</span>e believe that personal happiness, growth, development, and success come through accurate information, accessible services, and innovative approaches—all in a caring and personalized environment.  </p>
    <p style="text-align: left;">Private, convenient, anytime, anywhere—you can get the help you need. We address <a href="[~63~]">relevant issues</a> in a dynamic, interactive environment, whether you are married, single, parents, educators, or fellow personal healthcare providers.</p>
    </td>
    </tr>
    </tbody>
    </table>
    <center><br /></center><center><img alt="connect, learn, renew, enjoy" height="18" src="assets/images/sensovi_tagline.jpg" title="connect, learn, renew, enjoy" width="423" /></center><center><br /></center>



    Any help would be greatly appreciated.
      • 7923
      • 4,213 Posts
      You are using single quotes in the &manager_webgroups parameter and not back ticks, eg. change ’ to --> `

      Also if you really want to use RTE on the document, put the snippet call in a chunk and call the chunk on the document so that the ampersands don’t get translated to html entities.

      And if you don’t still get it working, start with a simpler snippet call with just &manager_webgroups parameter and get the manage button working first.



        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 14793
        • 7 Posts
        Okay, I fixed the backticks and put it in a chunk, and it still works the same way. I also tried this like you suggested, but that doesn’t hide the button either.

        [!MaxiGallery? &display=`embedded` &manager_webgroups=`TEST,ADMIN,Site Admins` &admin_webgroups=`TEST,ADMIN,Site Admins` &manager_webusers=`jterrell` &admin_webusers=`jterrell`!]


        EDIT: That code is loaded on the aforementioned link if you want to see it FYI
          • 7923
          • 4,213 Posts
          The link above doesn’t work (redirects to 404 page). Probably unpublished or not public..

          In any case, how do you test that is the manage pictures button available to all or just certain users? If you are logged in to back end and have editing rights to the document, you will always see the manage pictures button.

          So you need to logout from back end, then log in to front end with some webuser account.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 14793
            • 7 Posts
            Perfect, it was working after all. Thanks for the help!

            Here’s the product btw. https://www.sensovi.com/index.html