![]() |
|
Login logo link to homage - 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: Login logo link to homage (/thread-9775.html) |
Login logo link to homage - Johnny Bravo - 2012-03-14 How can I make the zenphoto logo link to my homepage of my website on the login? Yes ima php noob, and yes i tried adding `<a>` tags within the echo but no luck. Shouldn't be hard. Line 800 of the lib-auth.php file ` <?php if ($logo) echo "<img src=\"".WEBPATH.'/'.ZENFOLDER."/images/zen-logo.png\" title=\"Zenphoto\" alt=\"Zenphoto\" /> "; switch ($_zp_login_error) { case 1: ?> <div class="errorbox" id="message"><?php echo gettext("There was an error logging in."); ?><?php echo gettext("Check your username and password and try again.");?> <?php break; case 2: ?> <?php echo gettext("A reset request has been sent."); ?> <?php break; default: if (!empty($_zp_login_error)) { ?> <?php echo $_zp_login_error; ?> <?php } break; } ?></a> ` Login logo link to homage - acrylian - 2012-03-15 Why do you need this at all? Generally you should never change core files as your changes will be lost on every update. Login logo link to homage - Johnny Bravo - 2012-03-15 I am aware of that. However I asked a question not a suggestion. Login logo link to homage - sbillard - 2012-03-16 So just what do you want to happen? Clicking on the ZP logo takes you to your root page? Then the `<a href='...">` `</a>` tags should surround the `<img src.../>` item. This is, as acrylian says, not recommended. If you really want to do it you should extend the Zenphoto_Authority class and replace the function with your own. Otherwise you will have difficulty keeping this functionality in place. |