SMF + Joomla/Mambo bridge v3.20cvs login redirection

Started by Aravot, November 21, 2005, 02:14:56 PM

Previous topic - Next topic

Aravot

Joomla 1.0.3
SMF 1.1 RC1+ - CVS 20051109

I just tried the SMF + Joomla/Mambo bridge v3.20-CVS version bridged with Joomla 1.0.3 and I think the 'login redirection' doesn't work cause no matter what I choose, login and logout is redirected to forum.

Side Note:
Who ever is in-charge of the bridge CVS, if there is no change in the bridge code I don't see a reason to change the creation date cause I keep downloading thinking something has been fixed in the new code but find no change using Beyond Compare

Kindred

Aravot...

I think the CVS is updated nightly by an automated script that does the archive build and compress from the developers' source directory...

So, although nothing may have been changed, the CVS is still built nightly.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Orstio

QuoteI just tried the SMF + Joomla/Mambo bridge v3.20-CVS version bridged with Joomla 1.0.3 and I think the 'login redirection' doesn't work cause no matter what I choose, login and logout is redirected to forum.

Thanks, I'll take a look. :)

Aravot

Quote from: Kindred on November 21, 2005, 03:00:58 PM
Aravot...

I think the CVS is updated nightly by an automated script that does the archive build and compress from the developers' source directory...

So, although nothing may have been changed, the CVS is still built nightly.

I think this is wrong if the files aren't changed than there is No need for new date otherwise how does one know if the files have changed.

Orstio, have you modified the bridge since this message (November 21, 2005).

Orstio

QuoteOrstio, have you modified the bridge since this message (November 21, 2005).

Yes, there have been several changes to the CVS.  Check the changelog. 

(Try using SEF, too.  I think you'll be pleasantly surprised ;) )

Aravot

Thanks will report back, Do you have a donation page?

Aravot

PHP built On: Linux
Database Version: 4.0.17-standard
PHP Version: 4.4.1
Web Server: Apache/1.3.34
Joomla! 1.0.4
SMF 1.1 RC2 - CVS 20051206


Uninstalled previous version installed new version (cvs date 20051210), uninstalling previous version did not uninstall 'mod_smf_login' hence ended up with two 'mod_smf_login' modules, I know unpublished one, only reporting.

Login/logout redirection Works

I am using SMF registration, in Joomla Login form when clicking on 'Forgot your password?' it redirects here 'index.php?option=com_smf_registration&task=lostPassword' since I am using SMF registration it should take me here 'index.php?option=com_smf&Itemid=38&action=reminder' only my opinion.

About Template code, according to accompanying readme.html file the following code has to be added Below </body> tag is that Correct cause previously we had to add it about </body> tag.
<?php mysql_select_db($GLOBALS['db_name']); ?>

Is the new code correct? Cause after adding the code my code coloring after ?> changed to brown (to a coder this could be a stupid question but had to ask)

<?php 
global $sc$context$settings;

if (!
defined('SMF')){
require (
"administrator/components/com_smf/config.smf.php");
require (
$smf_path."/SSI.php");
}

$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];

mysql_select_db($mosConfig_db);

echo 
'
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?beta4"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_session_id = "'
$context['session_id'], '";
// ]]></script>'
;

echo 
'
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?rc1" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?beta4" media="print" />
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';
?>


Orstio

QuoteI am using SMF registration, in Joomla Login form when clicking on 'Forgot your password?' it redirects here 'index.php?option=com_smf_registration&task=lostPassword' since I am using SMF registration it should take me here 'index.php?option=com_smf&Itemid=38&action=reminder' only my opinion.

I'll look through the SMF forgot password code to see if that will work.  If it does, there is no reason it can't be changed.

QuoteAbout Template code, according to accompanying readme.html file the following code has to be added Below </body> tag is that Correct cause previously we had to add it about </body> tag.

As long as it is after all Joomla instructions, it's fine.  You could potentially make it the very last instruction as well.

QuoteIs the new code correct? Cause after adding the code my code coloring after ?> changed to brown (to a coder this could be a stupid question but had to ask)

