Can someone take a look at my website www.varacers.com and then click on the forums. I am using SMF 1.1.1 and the 2.0 bridge, when you view the source code of the forum you can see 2 different head sections. It is showing one from the site, and then another from SMF forum. How do I fix this? What problems can it create?
Can someone take a look at my website www.varacers.com and then click on the forums. I am using SMF 1.1.1 and the 2.0 bridge, when you view the source code of the forum you can see 2 different head sections. It is showing one from the site, and then another from SMF forum. How do I fix this? What problems can it create?
Thanks!
Did you follow the install instructions and "patch" the proper files using the admin config tools in Joomla?
Yea still broke - I viewed source on wrong browser window. Attach your "patched" index.php file so we can see the update. The patch also creates a backup of your index.php which allows it to unpatch the file but keep in mind if you did Joomla! updates since your patched...this "patched" file might have been overwritten by the update.
<? ini_set("memory_limit", "16M"); ?> <?php /** * @version $Id: index.php 6022 2006-12-18 22:30:07Z friesengeist $ * @package Joomla * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */
// Set flag that this is a parent file define( '_VALID_MOS', 1 );
//Installation sub folder check, removed for work with SVN if (file_exists( 'installation/index.php' ) && $_VERSION->SVN == 0) { define( '_INSTALL_CHECK', 1 ); include ( $mosConfig_absolute_path .'/offline.php'); exit(); }
// displays offline/maintanance page or bar if ($mosConfig_offline == 1) { require( $mosConfig_absolute_path .'/offline.php' ); }
// load system bot group $_MAMBOTS->loadBotGroup( 'system' );
// trigger the onStart events $_MAMBOTS->trigger( 'onStart' );
if (file_exists( $mosConfig_absolute_path .'/components/com_sef/sef.php' )) { require_once( $mosConfig_absolute_path .'/components/com_sef/sef.php' ); } else { require_once( $mosConfig_absolute_path .'/includes/sef.php' ); } require_once( $mosConfig_absolute_path .'/includes/frontend.php' ); //JOOMLAHACKS.COM : require SMF's SSI and save/restore globals that it cleans defined( 'JPATH_BASE' ) or define('JPATH_BASE', $mosConfig_absolute_path); if (file_exists(JPATH_BASE.'/components/com_smf/smf.class.php')) { global $context; require_once(JPATH_BASE.'/components/com_smf/smf.class.php'); $jsmfConfig = jsmfFrontend::loadParams(); jsmfFrontend::saveVars($savedVars); require_once($jsmfConfig->smf_path."/SSI.php"); $jsmf =& jsmfFrontend::singleton(); $jsmf->restoreVars($savedVars); }
if ($option == '') { if ($Itemid) { $query = "SELECT id, link" . "\n FROM #__menu" . "\n WHERE menutype = 'mainmenu'" . "\n AND id = " . (int) $Itemid . "\n AND published = 1" ; $database->setQuery( $query ); } else { $query = "SELECT id, link" . "\n FROM #__menu" . "\n WHERE menutype = 'mainmenu'" . "\n AND published = 1" . "\n ORDER BY parent, ordering" ; $database->setQuery( $query, 0, 1 ); } $menu = new mosMenu( $database ); if ($database->loadObject( $menu )) { $Itemid = $menu->id; } $link = $menu->link; if (($pos = strpos( $link, '?' )) !== false) { $link = substr( $link, $pos+1 ). '&Itemid='.$Itemid; } parse_str( $link, $temp ); /** this is a patch, need to rework when globals are handled better */ foreach ($temp as $k=>$v) { $GLOBALS[$k] = $v; $_REQUEST[$k] = $v; if ($k == 'option') { $option = $v; } } } if ( !$Itemid ) { // when no Itemid give a default value $Itemid = 99999999; }
// mainframe is an API workhorse, lots of 'core' interaction routines $mainframe = new mosMainFrame( $database, $option, '.' ); $mainframe->initSession();
// trigger the onAfterStart events $_MAMBOTS->trigger( 'onAfterStart' );
// checking if we can find the Itemid thru the content if ( $option == 'com_content' && $Itemid === 0 ) { $id = intval( mosGetParam( $_REQUEST, 'id', 0 ) ); $Itemid = $mainframe->getItemid( $id ); }
/** do we have a valid Itemid yet?? */ if ( $Itemid === 0 ) { /** Nope, just use the homepage then. */ $query = "SELECT id" . "\n FROM #__menu" . "\n WHERE menutype = 'mainmenu'" . "\n AND published = 1" . "\n ORDER BY parent, ordering" ; $database->setQuery( $query, 0, 1 ); $Itemid = $database->loadResult(); }
// patch to lessen the impact on templates if ($option == 'search') { $option = 'com_search'; }
// loads english language file by default if ($mosConfig_lang=='') { $mosConfig_lang = 'english'; } include_once( $mosConfig_absolute_path .'/language/' . $mosConfig_lang . '.php' );
if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) { // checks for the presence of a return url // and ensures that this url is not the registration or login pages // If a sessioncookie exists, redirect to the given page. Otherwise, take an extra round for a cookiecheck if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) { mosRedirect( $return ); } else { mosRedirect( $mosConfig_live_site .'/index.php?option=cookiecheck&return=' . urlencode( $return ) ); } } else { // If a sessioncookie exists, redirect to the start page. Otherwise, take an extra round for a cookiecheck if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) { mosRedirect( $mosConfig_live_site .'/index.php' ); } else { mosRedirect( $mosConfig_live_site .'/index.php?option=cookiecheck&return=' . urlencode( $mosConfig_live_site .'/index.php' ) ); } }
if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) { // checks for the presence of a return url // and ensures that this url is not the registration or logout pages mosRedirect( $return ); } else { mosRedirect( $mosConfig_live_site.'/index.php' ); } } else if ($option == 'cookiecheck') { // No cookie was set upon login. If it is set now, redirect to the given page. Otherwise, show error message. if (isset( $_COOKIE[mosMainFrame::sessionCookieName()] )) { mosRedirect( $return ); } else { mosErrorAlert( _ALERT_ENABLED ); } }
/** get the information about the current user from the sessions table */ $my = $mainframe->getUser();
// detect first visit $mainframe->detect();
// set for overlib check $mainframe->set( 'loadOverlib', false );
$gid = intval( $my->gid );
// gets template for page $cur_template = $mainframe->getTemplate(); /** temp fix - this feature is currently disabled */
/** @global A places to store information from processing of the component */ $_MOS_OPTION = array();
// precapture the output of the component require_once( $mosConfig_absolute_path . '/editor/editor.php' );
Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved. Terms of Use