Is there any way to bridge SMF and Joomla ( now Iam using jooomla 1.0.4. and smf 1.1 rc 1) in that way :
I have domain www.domain.com for my joomla
and subdomain www.forum.domain.com for my SMF
I need it bridged (unwrapped ) but as the forum will be a component of joomla - I stll want to use its subdomain name - like : I am clicking in joomla "Forum" menu item and I am redirected to not "www.domain.com/option=smf+itemId but to www.forum.domain.com and still login/registering and all the stuff bridge does is available, woith no cookies problems
Eventually I copuld migrate to SMF 1.0.5 if needed
So it is possible? If yes - how to do this ?? step by step
well, first of all, you can not migrate to 1.0.5, since you can not move backward from 1.1RC1.
Second... I'm not sure, but I don't think it's possible to do that... maybe, using the Xenon SEF extensions... but I'm not even sure it will work with that. As far as I know, the cookies for joomla and SMF MUST point to the same domain.
NOTE: Please do not double post.
You asked the question here, in it's own post and posted an identical message in the FAQ thread.
I have removed the duplicate in the FAQ thread.
I have Kamerek on ICQ right now.
He's looking to bridge his forum as stand-alone with a separate subdomain. This should be doable. ;)
well Orstio I have tested this whole proccess again today on clean install and :
1.After installing login mod from your step 4 , my Joomla's -Poll standard module doesnt work :( (two different templates tried)
2. Even if I set login module from step 4 to redirect after login to Joomla it still redirects to SMF- and this way I cant use my subdomain (forum) then, I rather want this to after login in Joomla - thay in Joomla as logged in , to view joomla's content and then if I want to visit forum (still being logged in) I will just choose Forum item menu > to be redirected to forum ( then in browser www.domain.pl will change into forum.domain.pl ) . For now, as I am automatically redirected after login to forum , joomla uses its "component path " which is not what I wanted form the same beginning ;)
So I'll try now with bridge for SMF 105 and SMF 105 to check if there this redirection after login to Joomla works, and the Polls works...
If not , I am still in my starting point.. :( buuuuu
ps. maybe U r sleeping guys now in US ;) but in EU is almost noon ;) so I guress I will have to wait for the answer ;)
EDITED:
no , the same stuff with 1.0.5 > I assume that problems with Poll are related to module smf_login , and registration through smf, so I will need another Poll com and mod to install in Joomla instead the original one.. ( does anyone know such a Poll ?)
So .. I see I must rely on that what yesterday was done with Orstio's help, and accept this redirection to smf via "component path" after login in joomla
I use the Exit-Poll component/module...
As for the other things, you might take a look in mod_smf_login and change the redirects...
Ok , and what about enabling SEF (or SEO) in both Joomla and SMF 1.1rc1 after bridge installation - will this affect bridge in this option with standalone SMF using its own subdomain ?
or SEF's should be enabled before bridge is installed?
PS. It is not important for me to have SEF enabled, but I am just curious . I have run for the topics but it seems to be still not solved. I guess we will have to wait for stable final versions of SMF 1.1 and the bridge then ;)
QuotePS. It is not important for me to have SEF enabled, but I am just curious . I have run for the topics but it seems to be still not solved. I guess we will have to wait for stable final versions of SMF 1.1 and the bridge then
Making every detail of your site work with a stand-alone forum and bridged registration and login and also the redirects you wish will never be any simpler. You can wait for the next version, but I'll tell you now that it won't make what you are attempting any easier.
Well, I have read some posts and realize that will be the matter of my own work, but for now as I dont have time for this I will stay with this as it is.
But still the problem with Firefox is driving me crazy ;) - I Use FF 1,5 and :
I have followed all your tips (even read twice This large FAQ made by Kindren about standalone) , and changed in SMFone-gray Theme - as I set this in SMF standalone instead of default one - index.template.php ]
action=login2 into action=mambo_login
action-logut into actio-mambo=logout
and In FF when logged in through Joomla - automatically goes to forum with URL : http://www.domain.pl/index.php?option=com_smf&Itemid=26& . It looks Ok - I am loged in forum too, but when I logout and try login again there (still in URL tab is http://www.domain.pl/index.php?option=com_smf&Itemid=26&) I just cant login again using Login menu button "You didn't enter your password."
- but it is possible when using upper login form (there is How long I want to be logged in) and using IE ... also when I use forum.domain.pl address there is no such a problem
Subdomain cookies are enable! local are disabled! no .htaccess files anywhere ;)
Replace the code you put in your Joomla template header with this:
<?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 has diagnosed that:
It has to do with the fact that FF doesn't accept javascript includes outside the first header area.
Yes , I see I have java in first area, so that;s why.
but the code above still not working, (I use in smf upgraded to smf1.1 rc1 SMFone theme, and have made changes action=login2 /logout in index.template.php. also in default theme in the same file)
Ok I solved problem with Firefox, some lines of code in theme must be commented because jaoomla template now uses them
According to the independent forum with its subdomain and site with its subdomain - the FF is solved too, but there is one thing : when you are loged in via forum.domain.com U can see in smf_log_module at joomla u r logged in (its normal as the smf logn /reg is used) but in fact U r not logged into Joomla site .
When U log-in via joomla using "component link" U'll be logged-in to both , so the login-stuff in this specific case of standalone/different subdomains works only in one way (when using component URL). Then no - real(!) standalone bridge exists - of course it is possible to do this
There is small possibility I am wrong in this case "one way bridge" cause I've made a lot of test and installations and I am only human being ;) tired a bit. But I dont think my opinion is not right.
As I understand that this is all free soft made in free time - I am anyway greatful for the good work ;) - I guess I'll stay with unwrapped but not standalone solution then ;)
the who's online and who's online2 modules read online status from the SMF database...
Yeah, they do.
But the problem is (in very complicated case of two standalone systems of joomla and smf) when you login using forum.domain.com (not the www.domain.com) U are not logged into www.domain.com - and this have to do with the bridge component which is probably designed mostly for users not using another subdomain for the forum ;)
Btw. I tried discuss mosbot in my configuration and it makes my site not displaying at all.
(now I have arrange my ftp and db this way so I can easily switch between 2 different configs in order to test the solutions :
1.standalone with 2 subdomains: forum.domain.com and www.domain.com(main site)
or
2.and normal-unwrapped with only one www.domain.com and forum is www.domain.com/index.php?option=com=smfitemId
yes, I am fairly certain that the discussbot is not intended to work across subdomains...
And, since the who's online and who's online2 modules read form the SMF database to figure out who's actually online, of course they are going to display people who are logged into SMF, regardless of the subdomain names... You'll be better off using the joomla who's online module in the case of a standalone system...
He's not just installing a stand-alone forum with a sub-domain. He also wants to have Apache redirects that make this an impossible installation.
Quote from: Orstio on December 19, 2005, 10:55:57 AM
He's not just installing a stand-alone forum with a sub-domain. He also wants to have Apache redirects that make this an impossible installation.
Well, I tried this discuss bot with unwrapped (not-standalone) ! ;)
I tried chadness' bot and it works.
And I suppose there is the difference between "redirect" and "rewrite" mods in Apache? no not using any htaccess, files , but maybe admin of webserver has set http://site.com to work with the same directory as the htt://www.site.com - and must contact him