The bottom “Register” link on the Login page is being statically enabled/disabled using “Advanced Security / User Login Options / User Registration Page / Enabled” checkbox. Afterwards, I assume that a fixed code “<?php echo $Language->Phrase("Register") ?>” is being embedded into login.php.I’d like to let a DB admin show/hide the registration link on-the-fly according to the contents of a setup table. Is it somehow possible, except patching login.php each time after generating the code?
You should customize the template files to implement it.
Sincerely,
Masino Sinaga
I could try to, but then each project I’m working on would have to have appropriate setup table with corresponding fields… Or the templated link would have to check for their existence.
Use Startup Script (see Server Events and Client Scripts in the help file) to remove the link by JavaScript, e.g. (v9.1)<?php if (... your condition to remove ...) { ?>
$(“a[href=‘register.php’]”).remove();
Does this still work the same way in V2020? (I still get the register link displayed)