So I disabled the login box and wonder how to log in now! I hope there is a way =)

Comments

Anonymous’s picture

cybe@drupal.org’s picture

Can't seem to get that working, with or without the brackets. I'm locked out here =(

ax’s picture

optional. ie.
  http://yoursite.com/?q=user (when clean_urls are disabled)
or
  http://yoursite.com/user (when clean_urls are enabled)

you knew that, didn't you?

when i do this on my local box, i get a nice login page. this of course only works for 4.2rc.

Barks’s picture

So if I have a version after 4.2rc I'm screwed?

:(......no good.....

pieterdt’s picture

it should work on later versions also. I can confirm form 4.6

sepeck’s picture

The full complete should be
sample.com/index.php?q=user

-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

amanda’s picture

I am using a PHP Template theme, this would work differently in another theme, but I add this code snippet to the bottom of the page.tpl.php file, below the call to print the footer (also shown here). It adds a very small login/register or logout link to whatever footer you define in admin/settings:


print $footer_message;

global $user;

 if ($user->uid) {
   print " You are logged in as ". $user->name;
   print " | <a href='logout'>logout</a>";
 }
 elseif (!$user->uid) {
   print " <a href='user/login'>log in</a> or <a href='user/register'>register</a>"; }
nevets’s picture

Just checked and it works find in 4.52

stevensj2’s picture

What I do when I disable the login box is just bookmark mysite.com/user and login that way.

-----------------
Josh Stevens
Nautilus7 Design | www.nautilus7.com

lukask’s picture

Just installed Drupal 4.6.0, and I also disable the login block.
/ or ?q= do not work at all.
Is there a way to log in again without having te login block?

LukasK

sepeck’s picture

/index.php?q=user

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

lukask’s picture

Sorry, but none of these ways work for me...

mdroste’s picture

--
mdwp*

sepeck’s picture

If he has to go to that level, it makes me wonder if he has a custom theme and has taken out the (in phptemplate) $tabs variable.

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

lukask’s picture

No, nothing works. I have no themes installed other than the default ones. I just installed Drupal. It's on personalsites.org.

Bèr Kessels’s picture

If so, please report back. For there are some hacks available to get into drupal if you can access the raw database (wo, always remember that giving people access to your database administration is dangerous)

Also, please give us details: not what server or platform you run, but things like; clean urls enabled? cache on or off? extra modules installed? version of drupal you run? etcetc
---
if you dont like the choices being made for you, you should start making your own.
---
[Bèr Kessels | Drupal services www.webschuur.com]

lukask’s picture

Hi Bèr,

I did a clean install of version of 4.6.0 using Fantastico.
Because I am just starting to build my website, there is nothing lost. I can simply remove and re-install now. But if this problem continues I might be forced to use some other CMS. (I'd rather use Drupal because of some features I like).
The first time I had clean urls enabled, and I only added the Dutch translation. No extra modules yet. I did not change anything in the caching I think. Do you think that caching can cause problems in this area?
The second time I only did a clean install without anything else, so no clean url's enabled, etc.
Both times: the same problems.
I must add: I installed both times with "vpw" as admin user name (I am using domainname vpwnet.com). Then "base-url/vpw" or "base-url/?q=vpw" returned the error message "page not found" whereas "base-url/admin" or "base-url/?q=admin" returned the error message "no access to this page" (or something similar).

Lukas

sepeck’s picture

Fantastico might well be the problem. Perhaps if you did a clean install from a download off this site and from the install.txt it might work.

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

mdroste’s picture

I can't see anything that looks like Drupal on your site.
I've found nothing than plain html pages and it seems that no Drupal path works.

go with us - learn php

--
mdwp*

lukask’s picture

This is because I removed Drupal, after I could not log in anymore (remember it was just a clean first time install).
I am also having some Fantastico installing errors. I am talking to my hoster's support team about that now.

LukasK

noid’s picture

You should type the word "user" -- www.mysite.com/user

NOT

the name of the user (in your case, vpm) -- thus not www.mysite.com/vpm -- I think this latter, typing the username itself, will only work if you haven't logged out.

lukask’s picture

Thanks,
This is really embarrassing, this is probably because in my work, whenever I see "user" I have to interpret that as an actual user name.

I will try that immediately.

LukasK

noid’s picture

Your welcome.

You shouldn't be embarrassed. One thing I learned this past 3 mos or so from this community is that there are no silly questions and problems. Everyone is willing and eager to help. :)

warrenonline’s picture

Don't be embarassed at all. I'm new to Drupal and I had to drop the database twice because I did the exact same thing ! It wasn't until this thread that I figured it out.

Warren
http://www.warrenonline.ca