Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Re: Bridge 1.1.4

Aloittaja gasg, toukokuu 16, 2006, 04:04:59 AP

« edellinen - seuraava »

gasg

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

gasg

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

Orstio


Kindred

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.
Сл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."

gasg


Kindred

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...
Сл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."

gasg

Yes I know, I have just Hide the module for trying, but dont work anyway :(
Now is showing

Orstio

You added some code to your Joomla template header.  That is not required in bridge 1.1.4.  Remove that.

gasg

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

gasg

#9
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.

Orstio

The autologin just worked fine for me.  I registered, and logged in, clicked on Chat, and I was logged in to the chat automatically.

gasg

Yes yes, I see you, thank x1000. for all and for sharing your Bridge :)
Works great for all.. take care :)

Advertisement: