MyBB Community Forums

Full Version: Call Welcome Block Outside of Forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm working on this:
http://mybbaddict.com/home.php

But I have a problem, how can I call the {$welcomeblock} so it displays, and how do I display the forum navigation on an external page?

Thanks!
responses here might help ...
Thank you, it did help! It is working now, as you can see. For those reading, I did this:

1. Created a php file called cms.php with these contents and uploaded it to my forum root:
<?php
define("IN_MYBB", 1);
require_once "./global.php";
echo $headerinclude;
echo '<div id="panel">';
echo $welcomeblock;
echo '</div>';

?>

2. Then I inserted this code where I wanted to display my welcome block/panel.

<?php include("cms.php"); ?>

Thank you ranjani!
Doesn't work... although I want it to work.. need help getting it working.

So in a wordpress page file I set:

				<?php $root = $_SERVER['DOCUMENT_ROOT'];
				include($root."/Forum/cms.php"); ?>

Because it was looking for the file cms.php in the theme folder not /Forum/cms.php

So then when i got that sorted it was looking for the global.php.. i tried to set the global.php same wahy but still kept insisting not found...

I have root/wp-contents/ for wordpress and the forum is under root/Forum/
so the two are in diferent folders its not working help Smile