this is basically evil and wrong, but since block vis by role just barely missed the 4.7.0 code freeze, there's no great blocks-by-roles solution for 4.7.x. in 4.6, i provided a patched version of block.module to handle this via http://drupal.org/node/49154. apparently, some folks have grown to depend on this, and are emailing me for a 4.7.x version. i don't have time to Do It Right(tm) and write a contrib module to tie into the php visibility settings stuff and form_alter(), etc, etc. that'd be nice. but, since this feature was one of the first to go into 5.x, my final patch from http://drupal.org/node/18018 basically applied with only tiny modifications.
so, in spite of the fact that this WILL NOT BE SUPPORTED and is probably a VERY BAD IDEA to install and use on a 4.7.x site, here it is. install and use at your own risk. please do not expect me to help any more than this.
enjoy,
-derek
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | block_roles_4.7.x_backport.tar.gz | 27.94 KB | dww |
| #1 | block_roles_4.7.x_backport.patch.txt | 8.89 KB | dww |
Comments
Comment #1
dwwfirst, a patch against the end of DRUPAL-4-7 branch as of right now (2006-12-14).
after you apply the patch, you'll have to run update #300 to add the new {blocks_roles} table to your DB for the rest of this to work. oh, and if you used my hacked version from http://drupal.org/node/49154, there's no upgrade path that saves your existing block/role visibility settings and transfers them into the new table. you'll just have to manually do that yourself.
Comment #2
dwwfor the patch-challenged, a tarball of modules/block.module and all the changes in database/* to add the new table. if you must, untar this into a tmp location, save your old versions of each of the files contained in here, copy these new ones into place, and make sure the only changes are the ones for block visibility stuff.
once you're done, you'll want to run update #300 to add the table (unless you're installing from scratch).