You didn't happen to embed it inside another <?php ?> construct, did you?

Aravot

Quote from: Orstio on December 10, 2005, 04:33:02 PM
You didn't happen to embed it inside another <?php ?> construct, did you?

Don't think so, here is the complete code.


<?php defined'_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php $iso split'='_ISO );
echo 
'<?xml version="1.0" encoding="'$iso[1] .'"?' .'>';
?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}

if ((
mosCountModules'user1' )) && (mosCountModules'user2' ))) {
//if both modules are loaded, we need a 50%-layout for them
$usera 'user1';
$userb 'user2';
} else if ((
mosCountModules'user1' )) || (mosCountModules'user2' ))) {
// if only one, then 100% no matter which one.
$usera 'user3';
$userb 'user3';
}
?>

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />
<link href="<?php echo $mosConfig_live_site?>/templates/madeyourweb/css/template_css.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo $mosConfig_live_site?>/templates/madeyourweb/css/css_color_green.css" rel="stylesheet" type="text/css"/>

<?php 
global $sc$context$settings;

if (!
defined('SMF')){
require (
"administrator/components/com_smf/config.smf.php");
require (
$smf_path."/SSI.php");
}

$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];

mysql_select_db($mosConfig_db);

echo 
'
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?beta4"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_session_id = "'
$context['session_id'], '";
// ]]></script>'
;

echo 
'
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?rc1" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?beta4" media="print" />
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';
?>



</head>

<body>
<div id="accessibility">
<a href="index.php#menu">
Menu</a>
<a href="index.php#content">
Content/Inhalt</a>
</div>
<div id="pagewidth-800" >
<div id="header" >
<div id="top-top">
<?php
if (mosCountModules"user4" )) {
?>

<div id="search">
<?php mosLoadModules 'user4',-1); ?>
</div>
<?php
}
?>

<div id="topmenu">
<?php if (mosCountModules"user3" )) { ?><?php mosLoadModules 'user3',-1); ?><?php ?>
</div>
</div>

<div class="clr"></div>

<div id="top-bottom">
<a href="index.php">
<?php echo '<img src="' .$mosConfig_live_site'/templates/' .$GLOBALS['cur_template']. '/images/logo.gif" border="0" width="250" height="80" alt="logo" />'?>
</a>
</div>
<?php
if (mosCountModules"banner" )) {
?>

<div id="banner">
<?php mosLoadModules 'banner',-1); ?>
</div>
<?php
}
?>

</div>
<div id="outer-800" >
<div id="pathway">
<?php mospathway() ?>
</div>
<div id="leftcol">
<a name="menu"></a>
<?php
if (mosCountModules"left" )) {
mosLoadModules 'left',-3);
}
?>

</div>
<?php
if ((mosCountModules"right" )) || (mosCountModules"top" ))) {
?>

<div id="maincol-broad-800" >
<?php
} else {
?>

<div id="maincol-wide-800" >
<?php
}
if (mosCountModules"user1" )) {
?>

<div id="<?php echo $usera?>">
<?php mosLoadModules 'user1',-2); ?>
</div>
<?php
}
if (mosCountModules"user2" )) {
?>

<div id="<?php echo $userb?>">
<?php mosLoadModules 'user2',-2); ?>
</div>
<?php
}
?>

<div class="clr"></div>
<div class="content">
<a name="content"></a>
<?php mosMainBody(); ?>
</div>
</div>
<?php
if ((mosCountModules"right" )) || (mosCountModules"top" ))) {
?>

<div id="rightcol-broad">
<?php mosLoadModules 'top',-3); ?>
<?php mosLoadModules 'right',-3); ?>
</div>
<?php
}
?>

<div class="clr"></div>
</div>

<div id="footer-800" >
<?php include_once( $mosConfig_absolute_path .'/includes/footer.php' ); ?>
<?php mosLoadModules'debug', -);?>
</div>
</div>

</body>
<?php mysql_select_db($GLOBALS['db_name']); ?>
</html>

Orstio

Looks good.  If the site displays properly, it is probably just your editor.

Advertisement: