ZenphotoCMS Forum
printPasswordForm Usage - 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: printPasswordForm Usage (/thread-9962.html)



printPasswordForm Usage - gelatin - 2012-05-10

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




printPasswordForm Usage - sbillard - 2012-05-10

That is not hidable.




printPasswordForm Usage - gelatin - 2012-05-10

I am using Zenphoto 1.4.2.3

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

if ($hint) {
echo ''.$hint.'';
}

if (OFFSET_PATH != 2) {
?>

/admin.php',['logon_step=challenge', 'ref='+$('#user').val()]);" >

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

Thanks for your fast reply.




printPasswordForm Usage - Wete - 2012-05-10

Do it quick and dirty - use CSS:

`

.logon_link {

display: none;

}

`




printPasswordForm Usage - gelatin - 2012-05-10

Thanks Wete...

your CSS tip did the job.

with your CSS trick I could change my theme without
changing any zp-core files...