MyBB Community Forums

Full Version: MyBB Elements in CMS Skin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Folks,

Hopefully this is within the correct section, I apologize if not and would ask kindly for it to be moved by one of the MyBB Staff.

I would like to insert my MyBB themes header_welcomeblock_guest and header_welcomeblock_member into my sites theme (CMS Theme). Would someone be able to walk me through the process on how it's best to achieve this?

Both themes are different due to the integration but they are almost identical.

I'm hoping someone might be able to shed some light onto this.

Thanks in advance.
Make sure in your CMS PHP file you put the following in:
define("IN_MYBB", 1);
require_once "pathtomybb/global.php";

You then have access to the variable called $header, $footer, $headerinclude.
I'm afraid I don't really understand the process, though I do appreciate your help. I followed a tutorial posted in this section and wasn't able to make it work, though I do know that there are sites out there which have made this type of thing work within the sites (especially wordpress).

Does anyone happen to know a good method, I assume the above code wouldn't work alone.

I'm not all that techy with coding.