Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Need to block SuperAdmins to forum.

Asked Modified Viewed 2,996 times
C
clancommunitys
C
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Is there anyway to block superadmins to see a forum Thred?
0 replies

10 posts

M
MrSimple
M
Make it work... keep it simple...
  • Senior Member, joined since
  • Contributed 324 posts on the community forums.
  • Started 7 threads in the forums
answered
Senior Member

Superadmins are the top-level users I think. So if they can't see it, nobody can.
Can't you change the superadmins you want to block back to admins and block them?
0 replies
X
Xessive
X
I am not always right, but I'm never wrong.
http://www.xessive.nl
  • Senior Member, joined since
  • Contributed 327 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

Why would you block a SuperAdmin from seeing certain forum threads anyway..??
Anyway, do a check to see if the user = iSUPERADMIN
Edited by Xessive on 06-08-2008 01:44,
0 replies
K
KEFF
K
KEFF 10
Member of Executive Committee. No sites running.
  • Veteran Member, joined since
  • Contributed 797 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

Agree, why even bother to have Super Admins if you are going to block certain content? Better to degrade them to regular users or admins if that's the case.
0 replies
M
mojkan
M
mojkan 10
  • Member, joined since
  • Contributed 129 posts on the community forums.
  • Started 32 threads in the forums
answered
Member

Well, maybe he wants to have forums that contain test stuff, and panels that he tests, looks bad if the test part is visible. Would be nice to be able to create a group where members in that group could see the content, no body else.

Not even a super administrator wants to see a panel filled with errors ;)

It's not always a question about trust etc, sometimes it doesn't go that deep :)

I don't think my theory is the situatione with the creator of this thread, but for me it's the above...
Edited by mojkan on 06-08-2008 13:50,
0 replies
C
clancommunitys
C
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

The problem is that we have www.klanremix.se and let other CZ clans to have their own forum. i just want to eliminate the risk that a superadmin can read their forums.

