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

ligio - November 12, 2008 - 20:16

I'm waiting for reply and suggestion too... :D

#2

Olav007 - December 22, 2008 - 00:00
Priority:normal» critical

I have been thinking of sponsoring a port.
Would that make sense?
Anybody know how complex the module is?

#3

noahb - January 6, 2009 - 10:51

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.

AttachmentSize
block_assign-6.x.zip 10.16 KB

#4

noahb - January 6, 2009 - 11:00

and here is a patch against 5.x-1-1 branch

AttachmentSize
block_assign-6.x.patch 8.21 KB

#5

siruguri - January 17, 2009 - 02:58

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.

AttachmentSize
block_assign-6.x-1.0.tar_.gz 10.03 KB

#6

majka - January 29, 2009 - 14:30
Category:feature request» bug report

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

siruguri - February 3, 2009 - 18:27
Component:Miscellaneous» Code
Assigned to:Anonymous» siruguri
Status:active» needs review

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.

AttachmentSize
block_assign-6.x-1.0.tar_.gz 9.92 KB

#8

majka - February 5, 2009 - 15:52

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

siruguri - February 23, 2009 - 05:59

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

SiteMaster.Serv... - October 12, 2009 - 19:46

Any progress on updating this module to v1 status, or can the last post here be considered v1 official?

Thanks

 
 

Drupal is a registered trademark of Dries Buytaert.