Hi all

I've spent a bit of time searching through the forum but couldn't find a post that addresses precisely what I'm after

I want to create a completely static site that does not allow for comments or anything like that, no custom settings at all... basically the entire login option can be removed completely and the site is just online for information only.

How can this be done in drupal? I was considering using static html pages to overcome this, however the site will be updated constantly by a non-savvy user which makes the drupal admin interface perfect for adding/editing content.

I do understand that I will need to save a link to the admin login page so that content changes can be made only via authorisation, but how can I turn off authentication (as well as removing the actual login box) for the rest of the world?

Thanks for your help! :)

-CARLITO

Comments

vm’s picture

remove the login box by going to administer -> modules

set registration to off by going to administer -> user settings
set Public Registration
to : Only site administrators can create new user accounts.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

zilla’s picture

i think that will remove the comment option completely for content (as opposed to seeing 'you must be logged in to comment')

also, if there are lingering text items floating around, also check out string overrides module to change system text (e.g people use it to change 'add new comment' to 'reply' or 'search this site' to 'search mysite.com' etc)

also disable forums if you left 'em on....unless you're going to talk to yourself publicly ;)

carlito’s picture

thanks for the fast response! :)

which module is responsible for logging in? i couldnt see anything blindingly obvious (drupal 5.7)

i tried disabling the comments module just to see if that was going to do it (i didnt expect it to)... but yeah, as i expected the login box is still there

thanks again

-CARLITO

artcoder’s picture

This is how I would do it ...

1. In Drupal "Create Content", Create a page called "myspeciallogin". When creating this page, make sure you use the "url path settings" to "myspeciallogin" so that this page is easily navigable via URL.
2. Go to Administer -> Blocks. For the "User Login" block set region to "left sidebar" and click "Configure".
3. In the "Configure" page for the "User Login" block, set "Show on only the listed pages" and type "myspeciallogin" in the "Pages" text area.
4. Now none of your pages except the "myspeciallogin" page will have the login box. Since you don't make "myspeciallogin" page visible anywhere on the site, no one will see the login box. The admin just have to remember to go to that "myspeciallogin" page directly via url (such as http://www.example.com/myspeciallogin") in order to login.

carlito’s picture

thank you artcoder... that solution is perfect :)

zilla’s picture

go to admin/menus/navigation and disable the login item - the block will be gone (and disable any associated block).

when you need to login, just go to example.com/user and you'll see the login screen. i believe that would work.