Can someone port this module to 6.x? Thank you.

Comments

spiffyd’s picture

Assigned: Unassigned » spiffyd

I'll give it a try...

todd nienkerk’s picture

Title: 6.x port? » Release 6.x branch

spiffyd: Have you made any progress? I've got some bandwidth, and I'd like to branch this today or this weekend if possible.

spiffyd’s picture

Status: Active » Needs review

@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>

That's it! Maybe you can turn this into a patch?

todd nienkerk’s picture

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.

Look for a D6 release in the next week.

todd nienkerk’s picture

Assigned: spiffyd » todd nienkerk
Status: Needs review » Active

Assigning to self and setting status to active.

hackwater’s picture

Status: Active » Closed (duplicate)

Dupe of http://drupal.org/node/310115, which is done