Hi there.
I've just started getting into Drupal, using phpTemplate.
So far I've found it pretty simple, mostly pulling stuff into the template, which I'm building from scratch. What I'm having trouble with is theming a specific block - in this case the "user" block, with the login and controls, etc.
The docs talk about block.tpl.php and show the list of variables, plus a default example. Assuming I'm heading in the right direction using a block.tpl.php file, I need a little more clarification on a few points below, please.
1. Is the file actually called "block.tpl.php" or does the name change for each block? So if I was modifying the user block in the example above, does the file become "user.tpl.php", meaning multiple files for each block?
2. Consider the following line:
<div class="<?php print "block block-$block->module" ?>" id="<?php print "block-$block->module-$block->delta"; ?>">
If I wanted to theme the user block specifically, what would the format of that line become?
3. Is it possible to have a block on one part of a page prior to login, then have the block move to another position after login? The site I'm trying to work is here:
http://chris.threedd.com/drupal
The login box is meant to be in the blue part, but I would like to move it to the left or right side (in the whitespace) after login so I'm not crowding the page too much. There are blank tables already in place for this purpose.