Hi,

I have installed drupal 7.0 and I cannot hide the login block.
I read the handbook and especially number 18 : How to remove the login register and RSS but doesn't help.
I also set the block value to none inside drupal 7 administration but still no luck.
How can I add this login block on drupal 7?

Comments

smartmobili’s picture

Title: Cannot ide login form » Cannot hide login form
danpros’s picture

Category: bug » support

Hi,

Regarding the login block only visible if you are not login after you setup it.

In D7 all is different, I am not updating the handbook yet.

Disable the feed

.feed-wrapper {
display:none;
}

Disable the login register

#authorize {
display:none;
}

Dan

klonos’s picture

It would be really nice if these were options (checkboxes) in the theme's settings. Again, like #1032248: Move 'My account' & 'Log out' from bottom to top, one will have to edit code again and again upon theme version upgrade.

klonos’s picture

...besides having them as theme settings, it would also be nice to respect the 'Registration and cancellation' setting (../admin/config/people/accounts). When only admins are set to be allowed to register new accounts, then the 'Register' link should not be visible at all (currently it takes you to a 'Access denied - You are not authorized to access this page.' page).

danpros’s picture

klonos,

Yes #3 and #4 should available in my next release :)

Thanks,
Dan

klonos’s picture

Thanx Dan, waiting anxiously to test things out ;)

[off-topic]: Have you ever thought about having a dev version for each of your 6.x and 7.x branches?

calbert’s picture

I tried this and it seems to have done nothing for me.

syedahafsa’s picture

Is there a way to hide the login form? i'm using danland 7.0 . Has anybody done it? The solutions provided here are not working. Also how do i clear cache? Please reply.

Taxoman’s picture

Status: Closed (fixed) » Active

I assume that it is not the "form", but the links at the top of the pages you mean.
(if not, this is not a Danland theme issue)

Steps:

1. Rename the local-sample.css to local.css, and add the following lines to it:
#authorize ul {
display: none;
}
#notice {
display: none;
}

2. Edit the Danland.info file:
Change the line:
;stylesheets[all][] = local.css
to
stylesheets[all][] = local.css
(=remove the ";", so it becomes activated)

3. In Drupal, go to "Configuration -> Performance" and click on "Clear all caches".

4. Clear the cache of your browser too, just in case (perhaps not necessary).

5. Reload the front page of your web site. The Login and Register links should now be gone.

If you want to remove the RSS link too, remove "ul" from the "authorize" part of the code in step 1 so that it becomes:
#authorize {
display: none;
}

All the variants are described here:
http://drupal.org/node/768350#login-register-rss

Edit: I somehow forgot to include the "#notice" part in step 1. Added it to this comment. (that part removes the footer credits)

Taxoman’s picture

Title: Cannot hide login form » Cannot hide login links
Status: Active » Fixed

If this does not work, feel free to re-open this issue.

(If this is indeed about the _block_ , then make sure you have either hidden the block on the blocks page, or removed it from the desired user roles (for example "Anonymous"), on the configuration page for that block. That is normally not related to the theme.)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Taxoman’s picture

Title: Cannot hide login links » How to hide login links with Danland
Status: Active » Closed (fixed)

(better title for future searches)

phicarre’s picture

OK for me: login and RSS hidden
but in the bottom there is always a "my account" link !

somepal’s picture

little help for those who would come to this page looking for ways to hide login/rss etc.

in newer version rss feed-icon is under the 'feed-wraper' div. So

#authorize {
    display: none;
}

only hides login & register links.
To hide rss-feed icon too, put this in your local.css

.feed-wrapper .feed-icon{
    display:none;
}
isam8’s picture

Even when the Login and Register links are hidden, anyone who knows Drupal can still access those pages directly by typing the URL directly.

http://www.onthespotmemories.com/user

How can I have a Login URL that can't be accessed unless the URL is given directly?

Thank you in advance.

Anonymous’s picture

How to remove login from home page in Drupal 6. I did what was described in the local.css and I still cannot get the login to stop displaying. I have a subdomain with Danland in the themes directory of the subdomain in sites.

** it really matters where the #authorize block is placed in local.css. Moved it to the top and the login is gone.

Anonymous’s picture

Been using this theme for years and still love it. Is there a wah to remove the "HOME" form the front page? Thanks so much Dan.