Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Aiheen aloitti: gasg - toukokuu 16, 2006, 04:04:59 AP

Otsikko: Re: Bridge 1.1.4
Kirjoitti: gasg - toukokuu 16, 2006, 04:04:59 AP
Hello, I have two issue, the first is the autologin in the FlashChat, i've try to integrate first in Joomla v 1.0.8 and then in smf (v 1.1 rc2) by using Login Module and Bridge 1.1.14 made by Ostrio, the login smf/joomla and viceversa joomla/smf works great but to enter in the chat I or the users have to retype the username and password in the chatbox login screen... any suggestion to fix that?
P.s: if I use the default Login formĀ  from Joomla if flashchat is integrate in it the autologin works fine (only for the chat and CMS, sure not for smf).

The second issue is the redirection url when I'm or users logged in, always it redirect on the home page and not in the page where log-in, I've try to change setting from bridge configuration in back end, but dont fix that.

Thanks in advance who help me.
Bye
Otsikko: Re: Bridge 1.1.4
Kirjoitti: gasg - toukokuu 16, 2006, 04:41:41 AP
Steb By Step I trying the Bridge a found a lot of problems, for example now I dont see the Joomla modules set for Registered user or Specials, only showing if I set theese modules as Public, dont showing too the voice add in the menus.. :(

Sorry my bad english
Otsikko: Re: Bridge 1.1.4
Kirjoitti: Orstio - toukokuu 16, 2006, 06:30:12 AP
Do you have a URL?
Otsikko: Re: Bridge 1.1.4
Kirjoitti: Kindred - toukokuu 16, 2006, 12:05:26 IP
this basically means that your stuff is NOT bridged.

Flashchat bridges to SMF nearly perfectly... if you connect to flashchat.php as the link from your joomla menu, it should recognize the bridged login and run...

Since your registered stuff is not appearing, this indicates that the system is not logging you into joomla at all...   which can be cause by a number of different mistakes.
Otsikko: Re: Bridge 1.1.4
Kirjoitti: gasg - toukokuu 16, 2006, 01:30:00 IP
The url is www.lottosqueeze.org
Otsikko: Re: Bridge 1.1.4
Kirjoitti: Kindred - toukokuu 16, 2006, 02:10:14 IP
you are setting your login option to point to SMF...   that is wrong.
you have to use the bridge login module if you want to log in to both SMF and joomla...
Otsikko: Re: Bridge 1.1.4
Kirjoitti: gasg - toukokuu 16, 2006, 02:38:41 IP
Yes I know, I have just Hide the module for trying, but dont work anyway :(
Now is showing
Otsikko: Re: Bridge 1.1.4
Kirjoitti: Orstio - toukokuu 16, 2006, 05:52:14 IP
You added some code to your Joomla template header.  That is not required in bridge 1.1.4.  Remove that.
Otsikko: Re: Bridge 1.1.4
Kirjoitti: gasg - toukokuu 16, 2006, 07:12:00 IP
Hello, I've add only the code I found in the readme that is in the zip file of the bridge, I have to remove it?
The code is:

Mambo template changes
The changes to the Mambo template are still required for this version of the bridge. These changes are not required for Joomla. Copy the code below, and paste it into the header area (between the <head> and </head> tags) of your Mambo template.
<?php
global $sc, $context, $settings;

if (!defined('SMF')){
// Get the configuration. This will tell Mambo where SMF is, and some integration settings
$database->setQuery("
SELECT `variable`, `value1`
FROM #__smf_config
");
$variables = $database->loadAssocList();

foreach ($variables as $variable){
$variable_name = $variable['variable'];
$$variable_name = $variable['value1'];
}
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, '" />';
?>


You will also need to make sure to add the next line just below the </body> (the closing body tag at the bottom) tag of the template.
<?php mysql_select_db($GLOBALS['db_name']); ?>
Otsikko: Re: Bridge 1.1.4
Kirjoitti: gasg - toukokuu 16, 2006, 07:20:55 IP
Ok thanks I've removed, see in the text that not required for Joomla, sorry..
EDIT: Thank you very much, now works all perfect :)
Have nice day.
Otsikko: Re: Bridge 1.1.4
Kirjoitti: Orstio - toukokuu 16, 2006, 07:33:53 IP
The autologin just worked fine for me.  I registered, and logged in, clicked on Chat, and I was logged in to the chat automatically.
Otsikko: Re: Bridge 1.1.4
Kirjoitti: gasg - toukokuu 16, 2006, 07:38:10 IP
Yes yes, I see you, thank x1000. for all and for sharing your Bridge :)
Works great for all.. take care :)