Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
@Todd Nienkerk... I got the "Block Class" implemented to 6.x but I am actually am new to making patches (i.e. im not sure how to create patches), so I'll explain what I did. It's really simple actually...
I'm using a modified Marinelli theme, but I'm sure the method applies to any other theme. Basically I inserted one line of code right under the "defaulblock" div class in my theme's "block.tpl.php" file...
This is my block.tpl.php:
<?php
if ( ( $block->subject == 'aboutme' ) ) {
include 'block-aboutme.tpl.php';
return; }
?>
<div class="defaultblock">
<!-- INSERT THE FOLLOWING LINE OF CODE HERE AND YOU'RE SET! -->
<div class="<?php print "$block->module-$block->delta" ?>">
<h2><?php print $block->subject; ?></h2><!--block title-->
<div class="blockcontent"><?php print $block->content; ?></div>
</div>
</div>
spiffyd: What you've described above is basically a reiteration of how to use the module! :) What I was looking for was a patch or some documentation of how you changed the actual .module file to work within Drupal 6's coding standards. If you were able to to this with minimal work, I'm glad to hear it, because that means my job will be relatively easy.
Comments
Comment #1
spiffyd commentedI'll give it a try...
Comment #2
todd nienkerk commentedspiffyd: Have you made any progress? I've got some bandwidth, and I'd like to branch this today or this weekend if possible.
Comment #3
spiffyd commented@Todd Nienkerk... I got the "Block Class" implemented to 6.x but I am actually am new to making patches (i.e. im not sure how to create patches), so I'll explain what I did. It's really simple actually...
I'm using a modified Marinelli theme, but I'm sure the method applies to any other theme. Basically I inserted one line of code right under the "defaulblock" div class in my theme's "block.tpl.php" file...
That's it! Maybe you can turn this into a patch?
Comment #4
todd nienkerk commentedspiffyd: What you've described above is basically a reiteration of how to use the module! :) What I was looking for was a patch or some documentation of how you changed the actual .module file to work within Drupal 6's coding standards. If you were able to to this with minimal work, I'm glad to hear it, because that means my job will be relatively easy.
Look for a D6 release in the next week.
Comment #5
todd nienkerk commentedAssigning to self and setting status to active.
Comment #6
hackwater commentedDupe of http://drupal.org/node/310115, which is done