Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 08:57 am EST

Geeklog Forums

Latest Forum Posts


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?
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
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
 Quote

scubasteve

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

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
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
 Quote

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
 Quote

All times are EST. The time is now 08:57 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content