wordpress mybb wrapper?

Sander k

New member
Do you use somekind of wrapper from wordpress to add the header and footer to mybb? Or how did you do that?
 

PeaceSigns

New member
Why would you pull it in via CURL? If they're hosted on the same environment, you can include the file - saves on processing power and resources (I think CURL uses more than a regular include).
 

admin

Administrator
Staff member
It`s also being used on the gi9.co domain, server status script, which is powered by smarty templateing, it was quicker and easier to use cURL.
 

Sander k

New member
I have no knowledge of Curl :-(
Is that easy to do for you?
How much would you ask if I wanted you to do the same for me?
 

PeaceSigns

New member
Curl is really simple - here's an example from php.net - http://www.php.net/manual/en/curl.examples-basic.php

You basically throw it a URL and it'll pull it and spit out the contents for you. You can of course parse it as needed. If you're trying to reference a file on the same machine/hosting account - just use the include (e.g., include("../directory/somefileonsite.php"), otherwise you can use CURL to pull in the html contents (meaning if you're calling a PHP file - you'll get the contents that it spits out, not the actual php code).
 

PeaceSigns

New member
Of course, it's basically just placing a header above the actual script itself.

Essentially something like this:
Code:
<?php
include("master-header.php");
?>

If you wanted to do it across a forum, you could do this:
Code:
<?php
include("http://www.mysite.com/master-header.php");
?>
Although I don't recommend that for the reasons I mentioned above.