Joomlatwork
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 20, 2013, 05:44:16 PM

Login with username, password and session length
Search:     Advanced search
16420 Posts in 5398 Topics by 11029 Members
Latest Member: reo734m9j
* Home Help Search Login Register
+  Joomlatwork
|-+  Joomla SEF Patch
| |-+  Patch Users
| | |-+  Smf and joomla patch
« previous next »
Pages: [1] 2 Print
Author Topic: Smf and joomla patch  (Read 16182 times)
jaydrea05
Newbie
*
Posts: 8


View Profile Email
« on: September 23, 2006, 09:52:04 PM »

 Huh ???Does anyone know how to make Smf intergration by joomla hacks be patched with the index file of the sef index file?? most of us run forums and i am surprised after a whole month no-solution had been given or could anyone post an index.php file which will contain to code to be patched?
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #1 on: September 27, 2006, 06:31:25 PM »

There is a patch for the paid version.

Within the end of next week I will place here a patch for the free 1.011 version.

Regards,

Richard
Logged
jaydrea05
Newbie
*
Posts: 8


View Profile Email
« Reply #2 on: October 01, 2006, 10:34:18 PM »

Thanks a lot, you are doing such an excellent job, i everything was working fine for me untill the last joomla upgrade...1.0.1.1........almost everything started to go wrong with my joomla components...it affected almost everything i do including the 5 community-content websites i run....will be waiting for next release....thanks
Logged
lupe123
Newbie
*
Posts: 2


View Profile
« Reply #3 on: December 14, 2006, 06:09:46 AM »

I have a question I think should be in this.

I installed the patch and just love it. But I run smf and I'm between a rock and a hard place. It seems none of the joomlahacks mods are working and keep on giving me this error.

Fatal error: Undefined class name 'jsmffrontpage' in /home/lupe123/public_html/modules/mod_smf_recenttopics.php on line 64

checking on the files in the mods it's the same line statement, just different line numbers for each mod

$jsmf =& jsmfFrontend::singleton();

is there a solution to this as I love both mods and this mod is the best

I am using the free version.joomla 1.11 and smf plus joomlahacks mods.
Logged
lupe123
Newbie
*
Posts: 2


View Profile
« Reply #4 on: December 14, 2006, 09:31:56 AM »

I have decided to uninstall this wonderful program for the time being until a solution can be found,
however I cannot get the redo files for joomla 1.11 only the others, is there another link? I get this error when i click on 1.0.11 redo file

The page you are trying to access does not exist.
Please select a page from the main menu.
« Last Edit: December 14, 2006, 09:39:00 AM by lupe123 » Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #5 on: December 14, 2006, 11:08:55 AM »

Will check this out tonight.

Regards,

Richard
Logged
zuny
Newbie
*
Posts: 3


View Profile
« Reply #6 on: January 03, 2007, 10:45:12 AM »

Hi, where do I find the Patch working with the SMF Bridge Component?

Has it already been released?

Thanks, you are doing a great job!

Zuny
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #7 on: January 03, 2007, 11:45:12 AM »

For which Joomla version? For release 1.012 I will do this proberly this weekend.

Regards,

Richard
Logged
zuny
Newbie
*
Posts: 3


View Profile
« Reply #8 on: January 03, 2007, 12:36:38 PM »

Actually I need it for Joomla Version 1.011 but 1.012 will be needed soon, too  Smiley

Or is it possible just to install Jommla + SMF + Bridge first and apply the SEF Patch after that?

Thanks again

Zuny
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #9 on: January 03, 2007, 02:03:12 PM »

Only the index.php file must be patched, so yes this can be done after it?

After you have installed the bridge can you sent me over the index.php file?

Regards,

Richard
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #10 on: January 08, 2007, 10:26:14 PM »

See the code for the SMF patch release 1.012 (this is the index.php file which should be replaced if you are using the SMF bridge):

Code:
<?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');

// checks for configuration file, if none found loads installation page
if (!file_exists'configuration.php' ) || filesize'configuration.php' ) < 10) {
$self rtrimdirname$_SERVER['PHP_SELF'] ), '/\\' ) . '/';
header("Location: http://" $_SERVER['HTTP_HOST'] . $self "installation/index.php" );
exit();
}

require( 
'globals.php' );
require_once( 
'configuration.php' );

// SSL check - $http_host returns <live site url>:<port number if it is 443>
$http_host explode(':'$_SERVER['HTTP_HOST'] );
if( (!empty( 
$_SERVER['HTTPS'] ) && strtolower$_SERVER['HTTPS'] ) != 'off' || isset( $http_host[1] ) && $http_host[1] == 443) && substr$mosConfig_live_site0) != 'https://' ) {
$mosConfig_live_site 'https://'.substr$mosConfig_live_site);
}

require_once( 
'includes/joomla.php' );

//Installation sub folder check, removed for work with SVN
if (file_exists'installation/index.php' ) && $_VERSION->SVN == 0) {
define'_INSTALL_CHECK');
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);
}