Mjokan have a god point (= that would be grate if i can let som superadmins to develop pages and functions...

I have today removed almost all superadmins to regular admins and set all options, eaven me (=

It would been easier if i could deny superadmins som forum rights with the no1 acc...
0 replies
M
mojkan
M
mojkan 10
  • Member, joined since
  • Contributed 129 posts on the community forums.
  • Started 32 threads in the forums
answered
Member

Quote

TammyK wrote:
@mojkan: You shouldn't be testing on a live site. Set up a test site for that situation.


Well, I guess that's my choice ;) I test minor things, such as putting an extra link in a panel, removing stuff. That was only a thought of mine :) My superadmins do a terrific job, and I need to have them as superadmins. Along with your argument, here comes mine. Shouldn't I as the owner and superadmin of my website, also be able to control it in the way I please?

Pay attention to that this was possible up until version 6.01.12, 13 or 14. I know it changed at least in version 6.01.15 of php-fusion, so the idea cannot be that dumb...

FYI, I have a test site as well, but with minor changes I do it live! A minor mistake will look pretty awful for the viewer as well.

I do realise that this isn't provided in php-fusion, fine, but my wishes and desires remains.

The easiest way of helping this guy is by telling him that he could use an if statement, not telling him that his wish is nothing you agree with; no matter how stupid you may feel that the feature might be :)

@clancommunitys - You can make superadmin not being able to see the content of a forum where you want a certain group (invisible group) where you add members, to only see it. You assign this group to a forum! OBS - this is php-fusion version 6, haven't tried it on version 7.

In maincore.php find:

// Check if user is assigned to the specified user group
function checkgroup($group) {
if (iSUPERADMIN) { return true; }
elseif (iADMIN && ($group == "0" || $group == "101" || $group == "102")) { return true; }
elseif (iMEMBER && ($group == "0" || $group == "101")) { return true; }
elseif (iGUEST && $group == "0") { return true; }
elseif (iMEMBER && in_array($group, explode(".", iUSER_GROUPS))) {
return true;
} else {
return false;
}
}


Replace with:

// Check if user is assigned to the specified user group
function checkgroup($group) {
if (iSUPERADMIN && $group == "1") { return false; }
elseif (iSUPERADMIN) { return true; }
elseif (iADMIN && ($group == "0" || $group == "101" || $group == "102")) { return true; }
elseif (iMEMBER && ($group == "0" || $group == "101")) { return true; }
elseif (iGUEST && $group == "0") { return true; }
elseif (iMEMBER && in_array($group, explode(".", iUSER_GROUPS))) {
return true;
} else {
return false;
}
}


The number 1 in: f (iSUPERADMIN && $group == "1") { return false; } is the number of the "invisible" group.

EDIT:
I was wrong, this made nobody able to see the content in a forum assigned to the "invisible" group. I guess it could be modified in order for members of that group to only see the content.

That is a splendid reason to why that would be good. There are millions of teams/squads competing in various computer games. Lots of the remain on communities where each team/squad have their own page. Let's say the superadmin, owner of the site plays in a team, it's kind of lousy if he was able checking other teams tactics etc by being able to view every thread in the various teams own forums.

Let's say a school uses php-fusion to build their webpage. The mathematics will have their own forums with a content that the history teachers aren't interested in or shouldn't be allowed to view...well, you get my point?
Edited by mojkan on 06-08-2008 15:08,
0 replies
K
KEFF
K
KEFF 10
Member of Executive Committee. No sites running.
  • Veteran Member, joined since
  • Contributed 797 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

Quote

@mojkan: You shouldn't be testing on a live site. Set up a test site for that situation.


Stubborn fella, that's the reasons why we have groups and group rights, if the math teacher shouldn't be allowed to see what the geography teacher has, put them in separate groups with different rights.

Supers are there for a reason, mind you.
0 replies
M
mojkan
M
mojkan 10
  • Member, joined since
  • Contributed 129 posts on the community forums.
  • Started 32 threads in the forums
answered
Member

Quote

KEFF wrote:

Quote

@mojkan: You shouldn't be testing on a live site. Set up a test site for that situation.


Stubborn fella, that's the reasons why we have groups and group rights, if the math teacher shouldn't be allowed to see what the geography teacher has, put them in separate groups with different rights.

Supers are there for a reason, mind you.


Hehe, so when the math teacher happens to be the superadmin and the geography department is planning his surprise party, everything goes down the drain :D
Edited by mojkan on 06-08-2008 18:47,
0 replies
X
Xessive
X
I am not always right, but I'm never wrong.
http://www.xessive.nl
  • Senior Member, joined since
  • Contributed 327 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

The I guess some accounts have to be downgraded to admin level. Then you have the almight Superadmin if all hell breaks loose. I guess admin rights have enough possibilities for this project that clancommunitys want's to set up.
especially with V7 and it's improved way to give and take away certain rights.
0 replies
W
Wanabo
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
answered
Senior Member

As far as I know the difference between Superadmin and admin is that a Superadmin can edit post everywhere and a admin can't unless he/she is added as a moderator.
0 replies

Category Forum

User Administration - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 10 posts
  • Votes 0 votes
  • Topic users 6 members

6 participants

K
K
KEFF 10
Member of Executive Committee. No sites running.
  • Veteran Member, joined since
  • Contributed 797 posts on the community forums.
  • Started 32 threads in the forums
W
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
X
X
I am not always right, but I'm never wrong.
http://www.xessive.nl
  • Senior Member, joined since
  • Contributed 327 posts on the community forums.
  • Started 4 threads in the forums
M
M
Make it work... keep it simple...
  • Senior Member, joined since
  • Contributed 324 posts on the community forums.
  • Started 7 threads in the forums
M
M
mojkan 10
  • Member, joined since
  • Contributed 129 posts on the community forums.
  • Started 32 threads in the forums
C
C
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet