SimplePortal
Customization => Blocks and Modifications => Block Requests => Topic started by: noelleon69 on May 28, 2009, 03:08:47 PM
-
Currently the forum staff block only shows the admins and moderators.
I would like to have a block customised to show additional member groups. In my case I want a block to show the admins as well as the committee members so members know who are the people involved in my club.
How can I do this? Could anyone tell me the code and which type of custom block to use (bbc, php or html?)?
-
Hmmm..
Open SPortal.php
Find:
$all_staff = array_unique($all_staff);
Replace with;
$all_staff = array_unique($all_staff);
foreach (array(#, #, #, #) as $new_group)
$all_staff[] = $new_group;
And replace each # with a new group ID.
-
You meant SPortal1-1.php in the sources folder right?
It gives me this error after doing the edit:
Parse error: syntax error, unexpected ';', expecting ')' in .../forum/Sources/SPortal1-1.php
-
Could you attach the file please?
-
Here is the file...
-
Try this out.
Make sure to define each group into the array on line 2431.
-
It is calling the member ID instead of the group ID. For example if I enter 9, instead of listing all members in member group #9, it only shows a single member whose member ID is 9.
-
Solved... found this that does what I wanted :)
http://simpleportal.net/index.php?topic=2477.msg16358#msg16358
-
Well, if you ever want to add single members, use the code I gave. xD
-
Yes that code would be perfect for that requirement :)