Bridge Mambo,Joomla SMF 1.1 RC2 (aka 3.20)

Started by Orstio, December 31, 2005, 03:07:34 PM

Previous topic - Next topic

Markku

Quote from: bugsmi0 on January 07, 2006, 05:34:14 AM
I see now, got it thanks, looks good

question: when it gives the option of bridge vs smf login

what do they mean by smf login is that simply, you have to login in at the smf page ?
I would assume the joomla login would then be used separately ?

Maybe this clarifies what SMF login does
http://www.simplemachines.org/community/index.php?topic=63438.0

Quote from: Kindred on January 01, 2006, 10:39:27 AM
If user A exists in joomla, but not in SMF, then the first time they log in using the bridge, they will be told that system security was recently upgraded and then asked to re-enter their password. At this time, they will be imported into the SMF userlist.

Is user B exists in SMF, but not Joomla,then the first time they log in using the bridge, they will be added into the Joomla userlist (with nothing shown to the user, it happens in the background)

If user C exists in both joomla and SMF (same username, same email), then the first time they log in using the bridge, the joomla user will be updated with the SMF password. (Note: They will have to use the SMF password to log in properly)

If User D exists in both Joomla and SMF (different username or different email), then the will be treated like User A or B, above...  depending on which username they try to log in as...
Official Finnish Joomla! partner site
http://www.joomlaportal.fi

Orstio

Quotequestion: when it gives the option of bridge vs smf login

Uhhh....the options are bridge registration or SMF registration, not login.  Don't confuse registering and logging in.

Orstio

QuoteWhere do I know more about it's features and limitations? What is the difference between "Bridge registration" and "SMF registration"?

Bridge registration is a registration component written specifically for use with the bridge.  It looks very much like the default Joomla registration, but it functions very differently.

SMF registration is the registration method in SMF.

It doesn't really matter which one you use, other than your own personal preference.

animas

Thanks.

Quote from: animas on January 07, 2006, 02:08:33 AM
Some pages in wrapped format(for Fixed width Joomla Templates) are breaking. Any solution to this?
?

Kindred



Quote from: animas on January 07, 2006, 02:08:33 AM
Some pages in wrapped format(for Fixed width Joomla Templates) are breaking. Any solution to this?

Yes...  modify your templates (both SMF and joomla) or use a different combination or templates.

If you plan to use either Joomla or SMF for any period of time, it is really important that you learn the templating systems, because there are always little changes that you will want to make. :)
Сл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."

Prasad007

i have joomla for my site @ http://www.prasad007.rajhosting.com/cms/
and ive installed the smf bridge
the Login Form isnt showing anything
its blank!!
why?
please help!


also as mentioned in readme:
Quote
Mambo/Joomla template changes
The changes to the Mambo/Joomla template are still required for this version of the bridge. Copy the code below, and paste it into the header area (between the <head> and </head> tags) of your Mambo/Joomla template.
<?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, '" />';
?>

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

where am i supposed to place this?
which file?


please help!
Thank you!

Markku

#126
That code goes to your Joomla! template, in your case /templates/rhuk_solarflare_ii/index.php

Original index.php file, around line 10

Original:
<head>
<?php mosShowHead(); ?>


Modified:
<head>
<?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, '" />';
?>
<?php mosShowHead(); ?>


around line 221 (after adding the code above):

Original:
<?php mosLoadModules( 'debug', -1 );?>
</body>
</html>


Modified:
<?php mosLoadModules( 'debug', -1 );?>
</body>
<?php mysql_select_db($GLOBALS['db_name']); ?>
</html>



Official Finnish Joomla! partner site
http://www.joomlaportal.fi

Prasad007

Quote from: Markku on January 07, 2006, 11:20:26 AM
That code goes to your Joomla! template, in your case /templates/rhuk_solarflare_ii/index.php
thanks!

what abt the first prob?

Orstio

Your first problem will go away when you add that code to your template.

Prasad007

Quote from: Orstio on January 07, 2006, 11:25:24 AM
Your first problem will go away when you add that code to your template.
okay
it works!
Thanks! :)

animas

Made $settings['doctype'] = 'html' in index.template.php of default theme of RC2. But big font issue still remains.

Kindred

that xhtml/html fix is really not worth it any more...

What you need to do is follow chadness' amazing tutorial on getting rid of the SMF <head> section and move all the non-duplicate SMF CSS entries into the mambo/joomla CSS file...
Сл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."

mcgrelio

#132
After upgrading SMF to 1.1RC2 with Bridge Mambo,Joomla SMF 1.1 RC2 (aka 3.20) on my Joomla 1.0.5 site i have encountered troubles when posting special characters like ", ', \, etc...
They're ESCAPED with \ also in the posts! Each time i edit a post i get an extra \ behind special characters.

This only after the bridge upgrade. Obviously i've tested the forum unembedded and it works fine.

I see i'm the first in this thread to have sucj a problem.


khan

Hi

i just downloaded Bridge Mambo,Joomla SMF 1.1 RC2 (aka 3.20) from the first message of this thread , but when i checked the folder where i saved it , its name changed to index.zip !!!
but the package still contains the right files ! ? if they are these ,
com_smf.zip
readme.html
but there were no step by step instructions , where can i find step by step instructions for newbies ?


chadness

Sounds like the right files.  The instructions are in the readme.html file.

Stanislav

I respect your work, but very is one more problem with your bridge.
I use in my site joomla! + smf rc2, and problem is in quoting system caused by SEF in bridge, which makes addresses shorter and killes code, that forum need to quote.

<a href="http://localhost/component/option,com_smf/Itemid,79/action,post/quote,38/topic,3.0/num_replies,5/sesc,caef1d00216c08a16a35778e250e66f5" onclick="doQuote(38, 'caef1d00216c08a16a35778e250e66f5'); return false;"> - is now

should be...
<a href="http://localhost/forum/index.php?action=post;quote=38;topic=3.0;num_replies=5;sesc=caef1d00216c08a16a35778e250e66f5" onclick="doQuote(38, 'caef1d00216c08a16a35778e250e66f5'); return false;">

Orstio

Quotebut the package still contains the right files ! ? if they are these ,
com_smf.zip
readme.html
but there were no step by step instructions , where can i find step by step instructions for newbies ?

Open the readme.html in your browser.  If you want numbered steps, here:

1) install com_smf.zip.
2) Configure the bridge component.
3) Configure the Bridge registration component.
4) Configure the login module
5) Add the code from the readme.html to your Joomla template.

Orstio

QuoteI respect your work, but very is one more problem with your bridge.
I use in my site joomla! + smf rc2, and problem is in quoting system caused by SEF in bridge, which makes addresses shorter and killes code, that forum need to quote.

Your hypothesis is not quite correct.  I have this fixed in CVS already.  I have a small problem with the board jumpto that i want to fix yet before I release the next revision.

Genbushi

#139
Joomla 1.0.5 SMF 1.1rc2

Everything works swell (thanks !), however one small thing I've noticed is if I have a site under construction & is in maintenance mode via Joomla Admin, the preview site function no longer works after installing the bridge.

** Updated: Disregard, I got this worked out. The theme index.php code needs to be put in right under the <head> tag, as opposed to just before the </head>. Fixed it right up.

Advertisement: