Drupal 6
Olav007 - June 4, 2008 - 10:55
| Project: | Block Assign |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | siruguri |
| Status: | needs review |
Description
Any plans for Drupal 6?
Alternatives I can look at?
Thanks

#1
I'm waiting for reply and suggestion too... :D
#2
I have been thinking of sponsoring a port.
Would that make sense?
Anybody know how complex the module is?
#3
here's a 6.x version of this module, attached as a zip.. Unpack, and you're good to go... Tested for basic functionality, but there could be some error.
#4
and here is a patch against 5.x-1-1 branch
#5
I have written a brand new module that retains most of the original code, but simplifies the design a bit. Instead of having a separate page to control the block assign patterns, you can now configure them as part of the block configure form. So when you enable a block, you can set the pattern for node, type and/or URI in the visibility customization at the bottom.
The code inserts the corresponding PHP code into the form -- you don't have to select the PHP input format option yourself.
Currently, if you uninstall the module, the code doesn't remove the PHP code for the visibility input format (or change the radio selection.) Instead, the code itself is written to be simply ignored when the block_assign module isn't around.
If any one uses this, I would be happy to hear about their experiences with this compared to the original module's way of doing things.
#6
siruguri:
I like the idea of using Block Assign that doesn't override the default PHP settings. Unfortunately, had no success with your module - getting the following error trying to invoke block configuration page:
"Fatal error: Call to undefined function dvr() in C:\wamp\www\drupal\sites\tmctest\modules\block_assign\block_assign.module on line 122"
I am using Drupal 6.8.
Any ideas? I would really appreciate some help with this as the block management process is getting to be very tedious and manual.
Thanks!
#7
Sorry about that --- I had this piece of debug code in there, which worked for me because I have the Devel module installed. I've attached a new version with this fixed, plus with the menu hooks removed because in this implementation, there's no menu settings any more for block_assign.
#8
Thanks for the patch but, unfortunately, something is still wrong/misssing - the module would not properly install, when I am opening a block configuration page after adding this module, I get the following errors:
user warning: Table 'tmctest.block_assign' doesn't exist query: SELECT condition_value FROM block_assign where condition_type='uri' in C:\wamp\www\drupal\sites\tmctest\modules\block_assign\block_assign.module on line 90.
user warning: Table 'tmctest.block_assign' doesn't exist query: SELECT condition_value FROM block_assign where condition_type='node' in C:\wamp\www\drupal\sites\tmctest\modules\block_assign\block_assign.module on line 101.
user warning: Table 'tmctest.block_assign' doesn't exist query: SELECT condition_value FROM block_assign where condition_type='type' in C:\wamp\www\drupal\sites\tmctest\modules\block_assign\block_assign.module on line 111.
Again, any help is greatly appreciated.
#9
can you get to your Drupal database and issue the query
describe block_assign
and paste in the results? I think that will work in MySQL, not sure about other databases, but I am going to start with the assumption that you are using MySQL :)
s.
#10
Any progress on updating this module to v1 status, or can the last post here be considered v1 official?
Thanks