Bridge Joomla-SMF 1.16 GROS PROBLEMES

Started by augpin, September 22, 2006, 09:29:59 AM

Previous topic - Next topic

augpin

Comment faire fonctionner le bridge Joomla-SMF 1.16 télécharger sur le site simplemachine ???
C'est difficile, par exemple pour la configuration suivante :
CMS     = Joomla 1.0.11
FORUM  = SMF 1.1 rc3
BRIDGE = smf_1-1-rc3_joomla_1-1-6_bridge.zip télécharger à partir du site SMF
TEMPLATES de RocketTheme soit :
- pour JOOMLA = rt_versatility_ii_sienna
- et pour SMF  = rt_smf_versatility2_sienna

Et bien voilà tout semble possible que ce soit "Unwrapped" ou "Wrapped" sauf que ça ne marche pas et qu'à mon avis, il faudrait :

1 - Traduire ce fichier d'installation readme.html pour tout comprendre en détail:

QuoteSMF-Mambo/Joomla bridge
Before you start
Make sure you have both Mambo (or Joomla) and Simple Machines Forum (SMF) installed. Realize that SMF is not a component, but a stand-alone forum. The bridge will only integrate your SMF-forum with your Mambo/Joomla site.
Please do not remove any of the copyrights of your SMF-forum.

Always back up your database and site prior to installations and test any additions you make to your site locally first and do NOT add anything to your live site unless tested thoroughly, extensively, securely and wisely!
Make sure the following folders are writable (chmod 777) before installing the component:
  /components
  /modules
  /mambots/system
  /administrator/components
Installing the SMF-Forum Component in Mambo/Joomla
Install com_smf.zip as a Mambo/Joomla component, and change the values in the configuration via the Mambo backend. Please use the absolute path. There is a lot of confusion surrounding relative paths. You are best to use the absolute path. If somehow your absolute path is not detected correctly, enter your SMF admin panel, click Edit Server Settings and copy the path you'll find under SMF Directory.

There are two formats to display your Mambo/Forum integration:
» Wrapped
You are using SMF through the Mambo/Joomla bridge. The Forum appears "wrapped" in the Mambo/Joomla tables. You might have to make some necessery changes in your forum files in order to show a fitting lay-out.
» Unwrapped
You are still using SMF through Mambo/Joomla, but it doesn't have the look of a wrapped forum. It looks stand-alone, but it is actually loading through Mambo. This is set in the Mambo/Joomla config for the component.

There are several options for the user registration form: Bridge, SMF, Mambo/Joomla default, Community Builder, and MamboCharge. The bridge registration form looks very much like the default Mambo/Joomla registration, but functions quite differently. If you choose to use this option, make sure to configure the registration component as well. All registration types will register new users into both Mambo/Joomla and SMF, but some users may not appear in SMF until after their first login.

Also make sure to configure your login module. Set the params to your liking, and make sure to click Save at the top of the page.
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']); ?>
Separate Databases:
If you have installed Mambo/Joomla and SMF with Fantastico, or you installed them in separate databases intentionally, you will need to grant permission to the database users to access each others' databases. If you have your forum and CMS installed in separate databases, and you have not granted access properly, you will most likely run into the "_LOGIN_INCOMPLETE" error in Joomla.

Here's how to grant database permissions:

1) Go to your site's cPanel. Click on MySQL databases. (Do not Proceed to PhpMyAdmin!)

2) Near the bottom of the page, you will find two dropdown menus side-by-side. One is labelled "User:" and the other "Db:".

3) In the first dropdown, select your SMF database user, and in the second dropdown, select the Mambo/Joomla database. Click the button that is labelled "Add User to Db".

4) Now go back to the same page again, and do the same, adding your Mambo/Joomla User to your SMF database.

Now you are set up to run your forum and CMS in separate databases.

With some Joomla templates, you may end up with this error appearing at the bottom of the page:

Database Error: Table 'db_joomla.smf_sessions' doesn't exist
File: /home/user/public_html/joomla/forum/Sources/Load.php
Line: 1886
Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

If that happens, please add this to the bottom of your Joomla template:
<?php mysql_select_db($GLOBALS['db_name']); ?>
3rd Party Developer Tabs in Admin Panel
This bridge comes with the capability for 3rd party developers to add their own tabs to the bridge config panel. This can be done by adding a tab file to include by the bridge, and defining it in the bridge config table appropriately. For example, if you have a component called com_example, and you want to have a tab in the bridge define something in the com_example component, you can create the tab in a file called example_tab.php. You'll need to add that file to your com_example.xml installer, and also a query to let the bridge config know it's there:
INSERT INTO #__smf_config (`variable`, `value1`) VALUES ('3rdPartyTab', 'administrator/components/com_example/example_tab.php')
And that's all! It will be included in the SMF bridge component configuration.

2 - Voir comment s'affranchir de cette ligne à ajouter en bas du fichier index.php  du template Joomla avec RegisterGlobal=Off ????
Quote<?php mysql_select_db($GLOBALS['db_name']); ?>
Ce qui est indispensable dans la version Joomla 1.0.11, et c'est ce que j'ai fait avec mon hébergeur hxxp:celeonet.fr [nonactive]


