Guest Posted June 16, 2003 Posted June 16, 2003 The question is how to integrate phpbb2 into the main body of osc2.2 In another locked thread I found this quote: Joe, i think i know the answer to your question, since i've done it myself as an "OSC/phpBB newbie" i wrapped around phpbb with my own site template instead of the osc one, but the idea's the same. you can do it too if you're familar with HTML. in phpBB, /templates/subSilver/, find the files call overall_header.php and overall_footer.php in osC, open any simple site file (i.e. privacy.php), find use the part before this line in overall_header.php, the part after this line in overall_footer.php, and you're all set! make sure you delete/change the lines that say: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRIVACY); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PRIVACY, '', 'NONSSL')); to your forum title. I have searched like crazy and have come this close to the answer but cannot figure the above quote out. Please clarify this for me.
Guest Posted June 16, 2003 Posted June 16, 2003 If this is what you are trying to do http://www.jewelrysupplyhouse.com/catalog/phpbb.php PM me and I will post the file
eredman Posted June 16, 2003 Posted June 16, 2003 If this is what you are trying to do http://www.jewelrysupplyhouse.com/catalog/phpbb.phpPM me and I will post the file I would like to know how also, plus does your board run off of just one database for both phpbb and oscommerce? Thanks, Ed Redmon http://thecommunity.ws
emiliano Posted June 16, 2003 Posted June 16, 2003 there 2 databases there and iframes are being used.. that's not what i call integration... patagonia, argentina
loxly Posted June 16, 2003 Posted June 16, 2003 iframes are evil, no one except IE can see them...... [no external urls in signatures please, kthanks]
Guest Posted June 16, 2003 Posted June 16, 2003 there 2 databases there and iframes are being used.. that's not what i call integration... There is only 1 database for both. - they are not sharing login information as I have not had the time to restructure the way phpBB stores the info but it is sharing the database. I plan to pull the login info to be dual eventually. The site can be viewed in netscape and in IE. Here is my sample phpbb file from the catalog. Let me know of any errors as my tabling is off <?php /* $Id: phpbb.php,v 1.1.1.1 2002/11/28 23:21:32 wilt Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); //require(DIR_WS_LANGUAGES . 'english.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FORUMS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FORUMS, '', 'NONSSL')); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <?php // BOF: WebMakers.com Changed: Header Tag Controller v1.0 // Replaced by header_tags.php if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <title><?php echo TITLE ?></title> <?php } // EOF: WebMakers.com Changed: Header Tag Controller v1.0 ?> <base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="<? echo THEMA_STYLE;?>"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_CLASSES . 'thema/' . SITE_THEMA . '/thema_header.php'); ?> <!-- header_eof //--> <!-- body //--> <center> <table border="0" width="<?php echo SITE_WIDTH; ?>" cellspacing="0" cellpadding="2" class="centerTable"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top" class="leftColumn"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_CLASSES . 'thema/' . SITE_THEMA . '/thema_column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <td width="100%" valign="top" class="centerTable"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <!--**************************--> <tr> <td> <?PHP $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => ' Jewelry Supply House Online Community' ); new infoBoxHeading($info_box_contents, true, true); ?> <table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td align="left" width="<?php echo SIDE_BOX_LEFT_WIDTH; ?>" background="includes/classes/thema/<?php echo SITE_THEMA; ?>/infobox/box_bg_l.gif"> <?php echo tep_image(DIR_WS_CLASSES . 'thema/' . SITE_THEMA . '/infobox/box_bg_l.gif', 'box_bg_l.gif.'); ?> </td> <td> <table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td class="main"> <table border="0" cellspacing="0" cellpadding="2" align="right" width="100%" style="border-collapse: collapse" bordercolor="#111111"> <!--**************************--> <tr> <td> <iframe src="phpBB/phpBB2/index.php" name="BB" frameborder="0" id="BB"style="possition:absolute; border: 0px; left:2px; top:0px; width:100%; height:1000px"></iframe> </td> </tr> <!--**************************--> </table> </td> </tr> </table> </td> <td align="right" width="<?php echo SIDE_BOX_RIGHT_WIDTH; ?>" background="includes/classes/thema/<?php echo SITE_THEMA; ?>/infobox/box_bg_r.gif"> <?php echo tep_image(DIR_WS_CLASSES . 'thema/' . SITE_THEMA . '/infobox/box_bg_r.gif', 'box_bg_r.gif.'); ?> </td> </tr> </table> <?PHP $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => ' ' ); new infoBoxDefault($info_box_contents, true, true); ?> <!--**************************--></td> </tr> </table></td> <<!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top" class="rightColumn"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_CLASSES . 'thema/' . SITE_THEMA . '/thema_column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_CLASSES . 'thema/' . SITE_THEMA . '/thema_footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
Guest Posted June 17, 2003 Posted June 17, 2003 Thanks so much for your help. Now I'm so close to success I can taste it! I made a file of the same name, changed the link to point to it , and put in your code but I get this message when I click the link: Warning: main(includes/languages/english/FILENAME_FORUMS) [function.main]: failed to create stream: No such file or directory in /home/producti/public_html/catalog/phpbb.php on line 16 Fatal error: main() [function.main]: Failed opening required 'includes/languages/english/FILENAME_FORUMS' (include_path='.:/usr/local/lib/php') in /home/producti/public_html/catalog/phpbb.php on line 16 Also I see a reference to "thema". Is that a themes contribution? I do not have any. Will that affect it?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.