MyBB Ideas
The MyBB Ideas site allows users to suggest new features and changes in MyBB and the MyBB Group to easily review them to decide what direction MyBB should head in. Search existing ideas.
/forum Directory - Site Integration
|
11 votes
|
If you have your website, and you want to integrate it with your forums, (such as putting a login form, or a welcome message that says "Welcome, *username*!") it is impossible to do so if your website is inside a DIFFERENT directory such as /forums I think it's ridiculous that you cannot integrate the forums with your website, if my website is inside the same directory of the forums, then it gets all messy, because the directory with the forums is already crowded with hundreds of files, therefore I personally think that MyBB should be able to have off-directory site integration. This would be a huge step forward, I don't understand how such a basic feature would be blocked by such a small step by a mere /forums directory. I seriously suggest this.
|
7 Comments
-
DrPoodle, 28th February 2007, 7:33:36 AM
It shouldn't be impossible...what code you using?
-
MrDoom, 28th February 2007, 8:56:56 AM
You can already do this, LOL.
-
Chris Boulton, 28th February 2007, 11:41:09 AM
Already possible in MyBB - look at the level of integration several other people have and even what we have here.
If you need help, please post in the MyBB Comminity Forums.
-
DARRKCLOUD, 28th February 2007, 2:51:17 PM
This is allready posible by using
<?php
define("IN_MYBB", 1);
define("NO_ONLINE", 1);include('your_forum_directory/global.php');
and then the rest of the code. That way you can then access all of the standard MyBB Vars for example $mybb, $db, and $language.
-
Warptweet, 1st March 2007, 11:14:16 PM
I'll try.
THANK YOU SO SO MUCH FOR AT LEAST TRYING!
I REALLY APPRECIATE IT!But before, I only used...
<?php
define("IN_MYBB", 1);
include('forums/global.php');
?>And it didn't work.
Hopefully, this "NO_ONLINE" thing will work.
-
Warptweet, 1st March 2007, 11:20:43 PM
Unfortunately, when I try connecting to my forum in another directory, I receive this SAME error...
Warning: main(./inc/init.php) [function.main]: failed to open stream: No such file or directory in /home/warp/public_html/warp/global.php on line 13
Fatal error: main() [function.require]: Failed opening required './inc/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/warp/public_html/warp/global.php on line 13
So, I therefore continue my suggestion.
...Unless somebody knows the way around this? -
DennisTT, 11th March 2007, 10:44:39 PM
You should have
<?php
define("IN_MYBB", 1);
define("NO_ONLINE", 1);chdir('your_forum_directory/');
include('global.php');
// ...
?>Back on topic: A new SDK wouldn't be too bad though
Post a Comment
Before you can post a comment you must be a registered member of the MyBB Community Forums.
If you already have an account, log-in to it to post a comment or if you don't register a new account.