[!] Wrapped SMF does not work (unwrapped does!)

Started by TarantinoArchives, August 27, 2005, 04:15:45 PM

Previous topic - Next topic

TarantinoArchives

I succesfully (at least i guess) bridged my mambo 4.5.2.1 with smf 1.1b3 with the latest  bridge (the one for 1.1b3 of course) and it works fine as long as i leave it unwrapped.
as soon as i set wrapped, when i click on "forum" or try to enter the forum any other way, all i get is 3/4s of my layout and the rest of the page is white, nothing is displayed that has anything to do with the forum.

any help?
can somebody tell me how exactly my template files have to look like? i tried with the 247portal templates & themes as well.... should they work without any modification or do i have to insert head code for them?

xenovanis

There are no changes needed in the SMF themefiles. You do however need to add the code (required in step 4 of the installation manual) in every template you want to use.
"Insanity: doing the same thing over and over again and expecting different results."

Kindred

1- You should not have any of the SMF SSI modules visible when the forum is open.
(this is all the modules that just call an SSI fucntion. Modules that have been re-coded are OK)
2- Do you have GZIP active in mambo and compression active in SMF?
Сл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."

TarantinoArchives

Quote from: Kindred on August 27, 2005, 06:06:49 PM
1- You should not have any of the SMF SSI modules visible when the forum is open.
(this is all the modules that just call an SSI fucntion. Modules that have been re-coded are OK)
2- Do you have GZIP active in mambo and compression active in SMF?


i have set the recent posts module NOT to be shown when forum is open. the only module that is open is the smf_login module of course which displays the members avatar and number of pms n such

i have compression deactivated both in mambo and SMF

TarantinoArchives


b) Go to your Mambo template (index.php), and add the following code, right before
the </head> tag:

<?php
global $sc, $context;

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

c) also add the following code just above the </body> tag:

<?php mysql_select_db($db_name); ?>


does it have to look exactly like that or do i have to replace db_name with the name of my database? or does it read that froma config file? also the paths above, shouldnt they be absolute or whatever?

xenovanis

No, don't change anything it that code. Can you set your forum to wrapped for a moment so we can take a look? It's stand-alone now...
"Insanity: doing the same thing over and over again and expecting different results."

TarantinoArchives

Quote from: xenovanis on August 28, 2005, 09:21:11 AM
No, don't change anything it that code. Can you set your forum to wrapped for a moment so we can take a look? It's stand-alone now...

i'm talking about a different site...

located at www.juz-eggenfelden.de
i'll set it to wrapped so you can take a look at what happens

TarantinoArchives

i am so ******ing stupid. i've left the "currently online" ssi module on.... me so stuuuuuuuuuuuupid

sorry fellas

xenovanis

Use the online2 module, that one can actually count and you can publish it on the forumpage  :)
"Insanity: doing the same thing over and over again and expecting different results."

TarantinoArchives

Quote from: xenovanis on August 28, 2005, 09:25:52 AM
Use the online2 module, that one can actually count and you can publish it on the forumpage  :)

online 2 can remain published at the same time? cool. then i'll use that one

also, you should integrate this into the readme's that all SSI modules should not be displayed when forum is in wrapped mode

Advertisement: