Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Still Trying intergrated my forum as part of web site


mtechama

Recommended Posts

  • Replies 94
  • Created
  • Last Reply

ok here is my forum.php

 

<?php
/*
 $Id: shipping.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_SHIPPING);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING));
?>
<!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
/******************************************************************************
* index.php																   *
*******************************************************************************
* SMF: Simple Machines Forum												  *
* Open-Source Project Inspired by Zef Hemel ([email protected])				*
* =========================================================================== *
* Software Version:		   SMF 1.0.5									   *
* Software by:				Simple Machines (http://www.simplemachines.org) *
* Copyright 2001-2005 by:	 Lewis Media (http://www.lewismedia.com)		 *
* Support, News, Updates at:  http://www.simplemachines.org				   *
*******************************************************************************
* This program is free software; you may redistribute it and/or modify it	 *
* under the terms of the provided license as published by Lewis Media.		*
*																			 *
* This program is distributed in the hope that it is and will be useful,	  *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of			*
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.						*
*																			 *
* See the "license.txt" file for details of the Simple Machines license.	  *
* The latest version can always be found at http://www.simplemachines.org.	*
******************************************************************************/

/*	This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly.  The most interesting part of this file is the action array in
the smf_main() function.  It is formatted as so:

	'action-in-url' => array('Source-File.php', 'FunctionToCall'),

Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version = 'SMF 1.0.5';

// Get everything started up...
define('SMF', 1);
@set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start = microtime();

// Load the settings...
require_once(dirname(__FILE__) . '/forum/Settings.php');

// Just in case something happens to Settings.php, let's try to at least load an error screen.
if (!isset($sourcedir))
$sourcedir = dirname(__FILE__) . '/Sources';

// And important includes.
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');

// If $maintenance is set specifically to 2, then we're upgrading or something.
if ($maintenance == 2)
db_fatal_error();

// Connect to the MySQL database.
if (empty($db_persist))
$db_connection = @mysql_connect($db_server, $db_user, $db_passwd);
else
$db_connection = @mysql_pconnect($db_server, $db_user, $db_passwd);

// Show an error if the connection couldn't be made.
if (!$db_connection || !@mysql_select_db($db_name, $db_connection))
db_fatal_error();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Determine if this is should be using WAP, WAP2, or imode.
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));





// Register an error handler.
set_error_handler('error_handler');


// This makes it so headers can be sent!
if (empty($modSettings['enableCompressedOutput']))
ob_start();


// Start the session. (assuming it hasn't already been.)
loadSession();

// There's a strange bug in PHP 4.1.2 which makes $_SESSION not work unless you do this...
if (@version_compare(PHP_VERSION, '4.2.0') == -1)
$HTTP_SESSION_VARS['php_412_bugfix'] = true;

// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());

// Call obExit specially; we're coming from the main area;).
obExit(null, null, true);

// The main controlling function.
function smf_main()
{
global $modSettings, $settings, $user_info, $board, $topic, $maintenance, $sourcedir;

// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board's information.
loadBoard();

// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// Load the current user's permissions.
loadPermissions();

// Do some logging if this is not an attachment/avatar or the setting of an option.
if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach', 'jsoption')))
{
	// Log this user as online.
	writeLog();

	// Track forum statistics and hits...?
	if (!empty($modSettings['hitStats']))
		trackStats(array('hits' => '+'));
}

// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
	// You can only login.... otherwise, you're getting the "maintenance mode" display.
	if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'login2')
	{
		require_once($sourcedir . '/LogInOut.php');
		return 'Login2';
	}
	// Don't even try it, sonny.
	else
	{
		require_once($sourcedir . '/Subs-Auth.php');
		return 'InMaintenance';
	}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', '.xml'))))
{
	require_once($sourcedir . '/Subs-Auth.php');
	return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{
	// Action and board are both empty... BoardIndex!
	if (empty($board) && empty($topic))
	{
		require_once($sourcedir . '/BoardIndex.php');
		return 'BoardIndex';
	}
	// Topic is empty, and action is empty.... MessageIndex!
	elseif (empty($topic))
	{
		require_once($sourcedir . '/MessageIndex.php');
		return 'MessageIndex';
	}
	// Board is not empty... topic is not empty... action is empty.. Display!
	else
	{
		require_once($sourcedir . '/Display.php');
		return 'Display';
	}
}

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
	'activate' => array('Register.php', 'Activate'),
	'admin' => array('Admin.php', 'Admin'),
	'announce' => array('Post.php', 'AnnounceTopic'),
	'ban' => array('ManageMembers.php', 'Ban'),
	'boardrecount' => array('Admin.php', 'AdminBoardRecount'),
	'calendar' => array('Calendar.php', 'CalendarMain'),
	'collapse' => array('Subs-Boards.php', 'CollapseCategory'),
	'deletemsg' => array('RemoveTopic.php', 'DeleteMessage'),
	'detailedversion' => array('Admin.php', 'VersionDetail'),
	'display' => array('Display.php', 'Display'),
	'dlattach' => array('Display.php', 'Download'),
	'dumpdb' => array('DumpDatabase.php', 'DumpDatabase2'),
	'editagreement' => array('Admin.php', 'EditAgreement'),
	'editnews' => array('Admin.php', 'EditNews'),
	'editpoll' => array('Poll.php', 'EditPoll'),
	'editpoll2' => array('Poll.php', 'EditPoll2'),
	'findmember' => array('Subs-Auth.php', 'JSMembers'),
	'help' => array('Help.php', 'ShowHelp'),
	'helpadmin' => array('Help.php', 'ShowAdminHelp'),
	'im' => array('InstantMessage.php', 'MessageMain'),
	'jsoption' => array('Themes.php', 'SetJavaScript'),
	'lock' => array('LockTopic.php', 'LockTopic'),
	'lockVoting' => array('Poll.php', 'LockVoting'),
	'login' => array('LogInOut.php', 'Login'),
	'login2' => array('LogInOut.php', 'Login2'),
	'logout' => array('LogInOut.php', 'Logout'),
	'mailing' => array('ManageMembers.php', 'MailingList'),
	'maintain' => array('Admin.php', 'Maintenance'),
	'manageattachments' => array('ManageAttachments.php', 'ManageAttachments'),
	'manageboards' => array('ManageBoards.php', 'ManageBoards'),
	'markasread' => array('Subs-Boards.php', 'MarkRead'),
	'membergroups' => array('ManageMembers.php', 'ModifyMembergroups'),
	'mergetopics' => array('SplitTopics.php', 'MergeTopics'),
	'mlist' => array('Memberlist.php', 'Memberlist'),
	'modifycat' => array('ManageBoards.php', 'ModifyCat'),
	'modifykarma' => array('Karma.php', 'ModifyKarma'),
	'modifyModSettings' => array('ModSettings.php', 'ModifyModSettings'),
	'modifyModSettings2' => array('ModSettings.php', 'ModifyModSettings2'),
	'modlog' => array('Modlog.php', 'ViewModlog'),
	'modlog2' => array('Modlog.php', 'ViewModlog2'),
	'modsettings' => array('Admin.php', 'ModifySettings'),
	'modsettings2' => array('Admin.php', 'ModifySettings2'),
	'movetopic' => array('MoveTopic.php', 'MoveTopic'),
	'movetopic2' => array('MoveTopic.php', 'MoveTopic2'),
	'notify' => array('Notify.php', 'Notify'),
	'notifyboard' => array('Notify.php', 'BoardNotify'),
	'optimizetables' => array('Admin.php', 'OptimizeTables'),
	'packageget' => array('PackageGet.php', 'PackageGet'),
	'packages' => array('Packages.php', 'Packages'),
	'permissions' => array('ManagePermissions.php', 'ModifyPermissions'),
	'pgadd' => array('PackageGet.php', 'PackageServerAdd'),
	'pgremove' => array('PackageGet.php', 'PackageServerRemove'),
	'pgbrowse' => array('PackageGet.php', 'PackageGBrowse'),
	'pgdownload' => array('PackageGet.php', 'PackageDownload'),
	'pgupload' => array('PackageGet.php', 'PackageUpload'),
	'pm' => array('InstantMessage.php', 'MessageMain'),
	'post' => array('Post.php', 'Post'),
	'post2' => array('Post.php', 'Post2'),
	'printpage' => array('Printpage.php', 'PrintTopic'),
	'profile' => array('Profile.php', 'ModifyProfile'),
	'profile2' => array('Profile.php', 'ModifyProfile2'),
	'quotefast' => array('Post.php', 'QuoteFast'),
	'quickmod' => array('Subs-Boards.php', 'QuickModeration'),
	'quickmod2' => array('Subs-Boards.php', 'QuickModeration2'),
	'recent' => array('Recent.php', 'RecentPosts'),
	'regcenter' => array('Register.php', 'RegCenter'),
	'register' => array('Register.php', 'Register'),
	'register2' => array('Register.php', 'Register2'),
	'reminder' => array('Reminder.php', 'RemindMe'),
	'removetopic2' => array('RemoveTopic.php', 'RemoveTopic2'),
	'removeoldtopics2' => array('RemoveTopic.php', 'RemoveOldTopics2'),
	'removepoll' => array('Poll.php', 'RemovePoll'),
	'repairboards' => array('RepairBoards.php', 'RepairBoards'),
	'reporttm' => array('SendTopic.php', 'ReportToModerator'),
	'search' => array('Search.php', 'PlushSearch1'),
	'search2' => array('Search.php', 'PlushSearch2'),
	'sendtopic' => array('SendTopic.php', 'SendTopic'),
	'setcensor' => array('Admin.php', 'SetCensor'),
	'setcensor2' => array('Admin.php', 'SetCensor2'),
	'setreserve' => array('ManageMembers.php', 'SetReserve'),
	'setreserve2' => array('ManageMembers.php', 'SetReserve2'),
	'smileys' => array('ManageSmileys.php', 'ManageSmileys'),
	'spellcheck' => array('Subs-Post.php', 'SpellCheck'),
	'splittopics' => array('SplitTopics.php', 'SplitTopics'),
	'stats' => array('Stats.php', 'DisplayStats'),
	'sticky' => array('LockTopic.php', 'Sticky'),
	'theme' => array('Themes.php', 'ThemesMain'),
	'trackip' => array('ManageMembers.php', 'trackIP'),
	'about:mozilla' => array('Karma.php', 'BookOfUnknown'),
	'about:unknown' => array('Karma.php', 'BookOfUnknown'),
	'unread' => array('Recent.php', 'UnreadTopics'),
	'unreadreplies' => array('Recent.php', 'UnreadTopics'),
	'viewErrorLog' => array('Errors.php', 'ViewErrorLog'),
	'viewmembers' => array('ManageMembers.php', 'ViewMembers'),
	'viewprofile' => array('Profile.php', 'ModifyProfile'),
	'vote' => array('Poll.php', 'Vote'),
	'viewquery' => array('ViewQuery.php', 'ViewQuery'),
	'who' => array('Who.php', 'Who'),
	'.xml' => array('News.php', 'ShowXmlFeed'),
);

// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
	// Catch the action with the theme?
	if (!empty($settings['catch_action']))
	{
		require_once($sourcedir . '/Themes.php');
		return 'WrapAction';
	}

	// Fall through to the board index then...
	require_once($sourcedir . '/BoardIndex.php');
	return 'BoardIndex';
}

// Otherwise, it was set - so let's go to that action.
require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}
?>
		</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) . '">' . 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; ?>" 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'); ?>

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

You recreated this file from your shipping.php file. I couldn't see anything wrong with it from the line it is referring to except for this

 

<?php
/*
 $Id: shipping.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_SHIPPING);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING));
?>

 

If this file is called forum.php then you need to make sure you change this and add forum.php to your includes/filename.php file. Which I am sure you have already done since the page is veiwable. So change the above

 

FILENAME_SHIPPING

 

to

 

FILENAME_FORUM

 

and let's go from there.

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Link to comment
Share on other sites

I don't see anything different in your code and what is in the contribution...

but it looks like Silverado05 could be on to something....

 

in your post it's reads...

 

<?php
/*
 $Id: shipping.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $

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

 

 

as opposed to:

 

<?php
/*
 $Id: shipping.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $

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

 

The difference is that there is a space before the code begins. If it's like that in your document that could be the problem.

 

Could you post the code to your forums.php as well?

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Link to comment
Share on other sites

yes here is my forums.php

 

<?php
/*
 $Id: forums.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');
 header('Location: forum.php'); 


 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FORUMS);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FORUMS));
?>
<!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"></td>
		<td class="pageHeading" align="right"></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="pageHeading" align = "middle" >LOADING</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) . '">' . 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; ?>" 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'); ?>

 

and here is my forum.php new code

 

<?php
/*
 $Id: forum.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url=http://www.oscommerce.com]http://www.oscommerce.com[/url]

 Copyright ? 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FORUM);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FORUM));
?>
<!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
/******************************************************************************
* index.php																   *
*******************************************************************************
* SMF: Simple Machines Forum												  *
* Open-Source Project Inspired by Zef Hemel ([email protected])				*
* =========================================================================== *
* Software Version:		   SMF 1.0.5									   *
* Software by:				Simple Machines (http://www.simplemachines.org) *
* Copyright 2001-2005 by:	 Lewis Media (http://www.lewismedia.com)		 *
* Support, News, Updates at:  [url=http://www.simplemachines.org]http://www.simplemachines.org[/url]				   *
*******************************************************************************
* This program is free software; you may redistribute it and/or modify it	 *
* under the terms of the provided license as published by Lewis Media.		*
*																			 *
* This program is distributed in the hope that it is and will be useful,	  *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of			*
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.						*
*																			 *
* See the "license.txt" file for details of the Simple Machines license.	  *
* The latest version can always be found at [url=http://www.simplemachines.org]http://www.simplemachines.org[/url].	*
******************************************************************************/