// retrieve some expected url (or form) arguments
$option strvalstrtolowermosGetParam$_REQUEST'option' ) ) );
$Itemid intvalmosGetParam$_REQUEST'Itemid'null ) );

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$query0);
}
$menu = new mosMenu$database );
if ($database->loadObject$menu )) {
$Itemid $menu->id;
}
$link $menu->link;
if (($pos strpos$link'?' )) !== false) {
$link substr$link$pos+). '&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
require_once( $mosConfig_absolute_path .'/includes/sefpatch.php' );
$mainframe = new mosSefPatch$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 === ) {
$id  intvalmosGetParam$_REQUEST'id') );
$Itemid $mainframe->getItemid$id );
}

/** do we have a valid Itemid yet?? */
if ( $Itemid === ) {
/** 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$query0);
$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' );

// frontend login & logout controls
$return  strvalmosGetParam$_REQUEST'return'NULL ) );
//JOOMLAHACKS.COM
$message  intvalmosGetParam$_POST'message') );
$jsmf->restorePostMessage($savedVars);

if (
$option == 'login') {

//JOOMLAHACKS.COM
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
$_SESSION['_FROM_MOS'] = TRUE;
$_SESSION['_RETURN'] = $return;
$jsmf->doLogin(true);



// JS Popup message
if ( $message ) {
?>

<script language="javascript" type="text/javascript">
<!--//
alert( "<?php echo addslashes_LOGIN_SUCCESS ); ?>" );
//-->
</script>
<?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' ) );
}
}

} else if (
$option == 'logout') {


//JOOMLAHACKS.COM
//$mainframe->logout();
mosRedirect($mosConfig_live_site.'/'.$jsmfConfig->url.'action=logout;sesc='.$context['session_id']);



// JS Popup message
if ( $message ) {
?>

<script language="javascript" type="text/javascript">
<!--//
alert( "<?php echo addslashes_LOGOUT_SUCCESS ); ?>" );
//-->
</script>
<?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' );

ob_start();

if (
$path $mainframe->getPath'front' )) {
$task  strvalmosGetParam$_REQUEST'task''' ) );
$ret  mosMenuCheck$Itemid$option$task$gid );

if ($ret) {
require_once( $path );
} else {
mosNotAuth();
}
} else {
header'HTTP/1.0 404 Not Found' );
echo _NOT_EXIST;
}

$_MOS_OPTION['buffer'] = ob_get_contents();

ob_end_clean();

initGzip();

//JOOMLAHACKS.COM


// display the offline alert if an admin is logged in
if (defined'_ADMIN_OFFLINE' )) {
include( $mosConfig_absolute_path .'/offlinebar.php' );
}

// loads template file
if ( !file_exists$mosConfig_absolute_path .'/templates/'$cur_template .'/index.php' ) ) {
echo _TEMPLATE_WARN $cur_template;
} else {
require_once( $mosConfig_absolute_path .'/templates/'$cur_template .'/index.php' );

}

// displays queries performed for page
if ($mosConfig_debug) {
echo $database->_ticker ' queries executed';
echo '<pre>';
 
foreach ($database->_log as $k=>$sql) {
 
echo $k+"\n" $sql '<hr />';
}
echo '</pre>';
}

doGzip();
?>


Richard
Logged
zuny
Newbie
*
Posts: 3


View Profile
« Reply #11 on: January 15, 2007, 10:37:31 AM »

Thanks! Do I get it right that I have to copy all the files from the 1.12 Patch an additionally have to replace the index.php with the one provided above? Then it should work with the already installes bridge, right?

Zuny
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #12 on: January 15, 2007, 11:16:50 AM »

Thats correct.

Richard
Logged
GoBordeaux
Newbie
*
Posts: 2


View Profile
« Reply #13 on: February 09, 2007, 05:10:30 PM »

Sorry to bother you, but i really can't make it work.
Here is what i'm using :

Your Joomla version is: 1.0.12
Your SMF version is: 1.1.1
Your Joomla-SMF version: 2.0.2
and SEF Patch Extended 2.0 (paid version)

There's something I must do wrong.

JSMF is installed (and working)
I install SEF patch.
And replace Joomla index.php (in site - ie joomla -  root folder - is that correct ?)

I get this error :
Warning: require_once(/home/gobordea/www/includes/sefpatch.php) [function.require-once]: failed to open stream: No such file or directory in /home/gobordea/www/index.php on line 118

This is the case : no sefpatch.php file in the includes folder

What do I miss ?


Thanks,

Eric

Edit :
Oops Sorry, i Just realise this index.php was not for the paid version.
I did not activate Joomla SEO.
Now i'll deal with my .htaccess file
« Last Edit: February 09, 2007, 05:34:22 PM by GoBordeaux » Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #14 on: February 09, 2007, 08:52:37 PM »

Sorry, but what is your question? Is it working or not? For the free version?

Regards,

Richard
Logged
Pages: [1] 2 Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!