Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 7 Years, 5 Months, 2 Weeks ago Call Welcome Block Outside of Forum
#1
Solved: 7 Years, 5 Months, 2 Weeks ago
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!
#2
Solved: 7 Years, 5 Months, 2 Weeks ago
responses here might help ...
#3
Solved: 7 Years, 5 Months, 2 Weeks ago
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!
#4
Solved: 7 Years, 5 Months, 2 Weeks ago
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
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)