Hi,
I am creating a cms and I am trying to use phpBB3 but there are some problems when I integrate it to my cms as a module... So... Will I be able to integrate MyBB to my cms?
Here is the link to my cms's forums module.
http://www.winlk.com/cms/modules.php?name=forum
Thank you,
pnm123
Not sure if I'm missing something here but how can we tell you if it can be integrated if you've written it yourself??
We don't know how you've coded it or how easily you've made integration with MyBB...
(2009-04-06, 12:24 PM)MattRogowski Wrote: [ -> ]Not sure if I'm missing something here but how can we tell you if it can be integrated if you've written it yourself?? We don't know how you've coded it or how easily you've made integration with MyBB...
Here is a blank module...
root/m-blank/index.php
<?php
$tpl = file_get_contents('templates/'.$dcs_skin.'/modules.html');
$tpl = preg_match("/%m_content_s%(.*?)%m_content_e%/us",$tpl,$tpl2);
$pattern[0] = '/%m_content_s%/';
$replace[0] = '';
$pattern[1] = '/%m_content_e%/';
$replace[1] = '';
$pattern[2] = '/%m_content%/';
$replace[2] = 'Content goes here...';
$pattern[3] = '/%module_name%/';
$replace[3] = $module['module_name'];
$tpl = preg_replace($pattern,$replace,$tpl2);
print_r($tpl[0]);
?>
I need to print myBB to $replace[2] or do something like that...
Ex:-
$pattern[2] = '/%m_content%/';
$replace[2] = print_mybb();
I did this to phpBB 3 but it ends the script before my cms ends it so right blocks and footer is not loading...