I have enabled the user login block via admin/build/blocks/mytheme

How do I change the layout? And the labels? I assume I need a custom block-user-0.tpl.php. But what variable would I call for the form? I'm not sure I'm even asking the right questions.

I have searched and searched and can't find what I need for D6. Found a tutorial for D5 to make a custom login bar, but that's not what I need.

Thanks,
L

Comments

lindsayo’s picture

I ended up doing three things: using project/compact_forms to make the field labels contained within the fields; adding display:none to the links ID to hide them; and adding code through template.php to create a custom login button:

function mytheme_theme () {
	return array(
		'user_login_block' => array (
			'arguments' => array('form' => NULL),
			),
			);
	
}

function mytheme_user_login_block($form) {
global $theme;

$form['submit'] = array(
    '#type' => 'image_button',
    '#value' => t('Title'),
    '#src' => drupal_get_path('theme', $theme).'/images/login.jpg',
	'#id' => 'login_button'
  );
  return drupal_render($form);
}

Anybody know what code to use to remove those links from the user login block, rather than just using CSS to hide them?

japanitrat’s picture

unset($form['links']);
in your theme function

kars-t’s picture

Status: Active » Fixed

Hi

I am closing this issue to clean up the issue queue. Feel free to reopen the issue if there is new information and the problem still resides. If not please make sure you close your issues that you don't need any more.

Maybe you can get support from the local user group. Please take a look at this list at groups.drupal.org.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.