Welcome to Geeklog, Anonymous Thursday, July 10 2025 @ 03:52 am EDT

Geeklog Forums

Editing Centerblock


Could anyone offer me some guidence on editing the centerblock in forum 2.3. I have many users that would like to not see the new posts.. And some that do...
I guess my question is where whould I start on making that option of centerblock on a user by user basis. Or would that cause some problems? Thank you for any help.
 Quote

i THINK you can create a new group...and only add the ppl that wanna see it. THen, edit the block's permissions and only choose 'group' for 'read' permissions.
 Quote

Status: offline
Forum User
Junior
Registered: 06/07/04
Posts: 23
That would be a good option to add to the user options and then the user can decide to view it or not

Suggestion for the next release Blaine

or update

Hangfire

 Quote

Status: offline
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Zixent:

Basically you would need to modify code - specifically the centerblock function that is in the plugins/forum/functions.inc file.

You will need to add a check for membership in a group around the logic that executes. As an example - not real code but close
Text Formatted Code

if(SEC_inGROUP('most_users')) {
   .. exectute all this code below and return
}
 
Just create a group and add members OR -- create a group of few users that don't want to see if and change the test to be: if (!SEC_inGROUP('snotty_users')) {

That will do it
 Quote

Thanks one more thing.... I also want to have centerblock show only one set of post updates.. Like general/general news... been trying to figure out good way to do it..
 Quote

All times are EDT. The time is now 03:52 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