I coded a program in PHP and now what to put it on MyBB. I have tried using Pagemanager works great but sny that has the link to the php file can view it; so what IM trying to do is put the php on my website and make it only accessible specifics user groups on view it like permeations on a normal thread.
Any help would be Appreciated
Do you meant to deny selective usergroups to see that code ?? if yes then here is how;
$group = array(1,5,7);
$groups = explode(",",$group);
if (!in_array($mybb->user['usergroup'],$groups))
{
// Run the code here. Those usergroups will NOT see this code.
}
Just change 1,5,7 to the Usergroup IDs you wish to deny their access
Were do you find the user $group = array(1,5,7); numbers because next to my user groups there no number.
Whats the number for guests?
Got code right but those user can still see the page?
Nothing has worked!
Trying to add php code to mybb and don't want it to be public only wan't specific user groups to be able to view the page with the PHP script. I'm currently using Page Manger.
what should I be using and how?
Ii know i'm doing it correctly but it does not work. Does any else have a way to do this?
The Plugin i'm using right now to code is PHP and Template Conditionals.