Permissions for random block.

Imoq
Imoq's picture

Joined: 2004-09-08
Posts: 25
Posted: Thu, 2004-10-21 23:42

PostNuke 0.750
gallery v1.4.4-sr1

I don't find any way to tell the random block to only appear when a user is logged in. I don't want it to appear to guest/anonymous users but just to registered users.

Do you think this could be possible? Probably hacking some part of the code?

I already tried to achieve this with PostNuke's permissions system but it doesn't work :(

BTW, random block is great, thanks for providing it ;)

 
MantaRay

Joined: 2004-10-22
Posts: 1
Posted: Fri, 2004-10-22 21:07

To achieve this for PN0750 implement the following:

Add before the last line (Unregistered .* .* Read)

Unregistered PHPBlock:: name_of_your_random_block:: None

That should do the trick if your using the Gallery block-random.php

Take care and enjoy