brianstorm Posted July 27, 2004 Share Posted July 27, 2004 Hi, I've just installed the phpBB2 contribution on MS2 with a BTS (Basic Template System) mod also installed, and at the second (and much more careful) install I have a partially working install. 1) When I click on the Forum link (in the information box) I get a blank error page which says 'Sorry file does't exist.' The URL looks wrong to me which I suspect may be a php setting as the & signs appear as html eg: http://www.mydomain.co.uk/modules.php/op/m...;file/index.php The rest of the shop stillworks correctly. And I can get into the forum through the admin address. It is hosted on an Apache webserver If anyone can help it would be greatly apprecciated. Cheers Andy For anyone else with the same question, a solution which works is to turn off "Use Seach-Engine Safe URLS" in admin for the File not Found messaage. If you want to correct the spelling I believe that you'll find it at the end of modules.php There are a few different threads on this topic, some of which relate to Liangs phpBB mod 2.0.6, and other which relate to chaviero s phpBB 2.0.8 mod.... I found this thread had solutions to most of the problems I encountred http://www.oscommerce.com/forums/index.php?sho...ic=62964&st=100 Thanks to Gamerigs for the reply. I'm hoping that I've cracked it now but I may be in touch... Quote with ten thousand dollars we'll all be millionaires Link to comment Share on other sites More sharing options...
leo mak Posted October 8, 2004 Share Posted October 8, 2004 I am installed PHPBB 2.0.8a Contribution. now i got a problem : When i click any link at forum it will chang to Anonymous any one have idea fix it my osc is install at localhost:8080 and osc cache path is /osc/ phpbb need set a same path ? Quote Link to comment Share on other sites More sharing options...
dsonnet Posted October 24, 2004 Share Posted October 24, 2004 Here is a good fix to "the headers already sent" problem caused by the redirection beeing called (in posting.php, privmsg.php, profile.php) after some output has been sent in module.php. Set the redirection in the begining of the module.php $file=$HTTP_GET_VARS['file']; switch($file){ case"profile.php": if ( !tep_session_is_registered('customer_id') ) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } case"privmsg.php": if ( !tep_session_is_registered('customer_id') ) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } case"posting.php": if ( !tep_session_is_registered('customer_id') ) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } } Quote Link to comment Share on other sites More sharing options...
Guest Posted October 24, 2004 Share Posted October 24, 2004 does any one know of a good autologin contribution that i can use in combination with this so people don't have to login every time. Thanks, Edwin. Quote Link to comment Share on other sites More sharing options...
verbalkent Posted November 3, 2004 Share Posted November 3, 2004 im a lost noob, do i install the base phpbb app to includes/modules/phpbb2/ of the oscommerce site? if i do this, will i need to run the phpbb install? if so, how? (i pointed to includes/modules/phpbb2/install/index.php and the server says im not auth to view file... Quote Link to comment Share on other sites More sharing options...
Guest Posted November 3, 2004 Share Posted November 3, 2004 does any one know of a good autologin contribution that i can use in combination with this so people don't have to login every time. <{POST_SNAPBACK}> I don't think that there is a good autologin contrib period. I dis-integrated the forums for this (but not only this) reason. -jared Quote Link to comment Share on other sites More sharing options...
Guest Posted November 3, 2004 Share Posted November 3, 2004 After a bit of searching i found a really good one that doesn't seem to require a redirect.... you can see it in action here: http://www.aussiehealthandfitness.com Quote Link to comment Share on other sites More sharing options...
verbalkent Posted November 5, 2004 Share Posted November 5, 2004 Is there a way to get this to work with spider safe url's turned on? or is there a way to enable just the forum page to not strip the additional page coding ie:02&f=7&t= ?? I feel seo plays a big role in commerce, and i would like to keep my urls spider safe, and have the option to still implement this into my site.. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 6, 2004 Share Posted November 6, 2004 Hi All, I'm brand new to oscommerce but have managed to work my way a bit. I've just installed phpbb2 and cannot seem to get the additions to the information box to work. This is what I have: $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); And if i follow the instructions it looks like this: '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>') '<a href="' . tep_href_link(FILENAME_BBMODULES, 'op=modload&name=phpbb2&file=index.php', 'NONSSL') . '">' . BOX_BBINDEX . '</a>'; And what i get is a parse error in the information box. I'd very much appreciate some advice here. TIA Quote Link to comment Share on other sites More sharing options...
Guest Posted November 6, 2004 Share Posted November 6, 2004 It should be: '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_BBMODULES, 'op=modload&name=phpbb2&file=index.php', 'NONSSL') . '">' . BOX_BBINDEX . '</a>'); Quote Link to comment Share on other sites More sharing options...
Guest Posted January 24, 2005 Share Posted January 24, 2005 Hi everybody :) I see there hasn't been activity in this thread since november '04 but i hope someone is reading it anyways. I've installed the phpBB 2.0.8 contrib, and have it working...almost in my OSC. My problem is that when a user/customer logs into the shop (or via the forum for that sake), and clik on a link (any link) in the forum they mysteriously seem to loose their session or something. In other words, if customer A has a loaded shopingcart, and goes to the forum, clicks on link there (goes to a sub-forum or whatever) -> presto ! the customer all of the sudden is logged out. From what knowledge i have of PHP and the osc this is happening because the user is 'loosing' his session somewhere ? Has anyone else experienced this thing? And if so, what on earth did you do to fix it, if you've managed to do so :'( sincerely vebj?rn Quote Link to comment Share on other sites More sharing options...
Dubai Posted February 11, 2005 Share Posted February 11, 2005 hello all, can any one help me with this error please , thank you guys in advance Parse error: parse error, unexpected $ catalog/login.php on line 300 this happend after installing the phpp , here is the page code !! ------------------------------- <?php /* $Id: login.php,v 1.80 2003/06/05 23:28:24 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'"); // #CHAVEIRO16# BEGIN PHPBB2 $last_visit = 0; $current_time = time(); $check_bbusers_query = tep_db_query("select * from " . TABLE_PHPBB_USERS . " where user_id = '" . $check_customer['customers_id'] . "'"); if (!tep_db_num_rows($check_bbusers_query)) { // Creates forum account if does't exists already $sql_data_array = array('user_id' => $customer_id, 'user_active' =>1, 'username' => strtoupper(substr($check_customer['customers_firstname'],0,1)) . ucwords(strtolower($check_customer['customers_lastname'])), 'user_password' => md5($password), 'user_session_time' => time(), 'user_session_page' => 0, 'user_lastvisit' => '', 'user_regdate' => time(), 'user_level' => 0, 'user_posts' => 0, 'user_timezone' => 0.00, 'user_style' => 1, 'user_lang' => 'english', 'user_dateformat' => 'D M d, Y g:i a', 'user_new_privmsg' => 0, 'user_unread_privmsg' => 0, 'user_last_privmsg' => 0, 'user_emailtime' => '', 'user_viewemail' => 0, 'user_attachsig' => 1, 'user_allowhtml' => 0, 'user_allowbbcode' => 1, 'user_allowsmile' => 1, 'user_allowavatar' => 1, 'user_allow_pm' => 1, 'user_allow_viewonline' => 1, 'user_notify' => 0, 'user_notify_pm' => 1, 'user_popup_pm' => 1, 'user_rank' => 0, 'user_avatar' => '', 'user_avatar_type' => 0, 'user_email' => $check_customer['customers_email_address'], 'user_icq' => '', 'user_website' => '', 'user_from' => tep_get_zone_name((int) ($check_country['entry_country_id']),(int) ($check_country['entry_zone_id'])), 'user_sig' => '', 'user_sig_bbcode_uid' => '', 'user_aim' => '', 'user_yim' => '', 'user_msnm' => '', 'user_occ' => '', 'user_interests' => '', 'user_actkey' => '', 'user_newpasswd' => ''); tep_db_perform(TABLE_PHPBB_USERS, $sql_data_array); tep_db_query("insert into " . TABLE_PHPBB_GROUPS . " (group_name, group_description, group_single_user, group_moderator) VALUES ('', 'Personal User', 1, 0)"); tep_db_query("insert into " . TABLE_PHPBB_USER_GROUPS . " (group_id, user_id, user_pending)VALUES ('".tep_db_insert_id()."', $customer_id, 0)"); } else { $userdata = tep_db_fetch_array($check_bbusers_query); $last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_time'] : $current_time; tep_db_query("UPDATE " . TABLE_PHPBB_USERS . " SET user_session_time = '".$current_time."', user_session_page = '0', user_lastvisit = '".$last_visit."' WHERE user_id ='" . $check_customer['customers_id'] . "'"); $userdata['user_lastvisit'] = $last_visit; } // #CHAVEIRO16# END PHPBB2 // restore cart contents $cart->restore_contents(); if (sizeof($navigation->snapshot) > 0) { require('includes/application_top.php'); // redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started) if ($session_started == false) { tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE)); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGIN); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) { $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']); $password = tep_db_prepare_input($HTTP_POST_VARS['password']); // Check if email exists $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); if (!tep_db_num_rows($check_customer_query)) { $error = true; } else { $check_customer = tep_db_fetch_array($check_customer_query); // Check that password is good if (!tep_validate_password($password, $check_customer['customers_password'])) { $error = true; } else { if (SESSION_RECREATE == 'True') { tep_session_recreate(); } $check_country_query = tep_db_query("select entry_country_id, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$check_customer['customers_id'] . "' and address_book_id = '" . (int)$check_customer['customers_default_address_id'] . "'"); $check_country = tep_db_fetch_array($check_country_query); $customer_id = $check_customer['customers_id']; $customer_default_address_id = $check_customer['customers_default_address_id']; $customer_first_name = $check_customer['customers_firstname']; $customer_country_id = $check_country['entry_country_id']; $customer_zone_id = $check_country['entry_zone_id']; tep_session_register('customer_id'); tep_session_register('customer_default_address_id'); tep_session_register('customer_first_name'); tep_session_register('customer_country_id'); tep_session_register('customer_zone_id'); tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'"); // restore cart contents $cart->restore_contents(); if (sizeof($navigation->snapshot) > 0) { $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); $navigation->clear_snapshot(); tep_redirect($origin_href); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } } } } if ($error == true) { $messageStack->add('login', TEXT_LOGIN_ERROR); } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LOGIN, '', 'SSL')); ?> <!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; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script language="javascript"><!-- function session_win() { window.open("<?php echo tep_href_link(FILENAME_INFO_SHOPPING_CART); ? >","info_shopping_cart","height=460,width=430,toolbar=no,statusb ar=no,scrollbars=yes").focus(); } //--></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_login.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($messageStack->size('login') > 0) { ?> <tr> <td><?php echo $messageStack->output('login'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } if ($cart->count_contents() > 0) { ?> <tr> <td class="smallText"><?php echo TEXT_VISITORS_CART; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" width="50%" valign="top"><b><?php echo HEADING_NEW_CUSTOMER; ?></b></td> <td class="main" width="50%" valign="top"><b><?php echo HEADING_RETURNING_CUSTOMER; ?></b></td> </tr> <tr> <td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main" valign="top"><?php echo TEXT_NEW_CUSTOMER . '<br><br>' . TEXT_NEW_CUSTOMER_INTRODUCTION; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> <td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2"> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main" colspan="2"><?php echo TEXT_RETURNING_CUSTOMER; ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b></td> <td class="main"><?php echo tep_draw_input_field('email_address'); ?></td> </tr> <tr> <td class="main"><b><?php echo ENTRY_PASSWORD; ?></b></td> <td class="main"><?php echo tep_draw_password_field('password'); ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="smallText" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ? ></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table> </form></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Quote Link to comment Share on other sites More sharing options...
Northwind Posted February 12, 2005 Share Posted February 12, 2005 Hello, Can someone please tell me what, if any, differences there are to this contribution download of "Part 1," and "Part 2"? I assumed I needed to download both packages, but looking at the files, I see everything the same...? Many thanks. Quote Link to comment Share on other sites More sharing options...
Northwind Posted February 28, 2005 Share Posted February 28, 2005 This bb_logged_in.php thing is throwing errors...Please clarify... Originally you said that you created this file, and loaded it into catalog/bb_logged_in.php Inside the code of this file, line 17 is: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_BB_LOGGED_IN); this is obviously calling itself again, however from a different location... Please clarify. Thanks. Yes I am interested too in this slighty modified login_bb.php. How did you do it? Its so anoying how the forum goes out to the main page to login in users and then back to the index page for the catalog. let's see if I can piece this back together, it wasn't that hard, just had to put together a few pieces. 1) I copied login.php to login_bb.php, put it in the same directory. 2) modifications to login_bb.php were as follows (as reported by my weak memory aided by WinMerge): find this: // restore cart contents ? ? ? ?$cart->restore_contents(); ? ? ? ?if (sizeof($navigation->snapshot) > 0) { ? ? ? ? ?$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); ? ? ? ? ?$navigation->clear_snapshot(); ? ? ? ? ?tep_redirect($origin_href); ? ? ? ?} else { ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_DEFAULT)); ? ? ? ?} ? ? ?} ? ?} ?} and change it to this: // restore cart contents ? ? ? ?$cart->restore_contents(); ? ? ? ?if (sizeof($navigation->snapshot) > 0) { ? ? ? ? ?$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); ? ? ? ? ?$navigation->clear_snapshot(); ? ? ? ? ?tep_redirect($origin_href); ? ? ? ?} else { ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_BB_LOGGED_IN)); ? ? ? ?} ? ? ?} ? ?} ?} change this: <!-- body_text //--> ? ?<td width="100%" valign="top"><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> ? ? ?<tr> to this: <!-- body_text //--> ? ?<td width="100%" valign="top"><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN_BB, 'action=process', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> ? ? ?<tr> 3) add to catalog/includes/filenames.php: ?define('FILENAME_LOGIN_BB', 'login_bb.php'); ?define('FILENAME_BB_LOGGED_IN', 'bb_logged_in.php'); it doesn't really matter where you add it, but I put it right under ?define('FILENAME_LOGIN_BB', 'login.php'); for code cleanliness purposes. You may have realized that due to some redirection issues, the forums may all be in https until you click an HTTP link. The problem is that you can't send an HTTP redirect command from https (login page) to http (regular pages) without the browser popping up a warning. So, the login page redirects you to from https (login page) to https (forums), and unless you click on an explicit http link (like somewhere in the catalog) then the entire forum area will be https. Sure, you can configure the browser not to pop the warning, but your customers are not each going to do that just for your website. So, I added another page (as you may have noticed in the code above), catalog/bb_logged_in.php, just to have the users click an HTTP link to "continue" to the forums, so that the forum links would not all be https. You probably don't want all the overhead of an entirely https forum. The code for that page is as follows: <?php /* ?$Id: privacy.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $ ?osCommerce, Open Source E-Commerce Solutions ?http://www.oscommerce.com ?Copyright (c) 2003 osCommerce ?Released under the GNU General Public License */ ?require('includes/application_top.php'); ?require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_BB_LOGGED_IN); ?> <!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; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> ?<tr> ? ?<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> ? ?</table></td> <!-- body_text //--> ? ?<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> ? ? ?<tr> ? ? ? ?<td><table border="0" width="100%" cellspacing="0" cellpadding="0"> ? ? ? ? ?<tr> ? ? ? ? ? ?<td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <!-- ? ? ? ? ? ?<td class="pageHeading" align="right">//<?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> --> ? ? ? ? ?</tr> ? ? ? ?</table></td> ? ? ?</tr> ? ? ?<tr> ? ? ? ?<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> ? ? ?</tr> ? ? ?<tr> ? ? ? ?<td><table border="0" width="100%" cellspacing="0" cellpadding="2"> ? ? ? ? ?<tr> ? ? ? ? ? ?<td class="main"><?php echo TEXT_INFORMATION; ?></td> ? ? ? ? ?</tr> ? ? ? ?</table></td> ? ? ?</tr> ? ? ?<tr> ? ? ? ?<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> ? ? ?</tr> ? ? ?<tr> ? ? ? ?<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> ? ? ? ? ?<tr class="infoBoxContents"> ? ? ? ? ? ?<td><table border="0" width="100%" cellspacing="0" cellpadding="2"> ? ? ? ? ? ? ?<tr> ? ? ? ? ? ? ? ?<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> ? ? ? ? ? ? ? ?<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT_BB) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> ? ? ? ? ? ? ? ?<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> ? ? ? ? ? ? ?</tr> ? ? ? ? ? ?</table></td> ? ? ? ? ?</tr> ? ? ? ?</table></td> ? ? ?</tr> ? ?</table></td> <!-- body_text_eof //--> ? ?<td width="<?php echo BOX_WIDTH_RIGHT; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> ? ?</table></td> ?</tr> </table> <!-- body_eof //--> <!-- footer //--> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> The page itself is pretty generic - - the only purpose it serves is to avoid the "you are being redirected from a secure page to a non-secure page" type error messages. I think that's it! -jared <{POST_SNAPBACK}> [/code] Quote Link to comment Share on other sites More sharing options...
Guest Posted February 28, 2005 Share Posted February 28, 2005 This bb_logged_in.php thing is throwing errors...Please clarify... Originally you said that you created this file, and loaded it into catalog/bb_logged_in.php Inside the code of this file, line 17 is: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_BB_LOGGED_IN); this is obviously calling itself again, however from a different location... Please clarify. Thanks. I'm sorry, I haven't been following this thread for quite some time - - I de-integrated my forums and osC months ago so that I could integrate the forums and a gallery. Additionally, having 2 logins (1 for forums+gallery, 1 for osC) was worth it to me in order to avoid people having to specify their DOB, address, etc. just to post in the forums. IOW, then, I haven't used these tweaks that I posted about for a few months at least. You say that you're getting errors. Which errors, specifically, are you getting? -jared Quote Link to comment Share on other sites More sharing options...
Ahler Posted April 6, 2005 Share Posted April 6, 2005 Hello, i have the following Problems with this Contribution: Warning: file_exists() [function.file-exists]: Unable to access in /opt/web4/html/includes/modules/phpbb2/includes/functions.php on line 371 And sometimes i have trouble with double Sission-ID?s. How to fix this Problem? THX Quote Link to comment Share on other sites More sharing options...
Gwyn Posted May 17, 2005 Share Posted May 17, 2005 Hi everybody :) I see there hasn't been activity in this thread since november '04 but i hope someone is reading it anyways. I've installed the phpBB 2.0.8 contrib, and have it working...almost in my OSC. My problem is that when a user/customer logs into the shop (or via the forum for that sake), and clik on a link (any link) in the forum they mysteriously seem to loose their session or something. In other words, if customer A has a loaded shopingcart, and goes to the forum, clicks on link there (goes to a sub-forum or whatever) -> presto ! the customer all of the sudden is logged out. From what knowledge i have of PHP and the osc this is happening because the user is 'loosing' his session somewhere ? Has anyone else experienced this thing? And if so, what on earth did you do to fix it, if you've managed to do so :'( sincerely vebj?rn <{POST_SNAPBACK}> I too would be greatful if someone has a fix to this problem... e.g. Authenticate via OSC call the fourm - shows the user/customer as logged on and displays their surname. Click of a forum topic, and the user/customer is no longer logged to the forum. At the point of login there is a osCsid set... i.e. osCsid=c56483e87bef57f215ff65145b5a70c3 From the status bar I can see, if I try to view a forum it will call viewforum.php with a sid=c56483e87bef57f215ff65145b5a70c3 note: not osCid. If I edit the address and change &sid to &osCsid= leaving the session id the same - I can get to the forum... So where is that little devil sid set? (not the value the actual var name) - I am almost there.. but if there where some help I would take it - no really I would..B) Thanks to anyone that may help. Gwyn Quote Link to comment Share on other sites More sharing options...
Gwyn Posted May 17, 2005 Share Posted May 17, 2005 I too would be greatful if someone has a fix to this problem... e.g. Authenticate via OSC call the fourm - shows the user/customer as logged on and displays their surname. Click of a forum topic, and the user/customer is no longer logged to the forum. At the point of login there is a osCsid set... i.e. osCsid=c56483e87bef57f215ff65145b5a70c3 From the status bar I can see, if I try to view a forum it will call viewforum.php with a sid=c56483e87bef57f215ff65145b5a70c3 note: not osCid. If I edit the address and change &sid to &osCsid= leaving the session id the same - I can get to the forum... So where is that little devil sid set? (not the value the actual var name) - I am almost there.. but if there where some help I would take it - no really I would..B) Thanks to anyone that may help. Gwyn <{POST_SNAPBACK}> OK - without knowing PHPBB too much this seems to have worked... The PHPBB functions seem to be OK and at least I have a forum working at my site.. So here is what I did. in catalog/includes/modules/phpbb2/includes/sessions.php changed line 119. $SID = ($sessionmethod == SESSION_METHOD_GET || defined('IN_ADMIN')) ? 'sid=' . $session_id : ''; to : $SID = ($sessionmethod == SESSION_METHOD_GET || defined('IN_ADMIN')) ? 'osCsid=' . $session_id : ''; Again the change is the prefix sid changed to osCsid. Warning: This is a hack and not based on an in-depth understanding of PHPBB-OSC integration. It works for me, can only say use at your own risk. Thanks. Gwyn - a humble shop keeper. Quote Link to comment Share on other sites More sharing options...
Northwind Posted May 17, 2005 Share Posted May 17, 2005 OK - without knowing PHPBB too much this seems to have worked... The PHPBB functions seem to be OK and at least I have a forum working at my site.. So here is what I did. in catalog/includes/modules/phpbb2/includes/sessions.php changed line 119. $SID = ($sessionmethod == SESSION_METHOD_GET || defined('IN_ADMIN')) ? 'sid=' . $session_id : ''; to : $SID = ($sessionmethod == SESSION_METHOD_GET || defined('IN_ADMIN')) ? 'osCsid=' . $session_id : ''; Again the change is the prefix sid changed to osCsid. Warning: This is a hack and not based on an in-depth understanding of PHPBB-OSC integration. It works for me, can only say use at your own risk. Thanks. Gwyn - a humble shop keeper. <{POST_SNAPBACK}> Gwyn - You are an Angel! I wish everyone would come back and let us know how they fixed what problem...Thank you! I am gonna run and give this a shot - lord knows I've enough lil errors popping up, not only from this contrib but others as well and can use all the help I can get! Quote Link to comment Share on other sites More sharing options...
cube Posted May 31, 2005 Share Posted May 31, 2005 Hi, I've almost got the forums going on my shop, but I sent myself a Private Message, and got an e-mail notification in Chinese. Anyone know how to control the language character set for the e-mails? Regular osC emails work just fine. Thanks Quentin Quote Link to comment Share on other sites More sharing options...
deeveloper Posted June 3, 2005 Share Posted June 3, 2005 (edited) think i'll start a new thread.. this ones bloated with code >_< Edited June 3, 2005 by deeveloper Quote Link to comment Share on other sites More sharing options...
batteryrat Posted September 21, 2005 Share Posted September 21, 2005 Warning: Cannot modify header information - headers already sent by (output started at c:\web\justsak\modules.php:28) in c:\web\justsak\includes\functions\general.php on line 29 i got this comin up on the loged in side when i click on profile ANYONE!? >_< Quote Vertical Climb watch me loose grip an plumit!! Link to comment Share on other sites More sharing options...
Guest Posted March 6, 2006 Share Posted March 6, 2006 Gwyn, you are my hero... i?m sitiing here since 5 hours to make my forum work! It works really good! Thanks to jcall too... ur threads are really helpfull. Kind regards from a happy Julia from Germany :) Quote Link to comment Share on other sites More sharing options...
promosat Posted March 13, 2006 Share Posted March 13, 2006 Hi can please somone help here , well i installed the contrib as in the install file all seems to b ok but i get this errro in http://www.mysite.com/bb_default.php ********************************************* phpBB : Critical Error Could not query database for theme info DEBUG MODE SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 ************************************************************* Quote Link to comment Share on other sites More sharing options...
henryho Posted March 23, 2006 Share Posted March 23, 2006 can someone pls help? the link to /modules.php?op=modload&name=phpbb2&file=index.php&osCsid=839d4636d269916ac08255ba05bb8578 doesn't work... it gives me an Error 404... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.