Topic: Make a forum just for admins?

I'm wondering if it's possible to make a forum for admins only by just changing "admmod_only" from 1 to 2 in the database? Isn?t it right that punbb checks admmod_only >= cur_user["status"] (ot something similar)? Or do I have to change the php code as well?

Re: Make a forum just for admins?

Anyone? Shouldn't be too hard to answer... Ask if you don't understand my question!

3

Re: Make a forum just for admins?

you can do that.
Create a forum. You've got an option moderator/admin only
That's all

Ludo
wink

4

Re: Make a forum just for admins?

Ludo wrote:

you can do that.
Create a forum. You've got an option moderator/admin only
That's all

Ludo
wink

I think he wants Admin only not Admin+Mod only.

Don't worry, I'm sure a coding Guru will drift by sometime soon.

Re: Make a forum just for admins?

Madoor: Try it? :)

"Programming is like sex: one mistake and you have to support it for the rest of your life."

6 (edited by Madoor 2004-10-04 19:19)

Re: Make a forum just for admins?

hehe, of course I could, but I didn't want to do it if it wasn't safe...

EDIT: it didn't work.

Re: Make a forum just for admins?

viewforum.php/viewtopic.php (same in both)

FIND

if ($admmod_only == '1' && $cur_user['status'] < PUN_MOD)
    message($lang_common['Bad request']);

AFTER, ADD

if ($admmod_only == '2' && $cur_user['status'] != PUN_ADMIN)
    message($lang_common['Bad request']);


post.php

FIND
            if (($admmod_only == '1' && $cur_user['status'] < PUN_MOD) || ($closed == '1' || $forum_closed == '1'))
                message($lang_common['No permission']);

AFTER, ADD

if ($admmod_only == '2' && $cur_user['status'] != PUN_ADMIN)
    message($lang_common['Bad request']);

Then, if you manually set the value to 2, it should work (I think mods might be able to see it via searches)

Re: Make a forum just for admins?

yeah, I came up with a similar code before, but the realised that I have to mod all my pages to make it safe! For example I don't want mods to be able to delete admin posts, read them, edit them, report them etc. A lot of coding!