I couldn't find an issue/task dealing about this issue so I start one. Is anyone already working or planning to work on this?

Comments

jax’s picture

Status: Active » Needs review
StatusFileSize
new927 bytes

It looks like there needs to be only 1 update but I could be wrong. It seems to be working though. I've renamed module_exist to module_exists and added the info file.

jax’s picture

Anyone available to review this?

spjsche’s picture

I have implemented the patch in my beautiful newly installed Drupal 5.0 test site, and when I choose to implement a new menu item to only be shown to the subscribed groups, I get a white blank site, and I am unable to recover.

Is there any attribute I can change on the database to retrieve my site without having to rebuild it.

Thanks
Stephen

jax’s picture

Well, you should just restore the backup you took right before you enabled the module. But if you didn't back up this should work as well:


update system set status = 0 where filename = 'modules/og_block_visibility/og_block_visibility.module';

It's strange that you have this problem since I have the module up and running for a couple of weeks under drupal 5.0 without a problem.

spjsche’s picture

Thanks Jax,

You are quite correct, I should do a backup before I test a new module, but I ws so keen to try this one that I forgot.
I did try disabling the module on the database, but that did not make a difference, so I rebuild it again. (it was empty anyway)

But thanks for the response, much appreciated.
I will have to wait a bit longer, and like they say patience is a virtue.

Stephen

Anonymous’s picture

I haven't tried the patch but the module works fine once the method module_exist is replaced with module_exists and a .info file has been generated.

Regards Paul

jax’s picture

That's exactly what the patch does but the project seems to have been abandoned. If I find the time I'll try to get CVS access to commit this patch and release a 1.0 version of this module for 5.0. Because if no one does you're stuck maintaining it outside drupal.

spjsche’s picture

That is wonderful news.

Thanks for your time.

frjo’s picture

StatusFileSize
new2.01 KB

Thanks for the patch in #1 Jax. I tried it and it works well for me on a new site.

When I tried to update a site from 4.7.x to 5.1 I ran in to a problem that is fixed in my updated version of the patch.

I added a og_block_visibility_update_2() function to og_block_visibility.install that replace module_exist() with module_exists() in the blocks table.

I also added dependencies and version to the info file.

ray007’s picture

subscribing

haimoura’s picture

subscribing

gracearoha’s picture

Is anything new happening on this patch?

frjo’s picture

StatusFileSize
new1.99 KB

It's still works well for me. A new version of the patch without "version" in the info file (updated module developer guidelines).

csc4’s picture

I've installed og_block_visibility_drupal5_2.patch in a new 5 installation and confirm the patch works excellently for me.

Darkswan’s picture

After applying the patch OG Groups shows up in Modules. When I activate the module I get a blank screen. when I click back in the browser I then see the following error.

warning: require_once(./modules/og/og_block_visibility/og_block_visibility.install) [function.require-once]: failed to open stream: Permission denied in C:\www\Apache\htdocs\includes\install.inc on line 726.

I am using apache 2.2 on windows 2003sp2. and gave users full permissions access in \includes and \modules with no luck...

any ideas?

Firewolf’s picture

I applied the patch and the module shows up. I can even change the settings for it, but the module is just not working.
I tried with a menu block and with the "who's online" block. I created 2 og's and some users on a test site. The blocks are not showing up.

I am using Drupal 5.2 and OG 5.x-3.1.

Anybody gor more luck? Or am I missing some specific settings not mentioned in the readme file?

I want to create group-specific navigation menu's. Perhaps there is another module or another way of working which I can use?

Regards

gengel’s picture

Trouble patching?

From sites/default/modules, after unpacking og_block_visibility-4.7.x-1.x-dev.tar.gz:

$ patch -p0 --dry-run patching file og_block_visibility/og_block_visibility.info
patch: **** malformed patch at line 12: Index: og_block_visibility/og_block_visibility.install

I checked the patch file, and it seems fine to me. Should I patching a different version of the module?

gengel’s picture

Sorry, here's the full transcript (forgot my &lt)

$ patch -p0 --dry-run <og_block_visibility_drupal5_2.patch
patching file og_block_visibility/og_block_visibility.info
patch: **** malformed patch at line 12: Index: og_block_visibility/og_block_visibility.install

Should I be patching a different version of the module?

AmirTheSeventh’s picture

Sorry, this is not connected to this issue but as this module is not maintained, I think this the best place to ask my question:

I need to make a block generated by "views" only visible on nodes with Audience (not public posts); so it can generate a menu for every OG automatically and don't want this menu (block) show up on other pages (e.g. home page, any node without audience).

Please note that I do not want to select a specific OG for the block to be visible but I want the block to be visible on all groups on the site

can it be done with this module? Any other way to get it done?

jax’s picture

Status: Needs review » Closed (fixed)

It seems there is a 5.x version of this module. Closing the issue.

AmirTheSeventh’s picture

Status: Closed (fixed) » Fixed

as far as i know we must change the status to fix and it will be closed automatically within 2 weeks

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

spjsche’s picture

Excellent, thanks.