This is one of those rare cases where I feel like I've tried everything! Help would be much appreciated...
I have created a custom theme. I'm using front.tpl.php to have a completely different layout for my home page. On it I would like to place a custom login box, which toggles to a My Account / Logout link when the user is already logged in. All other login boxes are working fine -- it's just the one on the home page that's giving me grief. It simply (re)loads the page without logging the user in.
I am (well, was, as I have it disabled now to try and get this working) using LoginToboggin. I tried the snippet on this page with no luck. I'm using clean URLs, so I updated the form action to match. No luck. I grabbed various form/field properties from viewing source on other login pages. Still no luck. I checked out the user.module file to see where Drupal gets its form settings from and saw this:
$form['#action'] = url($_GET['q'], drupal_get_destination());
If I'm reading that right, it seems that Drupal gets the form's action from the hidden page destination field itself. *scratches head*
Anyway, that's a whole lot of rambling about what I've done, but I have no idea what else to try. How does one create a login box from scratch??
Anyone who would like to take a look is welcome to contact me for the URL.