Status: offline

scubasteve

Forum User
Junior
Registered: 11/19/04
Posts: 24
I want to have the Latest Forum Posts center block only viewable by logged in memebers. How can I do this?

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Just set the permissions on the block itself - in the block editor.
Disable read access by anonymous users.
Geeklog components by PortalParts -- www.portalparts.com

scubasteve

Anonymous
I have already done that but it is still showing up.

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Oh the centerblock .. nope no way to do that as it is now.

You will have to add a few lines to the function in the the plugins functions.inc file.
Geeklog components by PortalParts -- www.portalparts.com

Status: offline

bcbrock

Forum User
Chatty
Registered: 02/04/03
Posts: 64
caffeinated
Don't know if there is a *better* way to do it, but I was able to accomplish this by adding:

Text Formatted Code
IF ($_USER['uid'] > 1)
 


just above the line

Text Formatted Code
// Retrieve Centerblock Settings
 


in the function plugin_centerblock_forum inside the /geeklog/plugins/forum/functions.inc file.
~Brian