Member
Member
gelatin   2012-05-10, 18:27
#1
I already checked the Zenphoto template functions to find out how to use printPasswordForm,
but still do not know how to hide the link to "I forgot my User ID/Password"
I suppose its $hints=false, or $_password_hint=false

printPasswordForm($_password_hint = false,$_password_showuser = true);

Thanks
Member
Member
sbillard   2012-05-10, 18:42
#2
That is not hidable.
Member
Member
gelatin   2012-05-10, 19:42
#3
I am using Zenphoto 1.4.2.3

In zp-core/lib-auth.php around line 1008:

if ($hint) {
echo '<p>'.$hint.'</p>';
}

if (OFFSET_PATH != 2) {
?>
<p class="logon_link">
<a>/admin.php',['logon_step=challenge', 'ref='+$('#user').val()]);" >
<?php echo gettext('I forgot my [b]User ID[/b]/[b]Password[/b]'); ?></a>
</p>

But I guess you are right it's not hideable without changing this core lines....

Thanks for your fast reply.
Member
Member
Wete   2012-05-10, 19:53
#4
Do it quick and dirty - use CSS:

`

.logon_link {

display: none;

}

`
Member
Member
gelatin   2012-05-10, 20:13
#5
Thanks Wete...

your CSS tip did the job.

with your CSS trick I could change my theme without
changing any zp-core files...
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.