• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Customization to limit what assistant login can do

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Feb-16-2011, 06:17 PM
#1
jfriend is online now jfriend OP
Scripting dude-volunteer
Customization to limit what assistant login can do
This customization limits what the assistant login for a pro account can see in the UI. It hides everything except create gallery, upload photos and gallery maintenance. Specifically, it hides all the stuff that changes the homepage, the galleries page, the bioBox, etc...

It isn't entirely foolproof so this is done more to keep assistants from stumbling into things they shouldn't be messing with rather than as real security, but if you let outsiders upload photos via the assistant password, this should keep them from messing with your site (accidentally or intentionally) in ways you don't intend.

To install this customization, put this code in your bottom javascript:

Code:
//----------------------------------------------------------------------------------------------
// Script to hide lots of UI things when logged in via assistant password
//
// Version 1.0.
//----------------------------------------------------------------------------------------------
YE.onContentReady("toolsButton", function()
{
    var isOwner = false;
    try {
        isOwner = SM.buttons.toolsButton.config.owner;
    } catch (e) {}
    if (!isOwner)
    {
        YD.addClass(document.body, "notOwner");
    }
});
And, add this to your CSS:

Code:
/* hide stuff when logged in as assistant */
body.notOwner.homepage #toolsButton, 
body.notOwner.category #toolsButton, 
body.notOwner.homepage #buyButton, 
body.notOwner.category #buyButton, 
body.notOwner #themesButton, 
body.notOwner #visitorView,
body.notOwner #homepageLayoutButton,
body.notOwner #bioBox .boxTop,
body.notOwner .boxSettings,
body.notOwner #categoriesBox .boxTop .boxNote {display: none;}
If you want to allow more functions, you can remove any single line in the CSS to allow that function.

There is one disclaimer about this customization. If Smugmug changes the design of the UI to administer the site, this customization may break. If it does, it will have to be modified to adapt to the changes.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question

Last edited by jfriend; Feb-16-2011 at 08:04 PM.
Old Feb-17-2011, 12:42 AM
#2
PhilDaPhot is offline PhilDaPhot
Photographer
PhilDaPhot's Avatar
Thanks for this John.

This is perfect for what I need. Just one question though, It works when I am logged in as the assistant and I cannont see anything but the create album tab. However when I go to my assistans page it brings back all the options once again. Is there a way to make it work on all galleries or do I have to input it for each gallery individually.

Website is http://www.phillipcullinanphotography.com/ and the assistants webpage is http://www.phillipcullinanphotography.com/Monkey

Well Done and once again great work

Phil
__________________
Phillip Cullinan

http://www.phillipcullinanphotography.com


Quote:
If your photos aren't good enough, then you are not close enough.

Robert Capa
Old Feb-17-2011, 06:56 AM
#3
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by PhilDaPhot View Post
Thanks for this John.

This is perfect for what I need. Just one question though, It works when I am logged in as the assistant and I cannont see anything but the create album tab. However when I go to my assistans page it brings back all the options once again. Is there a way to make it work on all galleries or do I have to input it for each gallery individually.

Website is http://www.phillipcullinanphotography.com/ and the assistants webpage is http://www.phillipcullinanphotography.com/Monkey

Well Done and once again great work

Phil
What do you mean by "the assistants webpage"? What you have linked is just a category page. What options do you see on that page when logged in as an assistant? Since I can't see what it looks like, can you either describe very clearly or include a screen shot?
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question

Last edited by jfriend; Feb-17-2011 at 08:07 AM.
Old Feb-18-2011, 04:26 PM
#4
PhilDaPhot is offline PhilDaPhot
Photographer
PhilDaPhot's Avatar
Quote:
Originally Posted by jfriend View Post
What do you mean by "the assistants webpage"? What you have linked is just a category page. What options do you see on that page when logged in as an assistant? Since I can't see what it looks like, can you either describe very clearly or include a screen shot?


John Thanks for the prompt reply as usual. I think that I have nutted out what had happened. I should have stated that my assistants page is just one I created for him in his own catagory so he shouldnt access any of mine.
What had happend with the other stuff is I think I had the auto login set to on so when it asked for the password it defaulted back to my pro account.
sorry about the confunsion mate. Well done

Phil
__________________
Phillip Cullinan

http://www.phillipcullinanphotography.com


Quote:
If your photos aren't good enough, then you are not close enough.

Robert Capa
Old Aug-02-2011, 03:57 PM
#5
J Allen is offline J Allen
Major grins
J Allen's Avatar
John,

Thanks for once again taking the time to write this up...works great! I'm currently using this for a high school football team, to let a few other parents upload photos.
__________________
-Joe Allen
My Smugmug Site
Old Aug-02-2011, 05:18 PM
#6
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by J Allen View Post
John,

