Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Joomla Bridge Support => Topic started by: yacosta on January 02, 2006, 03:17:37 PM

Title: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 03:17:37 PM
What I'm Using:

Joomla v1.0.5
SMF v1.1 RC1 
Bridge v.3.20

Ok after installing SMF I tried loggin in using the Login module (mod_smf_login v3.20) but I get the following error.


This is how I configured the component:




Also I created another user account (registered user) permissions and when I go to the forum the users credentials did not transfer over.
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: Orstio on January 02, 2006, 03:29:51 PM
The bridge you are using is not compatible with the version of your forum.
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 03:31:47 PM
so what do you recommend? should I uninstall the bridge and downgrade? or should I upgrade SMF?
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: Orstio on January 02, 2006, 03:34:25 PM
Well, I would upgrade SMF.  RC2 is much better than RC1.

You will also need to set up your database users correctly:

http://www.simplemachines.org/community/index.php?topic=63187.msg437146#msg437146
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 03:40:02 PM
Ok, thanks!!

I will upgrade now and make the changes :)
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 09:23:11 PM
Ok upgraded and when I log in it recognizes me now but this is what the login looks like:



Is there away to change the language to spanish for the login? I also don't see an option to register?

If I use the defualt joomla login module new users don't get transfered over to SMF.


(I added both MYSQL users to both Joomla and SMF databases, as suggested.)

Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: Orstio on January 02, 2006, 09:38:37 PM
There is some code you need to put into your Joomla template header.  Check the readme.txt.
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 09:46:40 PM
Thanks Orstio i just added the code but now my whole site is blank... the front page does not come out :S
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: Orstio on January 02, 2006, 09:49:40 PM
Do you have compressed output turned on in SMF?
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 09:53:50 PM
yes, just turned it off and I get the same result. :S
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: Orstio on January 02, 2006, 10:30:45 PM
Can you post the contents of your Joomla template?
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 10:36:49 PM
<----- Without the code ---->
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?><?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="robots" content="index, follow" />
<?php
if ( $my->id ) {
   initEditor();
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php mosShowHead(); ?>
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/BancoDeLaRep.ico" />
<link rel="stylesheet" type="text/css" href="<?php echo $mosConfig_live_site; ?>/templates/notofilia/css/template_css.css" />
<style type="text/css">
<!--
.style1 {
   color: #4682B4;
   font-weight: bold;
   font-size: 9px;
}
-->
</style>
<link rel="alternate" title="Afiliase A Notofilia.com" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/index2.php?option=com_rss&no_html=1" type="application/rss+xml" />
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-210705-1";
urchinTracker();
</script>
<?php
if(file_exists($mosConfig_absolute_path."/components/com_bsq_sitestats/bsqtemplateinc.php"))
{
        require_once($mosConfig_absolute_path."/components/com_bsq_sitestats/bsqtemplateinc.php");
}
?>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="730" height="255"
              border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tbody>
    <tr>
      <td width="730" height="194" colspan="2" align="center" valign="top"><div align="center"><img src="templates/notofilia/images/top.jpg" alt="Header" width="730" height="255" /></div>
      </td>
    </tr>
  </tbody>
</table>
<table width="730" height="100"
              border="0" align="center" cellpadding="0" cellspacing="0" background="templates/notofilia/images/middle.jpg">
  <tbody>
    <tr>
      <td width="46" rowspan="3" align="center" valign="top"><div align="center">
        <p>&nbsp;</p>
        </div>
      </td>
      <td width="152" height="19" rowspan="2" align="left" valign="top"><?php mosLoadModules ( 'left' ); ?>
</td>
      <td width="36" rowspan="3" align="center" valign="top">&nbsp;</td>
      <td align="left" valign="top">        <div align="center">
        <?php mosLoadModules ( 'user1' ); ?>
      </td>
      <td width="38" rowspan="3" align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top"><?php include ("mainbody.php"); ?><p></p>
     <p></p>
   
     </td>
    </tr>
    <tr>
      <td align="left" valign="top">&nbsp;      </td>
      <td align="left" valign="top"><p>&nbsp;
      </p>
      </td>
    </tr>
  </tbody>
</table>
<table width="730" height="131"
              border="0" align="center" cellpadding="0" cellspacing="0" background="templates/notofilia/images/bottom.jpg">
  <tbody>
    <tr>
      <td width="770" colspan="2" align="center" valign="top">&nbsp;</td>
    </tr>
  </tbody>
</table>
<?PHP if(file_exists($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php"))
         {
         require_once($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php");
         }?>
<?PHP if(file_exists($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php"))
{
require_once($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php");
}?>
<div align="center" class="style1">

<script type="text/javascript" src="http://embed.technorati.com/embed/6crq52evq.js"></script>
<?php include_once('includes/footer.php'); ?>

</div>
<p>&nbsp;</p>
</body>
</html>


<----- With Code ----->

<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?><?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="robots" content="index, follow" />
<?php
if ( $my->id ) {
   initEditor();
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php mosShowHead(); ?>
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/BancoDeLaRep.ico" />
<link rel="stylesheet" type="text/css" href="<?php echo $mosConfig_live_site; ?>/templates/notofilia/css/template_css.css" />
<style type="text/css">
<!--
.style1 {
   color: #4682B4;
   font-weight: bold;
   font-size: 9px;
}
-->
</style>
<link rel="alternate" title="Afiliase A Notofilia.com" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/index2.php?option=com_rss&no_html=1" type="application/rss+xml" />
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-210705-1";
urchinTracker();
</script>
<?php
if(file_exists($mosConfig_absolute_path."/components/com_bsq_sitestats/bsqtemplateinc.php"))
{
        require_once($mosConfig_absolute_path."/components/com_bsq_sitestats/bsqtemplateinc.php");
}
?>
<?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 leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="730" height="255"
              border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tbody>
    <tr>
      <td width="730" height="194" colspan="2" align="center" valign="top"><div align="center"><img src="templates/notofilia/images/top.jpg" alt="Header" width="730" height="255" /></div>
      </td>
    </tr>
  </tbody>
</table>
<table width="730" height="100"
              border="0" align="center" cellpadding="0" cellspacing="0" background="templates/notofilia/images/middle.jpg">
  <tbody>
    <tr>
      <td width="46" rowspan="3" align="center" valign="top"><div align="center">
        <p>&nbsp;</p>
        </div>
      </td>
      <td width="152" height="19" rowspan="2" align="left" valign="top"><?php mosLoadModules ( 'left' ); ?>
</td>
      <td width="36" rowspan="3" align="center" valign="top">&nbsp;</td>
      <td align="left" valign="top">        <div align="center">
        <?php mosLoadModules ( 'user1' ); ?>
      </td>
      <td width="38" rowspan="3" align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top"><?php include ("mainbody.php"); ?><p></p>
     <p></p>
   
     </td>
    </tr>
    <tr>
      <td align="left" valign="top">&nbsp;      </td>
      <td align="left" valign="top"><p>&nbsp;
      </p>
      </td>
    </tr>
  </tbody>
</table>
<table width="730" height="131"
              border="0" align="center" cellpadding="0" cellspacing="0" background="templates/notofilia/images/bottom.jpg">
  <tbody>
    <tr>
      <td width="770" colspan="2" align="center" valign="top">&nbsp;</td>
    </tr>
  </tbody>
</table>
<?PHP if(file_exists($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php"))
         {
         require_once($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php");
         }?>
<?PHP if(file_exists($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php"))
{
require_once($mosConfig_absolute_path."/components/com_tfsformambo/tfsformambo.php");
}?>
<div align="center" class="style1">

<script type="text/javascript" src="http://embed.technorati.com/embed/6crq52evq.js"></script>
<?php include_once('includes/footer.php'); ?>

</div>
<p>&nbsp;</p>
</body>
<?php mysql_select_db($GLOBALS['db_name']); ?>
</html>
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: Orstio on January 02, 2006, 10:38:56 PM
[EDIT] Sorry, I missed that you posted both.

You're sure the absolute path is correct in your component configuration?
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 10:39:16 PM
Just cleand cache and now I get that I don't have permission to logoff.

Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: Orstio on January 02, 2006, 10:44:41 PM
Are you using multiple templates on your site?  You need to add that code to all the templates you have published.
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 10:46:19 PM
no just one template.....

www.notofilia.com (http://www.notofilia.com) <=- this is my site.
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 10:48:13 PM
http://www.notofilia.com/smf (http://www.notofilia.com/smf) <=- SMF
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: Orstio on January 02, 2006, 11:01:00 PM
Esta uno problemo:

No tiene permisos para acceder a este apartado.
Necesitas acceder primero.

Aqui:

http://www.notofilia.com/index.php?option=com_smf&Itemid=89

(Sorry for my terrible Spanish!)  ;)
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 11:06:56 PM
Hahaha   :P

You can write in English I'm fluent in both languages....  Looks like its saying it doesn't have permissions to com_smf but even when I log in as admin I still don't have permission. I just checked the parent company and CHMOD is 755. Any ideas?
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: Orstio on January 02, 2006, 11:08:53 PM
I'm thinking it might have something to do with your SEF engine.  Is that 404SEF?
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 11:11:05 PM
Using SEF Advance v4.3 (3rd party component)
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: Orstio on January 02, 2006, 11:13:31 PM
If you turn it off, does everything work?
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 11:15:36 PM
There's no "on" "off" on this component... i would need to test it on test site... :(
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: Orstio on January 02, 2006, 11:17:41 PM
I haven't done much testing with alternative SEF engines.  I know some people have been able to get 404SEF and OpenSEF working with the bridge, but I have no idea how.

It will work fine with the default SEF engine, however.
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 11:20:51 PM
 :( guess i have 2 choices either not use SEF, or not to use SMF :( atleast until things are test and sorted :(
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: yacosta on January 02, 2006, 11:28:24 PM
Noticed that even tho i am logged in as admin via smf_login I can't see the forum link in the main menu after checking the backend its set to be available as registered users.. but if I set it up as "public" and i login I'm acknowledged in both joomla and SMF...
Title: Re: Joomla - SMF Bridge Problems (Confused)
Post by: Orstio on January 02, 2006, 11:30:10 PM
Yes, you need the first menu item to be public.  You can unpublish that, and create a new one that is only available for registered users, though.