Current time: 03-12-2010, 03:47 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 11 Votes - 4.64 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Include your custom pages in Mybb
05-02-2007, 08:07 PM
Post: #61
RE: Include your custom pages in Mybb
Can this be used outside the forum directory? I mean, my forum is in .com/forum/ directory, and I would like to create a page on the .com/ directory as a homepage. Something kinda like the portal page but outside the forum, unlike the portal which has to be redirected.

[Image: attachment.php?aid=6086]
Visit this user's website Find all posts by this user
Quote this message in a reply
06-14-2007, 09:26 AM
Post: #62
RE: Include your custom pages in Mybb
Ive had a look through this thread and there are that many different versions of code where things havnt worked an changes being made it makes it quite hard to work out which code you should actualy be using, would it be possible for someone to post a new upto date version of this tutorial with the correct code and what needs to be done in the acp?

Sorry but im not a coder and i like everything to be as simple as possible and im sure there are others who re the same, i dont mind aking the odd change but anything more and i start to get confused
Find all posts by this user
Quote this message in a reply
06-14-2007, 10:49 AM
Post: #63
RE: Include your custom pages in Mybb
I guess that the first post of this thread is up to date. Smile

[Image: destroyerjf8.jpg]

Give us your feedback about MyBB in this thread and become listed on the MyBB website.
Visit this user's website Find all posts by this user
Quote this message in a reply
06-21-2007, 05:41 PM
Post: #64
RE: Include your custom pages in Mybb
how can I restrict the new page so only registered member can view the page?

thanks for helping

Creativity is a drug I cannot live without.

Visit this user's website Find all posts by this user
Quote this message in a reply
06-21-2007, 05:50 PM (This post was last modified: 06-21-2007 05:50 PM by xiao.)
Post: #65
RE: Include your custom pages in Mybb
dvb Wrote:how can I restrict the new page so only registered member can view the page?

thanks for helping

add this at the top of your page:
PHP Code:
<?php

define
("IN_MYBB"1);
require_once 
"./global.php";


// CHECK IF USER IS LOGGED IN
if($mybb->user['uid'] == 0)
{
    
error_no_permission();
}

// DO YOUR STUFF ...

?>

[Image: gfxsig0em.jpg]
Please visit GFX-Depot | My theme | Google Battle
----------------- Vote for MyBB
-----------------
Find all posts by this user
Quote this message in a reply
07-16-2007, 11:29 PM
Post: #66
RE: Include your custom pages in Mybb
How do I add Permission to a page like this so only Mods and Super mods can view it?? CAN ANY BODY TELL ASAP ??
Find all posts by this user
Quote this message in a reply
07-18-2007, 06:45 PM (This post was last modified: 07-18-2007 09:43 PM by cotru.)
Post: #67
RE: Include your custom pages in Mybb
The good news is, I have this working. The only problem is that it is not taking on any CSS styles of the template I am using even with Global-All Template Sets selected. I am mainly talking about border color which should be a purple color and it comes up white. The table header text also is white and it should be an orange color. I am wondering if I need to copy the global file into the default theme (Add Template, like I did with the global) so it uses its CSS style? If I do this do I need to change the php file I first created to look in the default theme and not in the global. Maybe there is a much simpler way of doing it?
Thanks for the tutorial.

Update: I have found a solution to this that will work for me but probably wouldn't work for most boards because it will effect all themes since it is global.

Take Care
Find all posts by this user
Quote this message in a reply
07-19-2007, 10:40 PM
Post: #68
RE: Include your custom pages in Mybb
Is there a way to make this work like /page.php instead of /forum/page.php. I tried and it didn't work.

[Image: adbanner.png]
Find all posts by this user
Quote this message in a reply
08-30-2007, 06:18 AM
Post: #69
RE: Include your custom pages in Mybb
Well I was searching, is there any way to use "php" scripts in the custom pages?

MapleHub Recreation!
http://maplehub.ahplace.com
Find all posts by this user
Quote this message in a reply
08-30-2007, 06:22 AM
Post: #70
RE: Include your custom pages in Mybb
xScopex, you can't make the pages outside the forum folder.

MapleHub Recreation!
http://maplehub.ahplace.com
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: