Member
Member
Johnny Bravo   2012-03-14, 22:11
#1
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>
`
Administrator
Administrator
acrylian   2012-03-15, 10:49
#2
Why do you need this at all? Generally you should never change core files as your changes will be lost on every update.
Member
Member
Johnny Bravo   2012-03-15, 21:48
#3
I am aware of that. However I asked a question not a suggestion.
Member
Member
sbillard   2012-03-16, 00:03
#4
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.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.