I would like to add a page with my own things on it, so not a forum or memberlist or whatever but something else. The page must only be accessible by moderators.
What do I need to put in this .php to get this working?
Nice! Thanks!
And if I want to change the usergroup which can acces this page to registered AND moderators? What do I do then
(2009-10-24, 02:20 PM)MattRogowski Wrote: [ -> ]http://www.learnmybb.com/forums/Thread-H...-new-pages
Then add...
if($mybb->usergroup['canmodcp'] != 1)
{
error_no_permission();
}
... before the eval line.
Is there a way to make it only admin accessible? Do you just change 'canmodcp' to 'canadmincp'?
Cool, thanks
I changed it to cancp but it gave me an error so I changed it to canusercp and it worked. Thanx!
What was the error...?? If it's can usercp than anyone who can access the User CP will have access to the page, and you said you only want mods to see it...
Yes I know thanks but I changed my mind so I think everyone should be able to visit the page unless you are a guest