/*	This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly.  The most interesting part of this file is the action array in
the smf_main() function.  It is formatted as so:

	'action-in-url' => array('Source-File.php', 'FunctionToCall'),

Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version = 'SMF 1.0.5';

// Get everything started up...
define('SMF', 1);
@set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start = microtime();

// Load the settings...
require_once(dirname(__FILE__) . '/forum/Settings.php');

// Just in case something happens to Settings.php, let's try to at least load an error screen.
if (!isset($sourcedir))
$sourcedir = dirname(__FILE__) . '/Sources';

// And important includes.
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');

// If $maintenance is set specifically to 2, then we're upgrading or something.
if ($maintenance == 2)
db_fatal_error();

// Connect to the MySQL database.
if (empty($db_persist))
$db_connection = @mysql_connect($db_server, $db_user, $db_passwd);
else
$db_connection = @mysql_pconnect($db_server, $db_user, $db_passwd);

// Show an error if the connection couldn't be made.
if (!$db_connection || !@mysql_select_db($db_name, $db_connection))
db_fatal_error();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Determine if this is should be using WAP, WAP2, or imode.
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));





// Register an error handler.
set_error_handler('error_handler');


// This makes it so headers can be sent!
if (empty($modSettings['enableCompressedOutput']))
ob_start();


// Start the session. (assuming it hasn't already been.)
loadSession();

// There's a strange bug in PHP 4.1.2 which makes $_SESSION not work unless you do this...
if (@version_compare(PHP_VERSION, '4.2.0') == -1)
$HTTP_SESSION_VARS['php_412_bugfix'] = true;

// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());

// Call obExit specially; we're coming from the main area;).
obExit(null, null, true);

// The main controlling function.
function smf_main()
{
global $modSettings, $settings, $user_info, $board, $topic, $maintenance, $sourcedir;

// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board's information.
loadBoard();

// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// Load the current user's permissions.
loadPermissions();

// Do some logging if this is not an attachment/avatar or the setting of an option.
if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach', 'jsoption')))
{
	// Log this user as online.
	writeLog();

	// Track forum statistics and hits...?
	if (!empty($modSettings['hitStats']))
		trackStats(array('hits' => '+'));
}

// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
	// You can only login.... otherwise, you're getting the "maintenance mode" display.
	if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'login2')
	{
		require_once($sourcedir . '/LogInOut.php');
		return 'Login2';
	}
	// Don't even try it, sonny.
	else
	{
		require_once($sourcedir . '/Subs-Auth.php');
		return 'InMaintenance';
	}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', '.xml'))))
{
	require_once($sourcedir . '/Subs-Auth.php');
	return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{
	// Action and board are both empty... BoardIndex!
	if (empty($board) && empty($topic))
	{
		require_once($sourcedir . '/BoardIndex.php');
		return 'BoardIndex';
	}
	// Topic is empty, and action is empty.... MessageIndex!
	elseif (empty($topic))
	{
		require_once($sourcedir . '/MessageIndex.php');
		return 'MessageIndex';
	}
	// Board is not empty... topic is not empty... action is empty.. Display!
	else
	{
		require_once($sourcedir . '/Display.php');
		return 'Display';
	}
}

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
	'activate' => array('Register.php', 'Activate'),
	'admin' => array('Admin.php', 'Admin'),
	'announce' => array('Post.php', 'AnnounceTopic'),
	'ban' => array('ManageMembers.php', 'Ban'),
	'boardrecount' => array('Admin.php', 'AdminBoardRecount'),
	'calendar' => array('Calendar.php', 'CalendarMain'),
	'collapse' => array('Subs-Boards.php', 'CollapseCategory'),
	'deletemsg' => array('RemoveTopic.php', 'DeleteMessage'),
	'detailedversion' => array('Admin.php', 'VersionDetail'),
	'display' => array('Display.php', 'Display'),
	'dlattach' => array('Display.php', 'Download'),
	'dumpdb' => array('DumpDatabase.php', 'DumpDatabase2'),
	'editagreement' => array('Admin.php', 'EditAgreement'),
	'editnews' => array('Admin.php', 'EditNews'),
	'editpoll' => array('Poll.php', 'EditPoll'),
	'editpoll2' => array('Poll.php', 'EditPoll2'),
	'findmember' => array('Subs-Auth.php', 'JSMembers'),
	'help' => array('Help.php', 'ShowHelp'),
	'helpadmin' => array('Help.php', 'ShowAdminHelp'),
	'im' => array('InstantMessage.php', 'MessageMain'),
	'jsoption' => array('Themes.php', 'SetJavaScript'),
	'lock' => array('LockTopic.php', 'LockTopic'),
	'lockVoting' => array('Poll.php', 'LockVoting'),
	'login' => array('LogInOut.php', 'Login'),
	'login2' => array('LogInOut.php', 'Login2'),
	'logout' => array('LogInOut.php', 'Logout'),
	'mailing' => array('ManageMembers.php', 'MailingList'),
	'maintain' => array('Admin.php', 'Maintenance'),
	'manageattachments' => array('ManageAttachments.php', 'ManageAttachments'),
	'manageboards' => array('ManageBoards.php', 'ManageBoards'),
	'markasread' => array('Subs-Boards.php', 'MarkRead'),
	'membergroups' => array('ManageMembers.php', 'ModifyMembergroups'),
	'mergetopics' => array('SplitTopics.php', 'MergeTopics'),
	'mlist' => array('Memberlist.php', 'Memberlist'),
	'modifycat' => array('ManageBoards.php', 'ModifyCat'),
	'modifykarma' => array('Karma.php', 'ModifyKarma'),
	'modifyModSettings' => array('ModSettings.php', 'ModifyModSettings'),
	'modifyModSettings2' => array('ModSettings.php', 'ModifyModSettings2'),
	'modlog' => array('Modlog.php', 'ViewModlog'),
	'modlog2' => array('Modlog.php', 'ViewModlog2'),
	'modsettings' => array('Admin.php', 'ModifySettings'),
	'modsettings2' => array('Admin.php', 'ModifySettings2'),
	'movetopic' => array('MoveTopic.php', 'MoveTopic'),
	'movetopic2' => array('MoveTopic.php', 'MoveTopic2'),
	'notify' => array('Notify.php', 'Notify'),
	'notifyboard' => array('Notify.php', 'BoardNotify'),
	'optimizetables' => array('Admin.php', 'OptimizeTables'),
	'packageget' => array('PackageGet.php', 'PackageGet'),
	'packages' => array('Packages.php', 'Packages'),
	'permissions' => array('ManagePermissions.php', 'ModifyPermissions'),
	'pgadd' => array('PackageGet.php', 'PackageServerAdd'),
	'pgremove' => array('PackageGet.php', 'PackageServerRemove'),
	'pgbrowse' => array('PackageGet.php', 'PackageGBrowse'),
	'pgdownload' => array('PackageGet.php', 'PackageDownload'),
	'pgupload' => array('PackageGet.php', 'PackageUpload'),
	'pm' => array('InstantMessage.php', 'MessageMain'),
	'post' => array('Post.php', 'Post'),
	'post2' => array('Post.php', 'Post2'),
	'printpage' => array('Printpage.php', 'PrintTopic'),
	'profile' => array('Profile.php', 'ModifyProfile'),
	'profile2' => array('Profile.php', 'ModifyProfile2'),
	'quotefast' => array('Post.php', 'QuoteFast'),
	'quickmod' => array('Subs-Boards.php', 'QuickModeration'),
	'quickmod2' => array('Subs-Boards.php', 'QuickModeration2'),
	'recent' => array('Recent.php', 'RecentPosts'),
	'regcenter' => array('Register.php', 'RegCenter'),
	'register' => array('Register.php', 'Register'),
	'register2' => array('Register.php', 'Register2'),
	'reminder' => array('Reminder.php', 'RemindMe'),
	'removetopic2' => array('RemoveTopic.php', 'RemoveTopic2'),
	'removeoldtopics2' => array('RemoveTopic.php', 'RemoveOldTopics2'),
	'removepoll' => array('Poll.php', 'RemovePoll'),
	'repairboards' => array('RepairBoards.php', 'RepairBoards'),
	'reporttm' => array('SendTopic.php', 'ReportToModerator'),
	'search' => array('Search.php', 'PlushSearch1'),
	'search2' => array('Search.php', 'PlushSearch2'),
	'sendtopic' => array('SendTopic.php', 'SendTopic'),
	'setcensor' => array('Admin.php', 'SetCensor'),
	'setcensor2' => array('Admin.php', 'SetCensor2'),
	'setreserve' => array('ManageMembers.php', 'SetReserve'),
	'setreserve2' => array('ManageMembers.php', 'SetReserve2'),
	'smileys' => array('ManageSmileys.php', 'ManageSmileys'),
	'spellcheck' => array('Subs-Post.php', 'SpellCheck'),
	'splittopics' => array('SplitTopics.php', 'SplitTopics'),
	'stats' => array('Stats.php', 'DisplayStats'),
	'sticky' => array('LockTopic.php', 'Sticky'),
	'theme' => array('Themes.php', 'ThemesMain'),
	'trackip' => array('ManageMembers.php', 'trackIP'),
	'about:mozilla' => array('Karma.php', 'BookOfUnknown'),
	'about:unknown' => array('Karma.php', 'BookOfUnknown'),
	'unread' => array('Recent.php', 'UnreadTopics'),
	'unreadreplies' => array('Recent.php', 'UnreadTopics'),
	'viewErrorLog' => array('Errors.php', 'ViewErrorLog'),
	'viewmembers' => array('ManageMembers.php', 'ViewMembers'),
	'viewprofile' => array('Profile.php', 'ModifyProfile'),
	'vote' => array('Poll.php', 'Vote'),
	'viewquery' => array('ViewQuery.php', 'ViewQuery'),
	'who' => array('Who.php', 'Who'),
	'.xml' => array('News.php', 'ShowXmlFeed'),
);

// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
	// Catch the action with the theme?
	if (!empty($settings['catch_action']))
	{
		require_once($sourcedir . '/Themes.php');
		return 'WrapAction';
	}

	// Fall through to the board index then...
	require_once($sourcedir . '/BoardIndex.php');
	return 'BoardIndex';
}

// Otherwise, it was set - so let's go to that action.
require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}
?>
		</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) . '">' . 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; ?>" 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'); ?>

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

Cartel I got everything changed but I am still getting errors

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

At the top change

 

<html <?php echo HTML_PARAMS; ?>>

 

to

 

<html>

 

 

That is the extact line that the error is occuring so try that. That is the only other thing I see that might be causing this.

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Link to comment
Share on other sites

At the top change

 

<html <?php echo HTML_PARAMS; ?>>

 

to

 

<html>

That is the extact line that the error is occuring so try that. That is the only other thing I see that might be causing this.

 

now I got this error

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/t/e/mtechamatest/html/catalog/forum.php:22) in /home/content/m/t/e/mtechamatest/html/catalog/forum/Sources/Subs.php on line 1760

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/t/e/mtechamatest/html/catalog/forum.php:22) in /home/content/m/t/e/mtechamatest/html/catalog/forum/Sources/Subs.php on line 1761

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

What we are doing is trying to isolate the problem. I think it has to do with all these php lines emebedded into the header section of this file that is being carried over from the shipping.php file. It won't matter much to remove it from here nor will it hurt any.

 

So replace this:

 

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

 

With

 

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Link to comment
Share on other sites

OK now this should take care of it all. If not I will just have to rewrite the logic of this file because it's poorly written.

 

Replace

 

<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>

 

With

 

<title>My Store Forum</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Link to comment
Share on other sites

Nick this is line 28:

 

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

Yea I got the code save on one of my file editors. Ok I have rewrote this code and it worked on mine. If this doesn't work we are going to need to look at that sub file.

 

Copy and past this over forum.php file:

 

<?php
/*
 $Id: forum.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_FORUM);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FORUM));
?>
<!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 . ' ', 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
/******************************************************************************
* index.php																   *
*******************************************************************************
* SMF: Simple Machines Forum												  *
* Open-Source Project Inspired by Zef Hemel ([email protected])				*
* =========================================================================== *
* Software Version:		   SMF 1.0.5									   *
* Software by:				Simple Machines (http://www.simplemachines.org) *
* Copyright 2001-2005 by:	 Lewis Media (http://www.lewismedia.com)		 *
* Support, News, Updates at:  http://www.simplemachines.org				   *
*******************************************************************************
* This program is free software; you may redistribute it and/or modify it	 *
* under the terms of the provided license as published by Lewis Media.		*
*																			 *
* This program is distributed in the hope that it is and will be useful,	  *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of			*
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.						*
*																			 *
* See the "license.txt" file for details of the Simple Machines license.	  *
* The latest version can always be found at http://www.simplemachines.org.	*
******************************************************************************/

