Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Permissons Code, where to put it?
Author Message
NeoFusion720
Junior Member


Posts: 16
Joined: May 2010
Reputation: 0
Post: #1
[SOLVED] Permissons Code, where to put it?
I've created a custom page , where do I add the php code that sets the permissions?

I got the code so no need for anyone to write it here.

My page's code is

PHP Code:
<?php

define
('IN_MYBB'1); 
require 
"./global.php"

add_breadcrumb("Elite Section""elite.php");

eval(
"\$elite = \"".$templates->get("elite")."\";"); 
output_page($elite); 
?>

And then I got a template for it.
Now where in that code do I put the other code?
06-30-2010, 04:46 AM
Andraž Rihtar
Theme designer


Posts: 1,898
Joined: Aug 2009
Reputation: 9
Post: #2
RE: Permissons Code, where to put it?
If the page is fully php, then you can put it there somewhere (don't ask me where on the page ). If you're using page manager you need to make sure to select "No" for the "Use MyBB Template?" to be able to use PHP on that page. If you're using Custom Pages, there is no way to use PHP there (to my knowledge)

Andraž Rihtar - Ex-Support Team Member
06-30-2010, 09:17 PM
NeoFusion720
Junior Member


Posts: 16
Joined: May 2010
Reputation: 0
Post: #3
RE: Permissons Code, where to put it?
I solved it, put it after /global.php";
07-01-2010, 06:57 AM
Andraž Rihtar
Theme designer


Posts: 1,898
Joined: Aug 2009
Reputation: 9
Post: #4
RE: Permissons Code, where to put it?
Great to hear that

/solved

Andraž Rihtar - Ex-Support Team Member
07-01-2010, 09:10 PM




User(s) browsing this thread: 2 Guest(s)