![]() |
|
Admin link - not displaying when logged out - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Admin link - not displaying when logged out (/thread-525.html) |
Admin link - not displaying when logged out - FatalCure - 2006-05-28 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) Admin link - not displaying when logged out - DarrellD - 2006-05-29 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: And shows the following if you [b]are[/b] logged in: Here's the code: Admin link - not displaying when logged out - FatalCure - 2006-05-30 Cheers Admin link - not displaying when logged out - trisweb - 2006-05-30 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. Admin link - not displaying when logged out - FatalCure - 2006-05-30 I am just really lazy.. /zen/admin.php takes longer then a click on a link. Admin link - not displaying when logged out - Chilifrei64 - 2006-05-30 you could just add a static link to zen/admin.php in your theme file... Admin link - not displaying when logged out - trisweb - 2006-05-30 Yep, that'd work. If you're logged in, it'll take you there, if not, it'll prompt for a login |