/*	This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly.  The most interesting part of this file is the action array in
the smf_main() function.  It is formatted as so:

	'action-in-url' => array('Source-File.php', 'FunctionToCall'),

Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version = 'SMF 1.0.5';

// Get everything started up...
define('SMF', 1);
@set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start = microtime();

// Load the settings...
require_once(dirname(__FILE__) . '/forum/Settings.php');

// Just in case something happens to Settings.php, let's try to at least load an error screen.
if (!isset($sourcedir))
$sourcedir = dirname(__FILE__) . '/Sources';

// And important includes.
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');

// If $maintenance is set specifically to 2, then we're upgrading or something.
if ($maintenance == 2)
db_fatal_error();

// Connect to the MySQL database.
if (empty($db_persist))
$db_connection = @mysql_connect($db_server, $db_user, $db_passwd);
else
$db_connection = @mysql_pconnect($db_server, $db_user, $db_passwd);

// Show an error if the connection couldn't be made.
if (!$db_connection || !@mysql_select_db($db_name, $db_connection))
db_fatal_error();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Determine if this is should be using WAP, WAP2, or imode.
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));





// Register an error handler.
set_error_handler('error_handler');


// This makes it so headers can be sent!
if (empty($modSettings['enableCompressedOutput']))
ob_start();


// Start the session. (assuming it hasn't already been.)
loadSession();

// There's a strange bug in PHP 4.1.2 which makes $_SESSION not work unless you do this...
if (@version_compare(PHP_VERSION, '4.2.0') == -1)
$HTTP_SESSION_VARS['php_412_bugfix'] = true;

// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());

// Call obExit specially; we're coming from the main area;).
obExit(null, null, true);

// The main controlling function.
function smf_main()
{
global $modSettings, $settings, $user_info, $board, $topic, $maintenance, $sourcedir;

// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board's information.
loadBoard();

// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// Load the current user's permissions.
loadPermissions();

// Do some logging if this is not an attachment/avatar or the setting of an option.
if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach', 'jsoption')))
{
	// Log this user as online.
	writeLog();

	// Track forum statistics and hits...?
	if (!empty($modSettings['hitStats']))
		trackStats(array('hits' => '+'));
}

// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
	// You can only login.... otherwise, you're getting the "maintenance mode" display.
	if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'login2')
	{
		require_once($sourcedir . '/LogInOut.php');
		return 'Login2';
	}
	// Don't even try it, sonny.
	else
	{
		require_once($sourcedir . '/Subs-Auth.php');
		return 'InMaintenance';
	}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', '.xml'))))
{
	require_once($sourcedir . '/Subs-Auth.php');
	return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{
	// Action and board are both empty... BoardIndex!
	if (empty($board) && empty($topic))
	{
		require_once($sourcedir . '/BoardIndex.php');
		return 'BoardIndex';
	}
	// Topic is empty, and action is empty.... MessageIndex!
	elseif (empty($topic))
	{
		require_once($sourcedir . '/MessageIndex.php');
		return 'MessageIndex';
	}
	// Board is not empty... topic is not empty... action is empty.. Display!
	else
	{
		require_once($sourcedir . '/Display.php');
		return 'Display';
	}
}

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
	'activate' => array('Register.php', 'Activate'),
	'admin' => array('Admin.php', 'Admin'),
	'announce' => array('Post.php', 'AnnounceTopic'),
	'ban' => array('ManageMembers.php', 'Ban'),
	'boardrecount' => array('Admin.php', 'AdminBoardRecount'),
	'calendar' => array('Calendar.php', 'CalendarMain'),
	'collapse' => array('Subs-Boards.php', 'CollapseCategory'),
	'deletemsg' => array('RemoveTopic.php', 'DeleteMessage'),
	'detailedversion' => array('Admin.php', 'VersionDetail'),
	'display' => array('Display.php', 'Display'),
	'dlattach' => array('Display.php', 'Download'),
	'dumpdb' => array('DumpDatabase.php', 'DumpDatabase2'),
	'editagreement' => array('Admin.php', 'EditAgreement'),
	'editnews' => array('Admin.php', 'EditNews'),
	'editpoll' => array('Poll.php', 'EditPoll'),
	'editpoll2' => array('Poll.php', 'EditPoll2'),
	'findmember' => array('Subs-Auth.php', 'JSMembers'),
	'help' => array('Help.php', 'ShowHelp'),
	'helpadmin' => array('Help.php', 'ShowAdminHelp'),
	'im' => array('InstantMessage.php', 'MessageMain'),
	'jsoption' => array('Themes.php', 'SetJavaScript'),
	'lock' => array('LockTopic.php', 'LockTopic'),
	'lockVoting' => array('Poll.php', 'LockVoting'),
	'login' => array('LogInOut.php', 'Login'),
	'login2' => array('LogInOut.php', 'Login2'),
	'logout' => array('LogInOut.php', 'Logout'),
	'mailing' => array('ManageMembers.php', 'MailingList'),
	'maintain' => array('Admin.php', 'Maintenance'),
	'manageattachments' => array('ManageAttachments.php', 'ManageAttachments'),
	'manageboards' => array('ManageBoards.php', 'ManageBoards'),
	'markasread' => array('Subs-Boards.php', 'MarkRead'),
	'membergroups' => array('ManageMembers.php', 'ModifyMembergroups'),
	'mergetopics' => array('SplitTopics.php', 'MergeTopics'),
	'mlist' => array('Memberlist.php', 'Memberlist'),
	'modifycat' => array('ManageBoards.php', 'ModifyCat'),
	'modifykarma' => array('Karma.php', 'ModifyKarma'),
	'modifyModSettings' => array('ModSettings.php', 'ModifyModSettings'),
	'modifyModSettings2' => array('ModSettings.php', 'ModifyModSettings2'),
	'modlog' => array('Modlog.php', 'ViewModlog'),
	'modlog2' => array('Modlog.php', 'ViewModlog2'),
	'modsettings' => array('Admin.php', 'ModifySettings'),
	'modsettings2' => array('Admin.php', 'ModifySettings2'),
	'movetopic' => array('MoveTopic.php', 'MoveTopic'),
	'movetopic2' => array('MoveTopic.php', 'MoveTopic2'),
	'notify' => array('Notify.php', 'Notify'),
	'notifyboard' => array('Notify.php', 'BoardNotify'),
	'optimizetables' => array('Admin.php', 'OptimizeTables'),
	'packageget' => array('PackageGet.php', 'PackageGet'),
	'packages' => array('Packages.php', 'Packages'),
	'permissions' => array('ManagePermissions.php', 'ModifyPermissions'),
	'pgadd' => array('PackageGet.php', 'PackageServerAdd'),
	'pgremove' => array('PackageGet.php', 'PackageServerRemove'),
	'pgbrowse' => array('PackageGet.php', 'PackageGBrowse'),
	'pgdownload' => array('PackageGet.php', 'PackageDownload'),
	'pgupload' => array('PackageGet.php', 'PackageUpload'),
	'pm' => array('InstantMessage.php', 'MessageMain'),
	'post' => array('Post.php', 'Post'),
	'post2' => array('Post.php', 'Post2'),
	'printpage' => array('Printpage.php', 'PrintTopic'),
	'profile' => array('Profile.php', 'ModifyProfile'),
	'profile2' => array('Profile.php', 'ModifyProfile2'),
	'quotefast' => array('Post.php', 'QuoteFast'),
	'quickmod' => array('Subs-Boards.php', 'QuickModeration'),
	'quickmod2' => array('Subs-Boards.php', 'QuickModeration2'),
	'recent' => array('Recent.php', 'RecentPosts'),
	'regcenter' => array('Register.php', 'RegCenter'),
	'register' => array('Register.php', 'Register'),
	'register2' => array('Register.php', 'Register2'),
	'reminder' => array('Reminder.php', 'RemindMe'),
	'removetopic2' => array('RemoveTopic.php', 'RemoveTopic2'),
	'removeoldtopics2' => array('RemoveTopic.php', 'RemoveOldTopics2'),
	'removepoll' => array('Poll.php', 'RemovePoll'),
	'repairboards' => array('RepairBoards.php', 'RepairBoards'),
	'reporttm' => array('SendTopic.php', 'ReportToModerator'),
	'search' => array('Search.php', 'PlushSearch1'),
	'search2' => array('Search.php', 'PlushSearch2'),
	'sendtopic' => array('SendTopic.php', 'SendTopic'),
	'setcensor' => array('Admin.php', 'SetCensor'),
	'setcensor2' => array('Admin.php', 'SetCensor2'),
	'setreserve' => array('ManageMembers.php', 'SetReserve'),
	'setreserve2' => array('ManageMembers.php', 'SetReserve2'),
	'smileys' => array('ManageSmileys.php', 'ManageSmileys'),
	'spellcheck' => array('Subs-Post.php', 'SpellCheck'),
	'splittopics' => array('SplitTopics.php', 'SplitTopics'),
	'stats' => array('Stats.php', 'DisplayStats'),
	'sticky' => array('LockTopic.php', 'Sticky'),
	'theme' => array('Themes.php', 'ThemesMain'),
	'trackip' => array('ManageMembers.php', 'trackIP'),
	'about:mozilla' => array('Karma.php', 'BookOfUnknown'),
	'about:unknown' => array('Karma.php', 'BookOfUnknown'),
	'unread' => array('Recent.php', 'UnreadTopics'),
	'unreadreplies' => array('Recent.php', 'UnreadTopics'),
	'viewErrorLog' => array('Errors.php', 'ViewErrorLog'),
	'viewmembers' => array('ManageMembers.php', 'ViewMembers'),
	'viewprofile' => array('Profile.php', 'ModifyProfile'),
	'vote' => array('Poll.php', 'Vote'),
	'viewquery' => array('ViewQuery.php', 'ViewQuery'),
	'who' => array('Who.php', 'Who'),
	'.xml' => array('News.php', 'ShowXmlFeed'),
);

// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
	// Catch the action with the theme?
	if (!empty($settings['catch_action']))
	{
		require_once($sourcedir . '/Themes.php');
		return 'WrapAction';
	}

	// Fall through to the board index then...
	require_once($sourcedir . '/BoardIndex.php');
	return 'BoardIndex';
}

// Otherwise, it was set - so let's go to that action.
require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}
?></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) . '">' . 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; ?>" 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'); ?>

 

 

Make sure you have a forum.php in your english lang files if not and this to iit:

 

<?php
/*
 $Id: forum.php,v 1.8 2003/05/19 20:17:50 hpdl Exp $

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

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'Forum');
define('HEADING_TITLE', 'Forum');

?>

 

If this doesn't work give me the link to the forum contribution you are using so I can look it over.

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Link to comment
Share on other sites

Yea I got the code save on one of my file editors. Ok I have rewrote this code and it worked on mine. If this doesn't work we are going to need to look at that sub file.

 

Copy and past this over forum.php file:

 

<?php
/*
 $Id: forum.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_FORUM);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FORUM));
?>
<!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 . ' ', 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
/******************************************************************************
* index.php																   *
*******************************************************************************
* SMF: Simple Machines Forum												  *
* Open-Source Project Inspired by Zef Hemel ([email protected])				*
* =========================================================================== *
* Software Version:		   SMF 1.0.5									   *
* Software by:				Simple Machines (http://www.simplemachines.org) *
* Copyright 2001-2005 by:	 Lewis Media (http://www.lewismedia.com)		 *
* Support, News, Updates at:  http://www.simplemachines.org				   *
*******************************************************************************
* This program is free software; you may redistribute it and/or modify it	 *
* under the terms of the provided license as published by Lewis Media.		*
*																			 *
* This program is distributed in the hope that it is and will be useful,	  *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of			*
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.						*
*																			 *
* See the "license.txt" file for details of the Simple Machines license.	  *
* The latest version can always be found at http://www.simplemachines.org.	*
******************************************************************************/

