I am attempting to create my own theme, I wanted the login block horizontally across the top of the page I got it to work as shown here http://drupal.org/node/92657#comment-1612166. I then wanted to make a custom region above the header to put this in, I created the region in the mystupidtheme.info cleared the cache and went to admin/build/block and the region shows (but the yellow bars that show where each region is, there is not one for the new custom region). If I put the login block in top_login_bar region it doesn't show even after clearing cache and loging out. If I move it back to header it works fine. Here are snippets of the files I am using.
mystupidtheme.info
name = My Stupid theme
description
engine = phptemplate
version = VERSION
core = 6.x
stylesheets[all][] = css/style.css
regions[top_login_bar] = Top Login Bar
regions[header] = Header
regions[content] = Content
regions[left] = Left Sidebar
regions[right] = Right Sidebar
regions[footer] = Footer
page.tpl.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>"
lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
<head>
<?php print $head; ?>
<title><?php print $head_title; ?></title>
<?php print $styles; ?>
<?php print $scripts; ?>
<script type="text/javascript"><?php /* Needed to avoid Flash of Unstyled Content in IE */ ?> </script>
</head>
<body>
<!-- loginbar starts -->
<div id="loginbar">
<?php print $top_login_bar; ?>
<?php print $user_bar; ?>
</div>
<!-- header starts -->
the module I created for the horizontal user login
<?php
function login_bar_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'user_login_block') {
// To change the default Username to Gamer:
$form['name']['#title'] = t('Gamer');
// To change the "Create new account" to Register Now!"
$items[] = l(t('Register NOW!'), 'user/register', array('title' => t('Create a new user account')));
// To change the "Request new password" to "Forgot Password?"
$items[] = l(t('Forgot Password?'), 'user/password', array('title' => t('Request new password via email.')));
$form['links'] = array('#value' => theme('item_list', $items));
}
}
Is this normal or did I break the theme and/or my drupal install?