3 - Voir sur les hxxp:"http://www.rockettheme.com/index.php?option=com_smf&Itemid=149&board=41.0" [nonactive]forums de rockettheme les forums qui apparemment ont fait de superbe chose d'intégration avec cette configuration sauf que moi je suis en limite d'anglais et de PHP ???
Attention il faut s'enregistrer chez rockettheme et les templates sont payant.

Merci pour celles et ceux qui pourraient arranger ce point aussi bien en Wrapper qu'en Unwrapper.

D'après ce que j'ai déchiffré c'est posible mais comment ?????

A l'adresse ci dessous j'ai créé un lien à partir du site vers le forum sans utiliser ce bridge car à mon avis ca bug à cause de RegisterGlobal = Off.
Pourtant une belle intégration wrapper de mon site avec mon forum avec le même haeder du template Joomla me plairait bien.

Merci d'avance de votre aide.

Téophile
hxxp:"http://www.prosysteme.fr" [nonactive]

Frantzk

Salut,

pour ma part, j'ai réussi sans trop de problèmes à faire marcher le bridge entre  joomla 1.0.11 et SMF 1.1.RC3 avec le bridge téléchargé sur ce site, en plus sur un hébergement Free .

Mon niveau de compétence est relativement faible, je ne suis pas un pro du php ou de l'informatique. Mon seul problème se situait dans le parametrage du chemin relatif du forum.

Quel est le problème que tu rencontre ? (j'ai vu ton message sur SMF-fr aussi)

augpin

Je confirme, il est Impossible de faire fonctionner le bridge1.16_ SMF_1.1.rc3_Joomla_1.0.11 que j'ai téléchargé sur le site de hxxp:"http://www.simplemachines.org/download/?bridges" [nonactive] pour la cause suivante :

  1 -Avec Joomla 1.0.11 on doit mettre register_global=off then ce que j'ai fait avec le concours efficace de celeonet et voici le résultat:

QuoteWarning: smf_header_include(../forum/SSI.php) [function.smf-header-include]: failed to open stream: No such file or directory in /home/www/prosysteme/www/methodes-industrialisation/mambots/system/SMF_header_include.php on line 67

Fatal error: smf_header_include() [function.require]: Failed opening required '../forum/SSI.php' (include_path='/home/www/prosysteme/www/methodes-industrialisation/administrator/components/com_sef:/home/www/prosysteme/www/methodes-industrialisation/administrator/components/com_sef/includes:.:/usr/local/lib/php') in /home/www/prosysteme/www/methodes-industrialisation/mambots/system/SMF_header_include.php on line 67

à la ligne 67 de SMF_Header_include.php on trouve ceçi
Quoteglobal $mainframe, $database, $scripturl, $db_connection, $db_passwd, $maintenance, $db_server, $options;

Quand aux problèmes de compatibilité avec open-sef .../... il faut bien s'en assurer.

Quel dommage d'avoir un enregistrement sur SMF et un autre sur Joomla. !!!

Téophile
hxxp:www.prosysteme.fr [nonactive]

augpin

Comment résoudre ce problème avec le bridge 1.16 Joomla-SMF


Quote8: Undefined variable: sidenav
Fichier: /home/www/prosysteme/www/methodes-industrialisation/templates/rt_versatility_ii_sienna/index.php
Ligne: 124Erreur de base de données: La table 'prosysteme_site_methodes_10_1.smf_sessions' n'existe pas
Fichier: /home/www/prosysteme/www/methodes-industrialisation/forum/Sources/Load.php
Ligne: 1981

ma config :
global_register=off
cde menu = >> Url: index.php?option=com_smf&Itemid=114
template joomla 1.0.11 =>> Versality ii
template smf    =>> Versality 2

Bon week end
Auguste PINEAU
hxxp:www.prosysteme.fr [nonactive]

Frantzk

ma réponse (qui fonctionne chez moi sur un serveur free)
http://forum.joomlafacile.com/showthread.php?p=83387#post83387 [nofollow]
j'ai juste modifié le chemin de l'include du fichier SSI.php

Garédo

Quote from: Frantzk on September 23, 2006, 02:47:39 AM
j'ai juste modifié le chemin de l'include du fichier SSI.php

Oui c'est juste ce qu'il y a faire, puisque c'est ce que dit le message d'erreur  ;)

QuoteFatal error: smf_header_include() [function.require]: Failed opening required '../forum/SSI.php'
L'ouverture requit a échouée pour le chemin ../forum/SSI.php

Support de mes Mods et Themes graphique en français pour smf. C'est par ici ! 
Un gitan ça sent bon, ça se lave sans savon....

augpin

Voir un mode opératoire d'installation à cette adresse :

hxxp:forum.joomlafacile.com/showthread.php?p=83505#post83505 [nonactive]

Augpin
hxxp:www.prosysteme.fr [nonactive]

Advertisement: