By dirkgomez on
Hello,
I want to show the user login block on the user/* pages - without hacking core of course.
In user.module I've found this:
// For usability's sake, avoid showing two login forms on one page.
if (!$user->uid && !(arg(0) == 'user' && !is_numeric(arg(1)))) {
How do I override this behaviour the correct way - i. e. not by simply changing this line to:
if (!$user->uid) {
Thanks a lot.
-- Dirk
Comments
=-=
There may not be a way to override that. You may have to comment it out in the file itself. The object is to stop the login block from shoing up on the login page.
To avoid hacking core, I would likely alter the path of my users with pathauto.
a for example:
If building a music site
Id alter the user paths to fan
Login page is still available @ yoursite.com/user
blocks can now be controlled by using the fan and fan/*
That's pretty disappointing.
That's pretty disappointing. Drupal's user page is quite unappealing so I've customized it and put the login block in a lightbox. I did everything prior without editing the core, but now I can't avoid it.