Block system does not call block--[module]--[delta].tpl.php file.

When creating a custom theme creating a block--[module]--[delta].tpl.php file for use with your template does not work as expected.

The file is not used to render the block.

Need help with writing theme from scratch

Hello,

i have a problem with learning how to write my own theme. i made new folder called lihtne in sites/all/themes folder and also made lihtne.info in that folder. i enambled the theme and made it default.

then i made new empty files: html.tpl.php and page.tpl.php . drupal still uses system template files. i also tried and copied these files from system directory into my theme directory but still no effect.

in my lihtne.info i have declared stylesheets[all][] = style.css where body background is set to black. it works.

No users, thanks.

How do I completely disable users? I don't want users to register, nor see the login box at all. I want just me, only me to be the only user (since I have to be the admin)

Drupal Life cycle

Yesterday at Drupal Downunder, the question of product life cycle came up during the Q&A at the end of Dries' Keynote.

Traditionally Drupal supports the current version, and the previous version. When a new version comes out the oldest supported version is retired. This is great, except the unpredictable life cycle means that clients investing in Drupal sites cannot be certain of the amount of time before their site will have to be upgraded, and in some cases the support period for each major version number is not long enough (from a client perspective).

Placing Images on Node Teaser on Frontpage

Good evening all,

I am still trying to get my head around Drupal but making progress, partly with thanks to you guys. I have placed my news article stories where I want them on the test homepage. However, what I wanted to do was have the article image displayed as a small 120x120 thumbnail on the teaser and positioned to the right of the story, with text to it's left, not over the text (where I currently have the date calendar which I wil be removing).

transfer to drupal 7

I can not to change my code properly. I need it for using drupal 7. I try this:

if(!($node = menu_get_object()))
return;
  $list = db_query("SELECT column1, column2 from table1 where column3='%s' ORDER BY column1", array($node->title));
  $names = array();
  $urls = array();
  foreach($list as $row){
  $header = array('Chapter pages');
    $names[] = $row->column2;
    $urls[] = $row->column1;
  }

My old code is (%s get me node title that should be equal to column1):

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x