Jump to content



Photo
- - - - -

fixes to PhpBB contribution


  • Please log in to reply
185 replies to this topic

#181   mandelism

mandelism
  • Members
  • 3 posts
  • Real Name:mandelism

Posted 02 April 2006 - 06:31

hi there all
thkx for the solution..i was goin all over to search for an intergrated e-commerce withfourm

but its too complicated, the contrib..
is there any way i can get the whole pre-moded files..as in osc+phpbb mod 2getah..n just install it??

sorry , n thkx in advance

#182   Trout69

Trout69
  • Members
  • 220 posts
  • Real Name:Donna Osborne
  • Location:Midlands, UK

Posted 02 April 2006 - 10:26

Hi All,

I've been trying to implement this for a long time now, and i'm finding that the file modules.php is causing lots of problems, mainly the:

Warning: Cannot modify header information - headers already sent by (output started at /home/dtotrans/public_html/ladyloving/modules.php:28) in /home/dtotrans/public_html/ladyloving/includes/functions/general.php on line 33


Now i'm not a coder personally, but people have been trying to help me fix this (and this isnt a problem due to white spaces at the top and bottom), its concerned with some output being sent prior to the headers or something, and quite frankly i just can't fix this on my own. If any one out there has got a fully working forum can they please let me have a copy of modules.php or make the changes to the version supplied with the contribution below?

<?php
/*
  $Id: privacy.php,v 1.19 2002/07/21 23:38:57 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2002 osCommerceReleased under the GNU General Public License
  
  Integrate PHPBB206 INTO OSC 2.2 oscphpbb2 Copyright (c) 2003/09/10  
  version:		1.0	
  author:		Oldpa
  web site: http://oscphpbb2.ecart.com.tw http://oldpa.adsldns.org  http://www.oldpa.com.tw  */		
	
  require('includes/application_top.php');
  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_BB_INDEX);

  $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_BBMODULES, 'op=modload&amp;name=phpbb2&amp;file=index.php', 'NONSSL'));
			  
switch($op){

case"modload":

if (( $mode != 'smilies' ) & ( $mode != 'topicreview' ) & ( $mode != 'searchuser' )) {
define('SHOW_HEAD_FOOT', true);
?>
<!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 (getenv('HTTPS') == 'on' ? 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="3" cellpadding="3">
		 <tr>
<?php
}
   include(DIR_WS_MODULES."$name/$file"); 

//Footer data em page_tail

   break; 

default:
die("Sorry file does't exist.");
break;
exit;
}
?>

I would be most appreciative for the help, as this is has been driving me crazy for almost a week?

Best Regards

Donna

#183   mandelism

mandelism
  • Members
  • 3 posts
  • Real Name:mandelism

Posted 02 April 2006 - 11:13

huhu
if only someone can release a fully moded installation

#184   kittycooper

kittycooper
  • Members
  • 8 posts
  • Real Name:Kitty Cooper
  • Location:Albuquerque, NM

Posted 22 April 2006 - 05:52

Donna -
As I recall the problem is actually with the file \includes\modules\phpbb2\templates\subSilver\overall_header.tpl

it repeats the html and body tags already in modules.php which confuses everything. I had to pull all the CSS code out and put it into a separate css file called by modules.php then remove the head and body tags so the new overall_header.tpl code is like this:

<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
	if ( {PRIVATE_MESSAGE_NEW_FLAG} )
	{
		window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
	}
//-->
</script>
<!-- END switch_enable_pm_popup -->
 

<a name="top"></a>

<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center"> 
	<tr> 
		<td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr> 
				<td>   </td>
				<td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />  </span> 
				<table cellspacing="0" cellpadding="2" border="0">
					<tr> 
						<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a></span><span class="mainmenu">   <a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>   <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>   <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>  
						<!-- BEGIN switch_user_logged_out -->
						 <a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a></span> 
						<!-- END switch_user_logged_out -->
						</td>
					</tr>
					<tr>
						<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>   <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>   <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span></td>
					</tr>
				</table></td>
			</tr>
		</table>

		<br />

As I recently got this all working I will try and post my working version as an addition to this contrib over the weekend. Mind you most of my problems came from the need to accomodate the STS template contrib as well, so may not be of use to all.

Kitty
OpenSkyWebDesign.com

#185   kittycooper

kittycooper
  • Members
  • 8 posts
  • Real Name:Kitty Cooper
  • Location:Albuquerque, NM

Posted 22 April 2006 - 18:53

One more thing I had to do was remove the cookie usage from the following modules (since output has already started ...) :

\includes\modules\phpbb2\templates\subSilver\

index.php
posting.php
viewforum.php

I have created 2 new versions of the contrib (one with STS and one without) - anyone who wants to try them please do and contact me directly with any problems. I would like contribute these once they are OK. These are not exactly what my client has, although close, so I cannot test them myself.

Warning - this contrib uses an old version of PHPBB which is not fully secure from hackers - someone needs to take the latest port of PHPBB2 in PHPnuke and redo this contrib, however if you want to use this anyway, here is my complete fixed version of this contrib 2116.

Contrib 2116 redone

Kitty
OpenSkyWebDesign

#186   butterflyfish

butterflyfish
  • Members
  • 27 posts
  • Real Name:Heidi

Posted 10 May 2006 - 16:58

hi there all
thkx for the solution..i was goin all over to search for an intergrated e-commerce withfourm

but its too complicated, the contrib..
is there any way i can get the whole pre-moded files..as in osc+phpbb mod 2getah..n just install it??

sorry , n thkx in advance


Agreed. My brain is spinning after reading less than half of this thread. /wacko.gif' class='bbc_emoticon' alt=':wacko:' />

Guess I'm not ready for integration yet.