Member
Member
FatalCure   2006-05-28, 11:18
#1

When I am logged out of zenphoto I cannot see the Admin link down the bottom of the page, when I am logged in I can.

The code being used to display this is:

Is there anyway to print the admin link whether I am logged in or out, or something like a "Log In" to be displayed if I am not logged in without creating a link manually like this?

Admin

Thanks in advance,

Dave (FatalCure)

Member
Member
DarrellD   2006-05-29, 19:58
#2

The following is a bit of code that I've used in the theme that I've developed for the wiki tutorial that I'm writing. Feel free to download the theme or use this bit of code if you like.

What it does is show the following if you [b]are not[/b] logged in:
ZenPhoto 1.0.2 / Login

And shows the following if you [b]are[/b] logged in:
ZenPhoto 1.0.2 / Admin / Sort Gallery / Logout

Here's the code:
`

Member
Member
FatalCure   2006-05-30, 03:51
#3

Cheers

Developer
Developer
trisweb   2006-05-30, 08:48
#4

You can always just visit the /zen/admin.php url to log-in, and if you use the same computer it should stay logged-in with no disadvantage (except of course if you share the account). I can see where a login link would be useful though.

Member
Member
FatalCure   2006-05-30, 16:07
#5

I am just really lazy.. /zen/admin.php takes longer then a click on a link.

Member
Member
Chilifrei64   2006-05-30, 17:05
#6

you could just add a static link to zen/admin.php in your theme file...

Developer
Developer
trisweb   2006-05-30, 20:02
#7

Yep, that'd work. If you're logged in, it'll take you there, if not, it'll prompt for a login

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.