/*	This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly.  The most interesting part of this file is the action array in
the smf_main() function.  It is formatted as so:

	'action-in-url' => array('Source-File.php', 'FunctionToCall'),

Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version = 'SMF 1.0.5';

// Get everything started up...
define('SMF', 1);
@set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start = microtime();

// Load the settings...
require_once(dirname(__FILE__) . '/forum/Settings.php');

// Just in case something happens to Settings.php, let's try to at least load an error screen.
if (!isset($sourcedir))
$sourcedir = dirname(__FILE__) . '/Sources';

// And important includes.
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');

// If $maintenance is set specifically to 2, then we're upgrading or something.
if ($maintenance == 2)
db_fatal_error();

// Connect to the MySQL database.
if (empty($db_persist))
$db_connection = @mysql_connect($db_server, $db_user, $db_passwd);
else
$db_connection = @mysql_pconnect($db_server, $db_user, $db_passwd);

// Show an error if the connection couldn't be made.
if (!$db_connection || !@mysql_select_db($db_name, $db_connection))
db_fatal_error();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Determine if this is should be using WAP, WAP2, or imode.
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));
// Register an error handler.
set_error_handler('error_handler');
// This makes it so headers can be sent!
if (empty($modSettings['enableCompressedOutput']))
ob_start();
// Start the session. (assuming it hasn't already been.)
loadSession();

// There's a strange bug in PHP 4.1.2 which makes $_SESSION not work unless you do this...
if (@version_compare(PHP_VERSION, '4.2.0') == -1)
$HTTP_SESSION_VARS['php_412_bugfix'] = true;

// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());

// Call obExit specially; we're coming from the main area;).
obExit(null, null, true);

// The main controlling function.
function smf_main()
{
global $modSettings, $settings, $user_info, $board, $topic, $maintenance, $sourcedir;

// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board's information.
loadBoard();

// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// Load the current user's permissions.
loadPermissions();

// Do some logging if this is not an attachment/avatar or the setting of an option.
if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach', 'jsoption')))
{
	// Log this user as online.
	writeLog();

	// Track forum statistics and hits...?
	if (!empty($modSettings['hitStats']))
		trackStats(array('hits' => '+'));
}

// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
	// You can only login.... otherwise, you're getting the "maintenance mode" display.
	if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'login2')
	{
		require_once($sourcedir . '/LogInOut.php');
		return 'Login2';
	}
	// Don't even try it, sonny.
	else
	{
		require_once($sourcedir . '/Subs-Auth.php');
		return 'InMaintenance';
	}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', '.xml'))))
{
	require_once($sourcedir . '/Subs-Auth.php');
	return 'KickGuest';
}
elseif (empty($_REQUEST['action']))
{
	// Action and board are both empty... BoardIndex!
	if (empty($board) && empty($topic))
	{
		require_once($sourcedir . '/BoardIndex.php');
		return 'BoardIndex';
	}
	// Topic is empty, and action is empty.... MessageIndex!
	elseif (empty($topic))
	{
		require_once($sourcedir . '/MessageIndex.php');
		return 'MessageIndex';
	}
	// Board is not empty... topic is not empty... action is empty.. Display!
	else
	{
		require_once($sourcedir . '/Display.php');
		return 'Display';
	}
}

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
	'activate' => array('Register.php', 'Activate'),
	'admin' => array('Admin.php', 'Admin'),
	'announce' => array('Post.php', 'AnnounceTopic'),
	'ban' => array('ManageMembers.php', 'Ban'),
	'boardrecount' => array('Admin.php', 'AdminBoardRecount'),
	'calendar' => array('Calendar.php', 'CalendarMain'),
	'collapse' => array('Subs-Boards.php', 'CollapseCategory'),
	'deletemsg' => array('RemoveTopic.php', 'DeleteMessage'),
	'detailedversion' => array('Admin.php', 'VersionDetail'),
	'display' => array('Display.php', 'Display'),
	'dlattach' => array('Display.php', 'Download'),
	'dumpdb' => array('DumpDatabase.php', 'DumpDatabase2'),
	'editagreement' => array('Admin.php', 'EditAgreement'),
	'editnews' => array('Admin.php', 'EditNews'),
	'editpoll' => array('Poll.php', 'EditPoll'),
	'editpoll2' => array('Poll.php', 'EditPoll2'),
	'findmember' => array('Subs-Auth.php', 'JSMembers'),
	'help' => array('Help.php', 'ShowHelp'),
	'helpadmin' => array('Help.php', 'ShowAdminHelp'),
	'im' => array('InstantMessage.php', 'MessageMain'),
	'jsoption' => array('Themes.php', 'SetJavaScript'),
	'lock' => array('LockTopic.php', 'LockTopic'),
	'lockVoting' => array('Poll.php', 'LockVoting'),
	'login' => array('LogInOut.php', 'Login'),
	'login2' => array('LogInOut.php', 'Login2'),
	'logout' => array('LogInOut.php', 'Logout'),
	'mailing' => array('ManageMembers.php', 'MailingList'),
	'maintain' => array('Admin.php', 'Maintenance'),
	'manageattachments' => array('ManageAttachments.php', 'ManageAttachments'),
	'manageboards' => array('ManageBoards.php', 'ManageBoards'),
	'markasread' => array('Subs-Boards.php', 'MarkRead'),
	'membergroups' => array('ManageMembers.php', 'ModifyMembergroups'),
	'mergetopics' => array('SplitTopics.php', 'MergeTopics'),
	'mlist' => array('Memberlist.php', 'Memberlist'),
	'modifycat' => array('ManageBoards.php', 'ModifyCat'),
	'modifykarma' => array('Karma.php', 'ModifyKarma'),
	'modifyModSettings' => array('ModSettings.php', 'ModifyModSettings'),
	'modifyModSettings2' => array('ModSettings.php', 'ModifyModSettings2'),
	'modlog' => array('Modlog.php', 'ViewModlog'),
	'modlog2' => array('Modlog.php', 'ViewModlog2'),
	'modsettings' => array('Admin.php', 'ModifySettings'),
	'modsettings2' => array('Admin.php', 'ModifySettings2'),
	'movetopic' => array('MoveTopic.php', 'MoveTopic'),
	'movetopic2' => array('MoveTopic.php', 'MoveTopic2'),
	'notify' => array('Notify.php', 'Notify'),
	'notifyboard' => array('Notify.php', 'BoardNotify'),
	'optimizetables' => array('Admin.php', 'OptimizeTables'),
	'packageget' => array('PackageGet.php', 'PackageGet'),
	'packages' => array('Packages.php', 'Packages'),
	'permissions' => array('ManagePermissions.php', 'ModifyPermissions'),
	'pgadd' => array('PackageGet.php', 'PackageServerAdd'),
	'pgremove' => array('PackageGet.php', 'PackageServerRemove'),
	'pgbrowse' => array('PackageGet.php', 'PackageGBrowse'),
	'pgdownload' => array('PackageGet.php', 'PackageDownload'),
	'pgupload' => array('PackageGet.php', 'PackageUpload'),
	'pm' => array('InstantMessage.php', 'MessageMain'),
	'post' => array('Post.php', 'Post'),
	'post2' => array('Post.php', 'Post2'),
	'printpage' => array('Printpage.php', 'PrintTopic'),
	'profile' => array('Profile.php', 'ModifyProfile'),
	'profile2' => array('Profile.php', 'ModifyProfile2'),
	'quotefast' => array('Post.php', 'QuoteFast'),
	'quickmod' => array('Subs-Boards.php', 'QuickModeration'),
	'quickmod2' => array('Subs-Boards.php', 'QuickModeration2'),
	'recent' => array('Recent.php', 'RecentPosts'),
	'regcenter' => array('Register.php', 'RegCenter'),
	'register' => array('Register.php', 'Register'),
	'register2' => array('Register.php', 'Register2'),
	'reminder' => array('Reminder.php', 'RemindMe'),
	'removetopic2' => array('RemoveTopic.php', 'RemoveTopic2'),
	'removeoldtopics2' => array('RemoveTopic.php', 'RemoveOldTopics2'),
	'removepoll' => array('Poll.php', 'RemovePoll'),
	'repairboards' => array('RepairBoards.php', 'RepairBoards'),
	'reporttm' => array('SendTopic.php', 'ReportToModerator'),
	'search' => array('Search.php', 'PlushSearch1'),
	'search2' => array('Search.php', 'PlushSearch2'),
	'sendtopic' => array('SendTopic.php', 'SendTopic'),
	'setcensor' => array('Admin.php', 'SetCensor'),
	'setcensor2' => array('Admin.php', 'SetCensor2'),
	'setreserve' => array('ManageMembers.php', 'SetReserve'),
	'setreserve2' => array('ManageMembers.php', 'SetReserve2'),
	'smileys' => array('ManageSmileys.php', 'ManageSmileys'),
	'spellcheck' => array('Subs-Post.php', 'SpellCheck'),
	'splittopics' => array('SplitTopics.php', 'SplitTopics'),
	'stats' => array('Stats.php', 'DisplayStats'),
	'sticky' => array('LockTopic.php', 'Sticky'),
	'theme' => array('Themes.php', 'ThemesMain'),
	'trackip' => array('ManageMembers.php', 'trackIP'),
	'about:mozilla' => array('Karma.php', 'BookOfUnknown'),
	'about:unknown' => array('Karma.php', 'BookOfUnknown'),
	'unread' => array('Recent.php', 'UnreadTopics'),
	'unreadreplies' => array('Recent.php', 'UnreadTopics'),
	'viewErrorLog' => array('Errors.php', 'ViewErrorLog'),
	'viewmembers' => array('ManageMembers.php', 'ViewMembers'),
	'viewprofile' => array('Profile.php', 'ModifyProfile'),
	'vote' => array('Poll.php', 'Vote'),
	'viewquery' => array('ViewQuery.php', 'ViewQuery'),
	'who' => array('Who.php', 'Who'),
	'.xml' => array('News.php', 'ShowXmlFeed'),
);

// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
	// Catch the action with the theme?
	if (!empty($settings['catch_action']))
	{
		require_once($sourcedir . '/Themes.php');
		return 'WrapAction';
	}

	// Fall through to the board index then...
	require_once($sourcedir . '/BoardIndex.php');
	return 'BoardIndex';
}

// Otherwise, it was set - so let's go to that action.
require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}
?></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) . '">' . 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; ?>" 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'); ?>

Make sure you have a forum.php in your english lang files if not and this to iit:

 

<?php
/*
 $Id: forum.php,v 1.8 2003/05/19 20:17:50 hpdl Exp $

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

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'Forum');
define('HEADING_TITLE', 'Forum');

?>

 

If this doesn't work give me the link to the forum contribution you are using so I can look it over.

 

 

Now I got this error:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/t/e/mtechamatest/html/catalog/forum.php:20) in /home/content/m/t/e/mtechamatest/html/catalog/forum/Sources/Subs.php on line 1760

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/t/e/mtechamatest/html/catalog/forum.php:20) in /home/content/m/t/e/mtechamatest/html/catalog/forum/Sources/Subs.php on line 1761

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

Sorry I guess I didn't edit it fast enough. Copy it again and paste over the forum.php

 

Also give me the link to the contribution you are using for this forum.

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Link to comment
Share on other sites

Still got that error:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/t/e/mtechamatest/html/catalog/forum.php:20) in /home/content/m/t/e/mtechamatest/html/catalog/forum/Sources/Subs.php on line 1760

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/t/e/mtechamatest/html/catalog/forum.php:20) in /home/content/m/t/e/mtechamatest/html/catalog/forum/Sources/Subs.php on line 1761

 

this is the contribution that I trying to use:

 

http://www.oscommerce.com/community/contri...earch,SMF+Forum

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

You have a SMF Forum installed already correct?

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Link to comment
Share on other sites

Ok give me a few, I am installing all this on my test server so I know exactly how this contribution works. The forum.php file worked on my end. It didn't throw a header error. So something in this contribution is throwing. I think I might now but need to install this on my end so bare with me.

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Link to comment
Share on other sites

Ok give me a few, I am installing all this on my test server so I know exactly how this contribution works. The forum.php file worked on my end. It didn't throw a header error. So something in this contribution is throwing. I think I might now but need to install this on my end so bare with me.

 

 

Ok No Problem

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

From the contribution try reinstalling Subs.php. Open the Sources folder and add it, don't just upload the entire folder. I just installed it with no problems. So I am thinking something didn't get uploaded correctly from the contribution.

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Link to comment
Share on other sites

Here is the screen shot from mine. Like I said double check where you uploaded the files and make sure they uploaded correctly. I think that is probably where your problem lies.

 

forum.GIF

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...