Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By MrTeenie on
Ok, So I made a custom login block for my drupal install and I type in information in and all, submit and it takes me to the login page. I type it in again and I finally login. I am not sure why this is not working, I found this code on this site and modified it slightly (can't remember where.)
global $user;
if ($user->uid) :
print l("logout","logout");
else :
Username:
Password:
Create account
Lost password
endif;
I am running Drupal 6. Also if you could tell me where I can locate the code for the pre-installed blocks so I can use as reference that'd be great.
Comments
Sorry I didn't use the code
Sorry I didn't use the code tags, here is the code.
=-=
code for the login block would be in the user.module I believe.
I looked, yet can't figure
I looked, yet can't figure out whats wrong with the form still... any ideas?
figure it out?
Did you ever figure this one out?
I am having that exact same issue.
Thanks!