Thanks for once again taking the time to write this up...works great! I'm currently using this for a high school football team, to let a few other parents upload photos.
You're welcome. It has worked well for me as well. I'm anticipating breakage when the new UI hits though.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Oct-26-2011, 08:33 PM
#7
LisGar is offline LisGar
Big grins
Thank you, this thread has been really helpful. I'm wondering if there's a way to remove the option (for those who have assistant access) to "Organize: hide" for the slideshow feature on my homepage. Thanks again for all the useful information and codes!
__________________
Fulbrightkorea.smugmug.com
Old Dec-12-2011, 12:11 AM
#8
Arnsteins is offline Arnsteins
Big grins
Quote:
Originally Posted by jfriend View Post
This customization limits what the assistant login for a pro account can see in the UI. It hides everything except create gallery, upload photos and gallery maintenance. Specifically, it hides all the stuff that changes the homepage, the galleries page, the bioBox, etc...

It isn't entirely foolproof so this is done more to keep assistants from stumbling into things they shouldn't be messing with rather than as real security, but if you let outsiders upload photos via the assistant password, this should keep them from messing with your site (accidentally or intentionally) in ways you don't intend.

To install this customization, put this code in your bottom javascript:

Code:
//----------------------------------------------------------------------------------------------
// Script to hide lots of UI things when logged in via assistant password
//
// Version 1.0.
//----------------------------------------------------------------------------------------------
YE.onContentReady("toolsButton", function()
{
    var isOwner = false;
    try {
        isOwner = SM.buttons.toolsButton.config.owner;
    } catch (e) {}
    if (!isOwner)
    {
        YD.addClass(document.body, "notOwner");
    }
});
And, add this to your CSS:

Code:
/* hide stuff when logged in as assistant */
body.notOwner.homepage #toolsButton, 
body.notOwner.category #toolsButton, 
body.notOwner.homepage #buyButton, 
body.notOwner.category #buyButton, 
body.notOwner #themesButton, 
body.notOwner #visitorView,
body.notOwner #homepageLayoutButton,
body.notOwner #bioBox .boxTop,
body.notOwner .boxSettings,
body.notOwner #categoriesBox .boxTop .boxNote {display: none;}
If you want to allow more functions, you can remove any single line in the CSS to allow that function.

There is one disclaimer about this customization. If Smugmug changes the design of the UI to administer the site, this customization may break. If it does, it will have to be modified to adapt to the changes.
Thanks, this works great, but it seems like the keywords disapear under the photos. You need to go into tools to add keywords. Caption is still showing. Is it a way to show the keywords under each single photo in the gallery?
I also wonder if it`s possible to hide more buttons for the "assistant", like Style, Share, Buy and View Cart?

Best regards,
Arnstein
www.naturogbilde.com
Old Dec-12-2011, 10:53 AM
#9
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by Arnsteins View Post
Thanks, this works great, but it seems like the keywords disapear under the photos. You need to go into tools to add keywords. Caption is still showing. Is it a way to show the keywords under each single photo in the gallery?
I also wonder if it`s possible to hide more buttons for the "assistant", like Style, Share, Buy and View Cart?

Best regards,
Arnstein
www.naturogbilde.com
If you want the buy and cart buttons hidden for the assistant, you can add:

body.notOwner #buyButton, body.notOwner #cartButton {display: none;}

The Style button is available for everyone (including regular viewers). If you want it to go away for everyone, then set the viewing style in gallery settings to something other than "Viewer Controlled". There's no point in hiding the style button just for the assistant since it's available to everyone.

When properly logged in as an assistant, my site lets me edit keywords as the assistant so if you're not seeing that, then it must be something unique to your site. Since I can't see your site as an assistant, I don't know what it could be.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Dec-12-2011, 12:44 PM
#10
Arnsteins is offline Arnsteins
Big grins
Quote:
Originally Posted by jfriend View Post
If you want the buy and cart buttons hidden for the assistant, you can add:

body.notOwner #buyButton, body.notOwner #cartButton {display: none;}

The Style button is available for everyone (including regular viewers). If you want it to go away for everyone, then set the viewing style in gallery settings to something other than "Viewer Controlled". There's no point in hiding the style button just for the assistant since it's available to everyone.

When properly logged in as an assistant, my site lets me edit keywords as the assistant so if you're not seeing that, then it must be something unique to your site. Since I can't see your site as an assistant, I don't know what it could be.
Thanks for your time, Jfriend! The buy and cart button is now gone, thanks. I still can`t figure out why the keywords don`t show. I think there is something wrong in my CSS, but I can`t figure out what. I look at bit deeper into it, cause I think I used some of your programming to "hide things from the assistant".
Thanks again!

-Arnstein
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
Differentiate between assistant login vs. site owner login? jfriend SmugMug Customization 13 Feb-16-2011 06:27 PM
The Facebook - SmugMug login Thread Andy SmugMug Support 0 Oct-01-2010 04:47 AM
Login Issues with IE6 TBT Bug Reporting 3 Jan-25-2010 04:51 AM
Customization curiosity Harrzack SmugMug Customization 9 Jun-01-2008 09:58 AM
Perhaps get rid of the 48 megapixel size limit? fuzzybabybunny SmugMug Support 3 Apr-13-2008 08:32 PM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump