Home arrow Forum Latest posts of: Scott
  Welcome, Guest. Please login or register.
Did you miss your activation email?
January 07, 2009, 11:17:38 PM
Home New Posts Search Calendar


Login with username, password and session length
  Show Posts
Pages: [1] 2
1  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: May 09, 2006, 08:19:46 AM
Hey Wolverine any new ideas or patches for my timeout issue?

Thanks
2  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: May 02, 2006, 02:12:45 PM
Hey Wolverine,

Had a look around the SMF forums like you said and nothing that I found made any difference. Most of what I found was changing the theme which did nothing.

Running out of choices here. Any other ideas?
3  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 28, 2006, 12:46:47 PM
"Enable local storage of cookies" is not checked in the smf config.

I will give the smf site a try.
4  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 28, 2006, 08:38:17 AM
Hey there Wolverine,

I stayed away for a bit in hopes there would be a fix for my problem. Any luck with the timeout issue? Here is my info of what I am using and the problem.

MAMBO: 4.5.3h
Community Builder 1.0 RC2
SMF 1.1 RC2
com_joomla_smf_forum_1_1_03_beta.zip
Joomla-SMF_cb_plugin_1_0_1.zip

Once I am logged in and I am in the forum if I try and post something I get an error. "Your session timed out while posting. Please try to re-submit your message. No subject was filled in. The message body was left empty."

It does redirect me to the forum but I can live with that. It is this timeout problem that is driving me crazy. I tried to use the mod_joomla_smf_login_1_4_1.zip module but it still does the same thing. Any new suggestions?

Thanks
5  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 19, 2006, 03:15:50 PM
Ok to be specific.

I updated my Mambo version to 4.5.3h from 4.5.3 to see if that helped "not just my index file"!
Sorry I though you were following this thread so I did not want to keep reposting the same stuff. But if thats what you want me to do I will do that.

MAMBO: 4.5.3h
Community Builder 1.0 RC2
SMF 1.1 RC2
com_joomla_smf_forum_1_1_03_beta.zip
Joomla-SMF_cb_plugin_1_0_1.zip


If I login it automatically redirects me to the forum. Which I set both the redirect options in the config to 0. So not sure why it is doing that.

Then once I am logged in and I am in the forum if I try and post something I get an error. "Your session timed out while posting. Please try to re-submit your message. No subject was filled in. The message body was left empty."

If I go directly to the forum http://www.live4soccer.com/smf/index.php and login the forum works great. Just not in combination with the CB login module.

And I did go through the recommended SMF & server settings for the forum itself but no difference?

I hope that explains where I am at now.
6  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 19, 2006, 02:02:55 PM
Ok I have updated my index.php to reflect what you have. Installed that beta version you sent me. Everything is still the same, nothing has changed?

 Huh
7  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 19, 2006, 12:27:17 PM
Hey thats because my mambo version is 4.5.3 not 4.5.3h
8  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 19, 2006, 11:39:04 AM
Error= Failed: Code to be patched not found in file: /home/httpd/vhosts/live4soccer.com/httpdocs/index.php

index.php =
<?php
/**
* @version $Id: index.php,v 1.6 2005/11/21 11:57:20 csouza Exp $
* @package Mambo
* @copyright (C) 2000 - 2005 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
*/

// fix to address the globals overwrite problem in php versions < 4.4.1
$protect_globals = array('_REQUEST', '_GET', '_POST', '_COOKIE', '_FILES', '_SERVER', '_ENV', 'GLOBALS', '_SESSION');
foreach ($protect_globals as $global) {
    if ( in_array($global , array_keys($_REQUEST)) ||
         in_array($global , array_keys($_GET))     ||
         in_array($global , array_keys($_POST))    ||
         in_array($global , array_keys($_COOKIE))  ||
         in_array($global , array_keys($_FILES))) {
        die("Invalid Request.");
    }
}

/** Set flag that this is a parent file  */
define( '_VALID_MOS', 1 );

// checks for configuration file, if none found loads installation page
if ( !file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10 ) {
   header( 'Location: installation/index.php' );
   exit();
}

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

// displays offline page
if ( $mosConfig_offline == 1 ){
   include( 'offline.php' );
   exit();
}

require_once( 'includes/mambo.php' );
if (file_exists( 'components/com_sef/sef.php' )) {
   require_once( 'components/com_sef/sef.php' );
} else {
   require_once( 'includes/sef.php' );
}
require_once( 'includes/frontend.php' );

