If you make your Lazyest Gallery (Lazyest Gallery Plugin by Macbrink) only visible to logged-in users, the gallery will display a message like this: “Please log in or register to view the gallery.” But it doesn’t add a link to login, or a login form.
To make the Lazyest Gallery more user-friendly for my visitors, I add a login form below the message. This encourages visitors to stay and view the gallery. The login form also has a link to register. (BTW, I love the Lazyest Gallery plugin; it’s actually my single favorite WordPress plugin.)
To add a regular WordPress login/register form to the Lazyest Gallery message to users who are not logged in, do the following:
FILE TO EDIT:
Find the following code, which should be line 992:
printf( '<p>%s</p>', $message );
Change the code above to this new code:
printf( '<p class="loginmsg">%s</p>', $message );wp_login_form();
You may notice that I also added a CSS class to the message above. You can remove that if you like.
See more: Lazyest Gallery Plugin