Thanks for the reply. Just a few q's :)
If I disable the log in for on the admin screens. How do I then gain access to the site? Would you be better displaying the login on a specific page? eg www.example.com/cms ? Can you set a theme for different node, i.e. garland (my admin theme) to the path /cms
I'm just starting out using Drupal but so far I'm loving it
Seth Freach wrote:
Brian,
Are you wanting to only hide the login block? If so, either of the below relatively quick options should work for you. Do which ever works best for your needs, you don't need to do both.
- via the clicking in the browser:
- go to ?q=admin/build/block/configure/user/0
- in the "Page specific visibility settings" section, select the first
option: "show on every except..."
- in the pages: text block in that section, enter 2 lines: admin admin/*
- click "save block"
- via theme code:
- in your theme's directory, find a file named 'block.tpl.php'
- copy that to a new file named 'block-user-0.tpl.php'
- add the following code near the top of the new file:
<?php if (arg(0) == 'admin' && !$user->uid) { return; } ?>
Or are you looking to deliver a 404 message at the /admin path to anonymous visitors? If this is your need, you'd be better off doing it in module code, rather than at the theme layer.
Seth
sinkingfish wrote:
Hi
I'm wondering to hide the admin zone, so if someone goes to www.example.com/admin they aren't presented with a login to my site. I've been looking around and can't find anything on this, surly this would be a common issue.
Any hints and tips welcome.
Brian
-- [ Drupal support list | http://lists.drupal.org/ ]