/*
Installation sub folder check, removed for work with CVS*/
if (file_exists( 'installation/index.php' )) {
   include ('offline.php');
   exit();
}
/**/
/** retrieve some expected url (or form) arguments */
$option = trim( strtolower( mosGetParam( $_REQUEST, 'option' ) ) );
$Itemid = intval( mosGetParam( $_REQUEST, 'Itemid', null ) );
$database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix );
$database->debug( $mosConfig_debug );
$acl = new gacl_api();

if ($option == '') {
   if ($Itemid) {
      $query = "SELECT id, link"
      . "\n FROM #__menu"
      . "\n WHERE menutype='mainmenu'"
      . "\n AND id = '$Itemid'"
      . "\n AND published = '1'"
      ;
      $database->setQuery( $query );
   } else {
      $query = "SELECT id, link"
      . "\n FROM #__menu"
      . "\n WHERE menutype='mainmenu' AND published='1'"
      . "\n ORDER BY parent, ordering LIMIT 1"
      ;
      $database->setQuery( $query );
   }
   $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;
      }
   }
}

/** mainframe is an API workhorse, lots of 'core' interaction routines */
$mainframe = new mosMainFrame( $database, $option, '.' );
$mainframe->initSession();

// 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"
   . "\n LIMIT 1"
   ;
   $database->setQuery( $query );
   $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 ( 'language/'.$mosConfig_lang.'.php' );

// frontend login & logout controls
$return = mosGetParam( $_REQUEST, 'return', NULL );
$message = mosGetParam( $_POST, 'message', 0 );
if ($option == "login") {
   $mainframe->login();

   // JS Popup message
   if ( $message ) {
      ?>
      <script>
      <!--//
      alert( "<?php echo _LOGIN_SUCCESS; ?>" );
      //-->
      </script>
      <?php
   }

   if ($return) {
      mosRedirect( $return );
   } else {
      mosRedirect( 'index.php' );
   }

} else if ($option == "logout") {
   $mainframe->logout();

   // JS Popup message
   if ( $message ) {
      ?>
      <script>
      <!--//
      alert( "<?php echo _LOGOUT_SUCCESS; ?>" );
      //-->
      </script>
      <?php
   }

   if ($return) {
      mosRedirect( $return );
   } else {
      mosRedirect( 'index.php' );
   }
}

/** get the information about the current user from the sessions table */
$my = $mainframe->getUser();

/** detect first visit */
$mainframe->detect();

$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 = mosGetParam( $_REQUEST, 'task', '' );
   $ret = mosMenuCheck( $Itemid, $option, $task, $gid );
   if ($ret) {
      require_once( $path );
   } else {
      mosNotAuth();
   }
} else {
   echo _NOT_EXIST;
}
$_MOS_OPTION['buffer'] = ob_get_contents();
ob_end_clean();

initGzip();

header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' );

// loads template file
if ( !file_exists( 'templates/'. $cur_template .'/index.php' ) ) {
   echo _TEMPLATE_WARN . $cur_template;
} else {
   require_once( 'templates/'. $cur_template .'/index.php' );
   echo "<!-- ".time()." -->";
}

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

doGzip();
?>

9  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 19, 2006, 11:17:12 AM
Hey,

I am sorry to be such a pain here but I did exactly what you said and still it cant patch. Can I maybe do this manually?
10  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 19, 2006, 11:01:51 AM
well the login won't work if it isn't patched.  I just saw you are on Mambo 4.5.3.  I posted a temporary fix for patching mambo systems that will be included in the next release.  Try this:



Oh also was there something else I should have done for the fix? Or just try this com? I did look for the fix you were talking about but couldnt find it?
11  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 19, 2006, 10:51:14 AM
For whatever reason I can not patch the index file with either of those updates. If I go back to Joomla-SMF_1[1].1.01 I can patch no problem? Don't make sense to me.
12  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 19, 2006, 09:03:44 AM
Dang no luck.

I get an error when I try to patch index now.
I unpatched with the previous versions both index and smf then uninstalled the Joomla-SMF COM. Then installed the new one. Went to configuration and tried that patch for index and here is what I got.

Failed: Code to be patched not found in file: /home/httpd/vhosts/live4soccer.com/httpdocs/index.php

The other patch worked ok?

For the sake of it I still tried the login and still all the same issues occur?
13  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 19, 2006, 07:48:06 AM
Hey there Wolverine,

Any luck with this?
14  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 13, 2006, 10:16:21 AM
Ok sounds good.
15  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login / Timeout Problems. on: April 13, 2006, 07:08:38 AM
Hey, Still does the same stuff with that plugin though. Wish it would have been that simple. Is there more then one 1.0.1 plugins?
Pages: [1] 2


Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

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



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login