News:

Wondering if this will always be free?  See why free is better.

Main Menu

Little Tips for Mambo

Started by FaSan, November 28, 2004, 12:04:47 PM

Previous topic - Next topic

FaSan

If you don't want the access at the forum is possible, without Mambo link, add that line on "index.php" on root of your SMF :

"if (!file_exists(dirname(dirname(__FILE__)) . '/agreement.txt'))
   header('Location: http://www.yourmambosite.com/index.php');"

before that line :

"$forum_version = 'SMF 1.0 (RC2)';"


;D

FaSan

BrandonMiller

what are the variables? I can't get it to work :(

"if (!file_exists(dirname(dirname(__FILE__)) . '/agreement.txt'))
   header('Location: http://rcrc4x4.com/mambo/index.php?option=com_frontpage&Itemid=1');"


my site is http://rcrc4x4.com/mambo/

forum is http://rcrc4x4.com/forum




Kris

Your forum must be in a subfolder of the mamboportal , so /mambo/folder/

Orstio

QuoteYour forum must be in a subfolder of the mamboportal , so /mambo/folder/

Since when?   ???

BrandonMiller

another somewhat related q -

sometime in one of the upgrades I lost my agreement.txt and I don't even remember where it is supposed to go. Is it in the root of SMF?

That could have something to do with it..

[Unknown]

Yes, it should go in the same folder as Settings.php.

-[Unknown]

BrandonMiller

I guess it kinda sorta works - user gets an error on line X if they go to the direct link but if they go through mambo it works. I'd like a bit more, like a redirect or something.


Kindred

I'm not sure what FaSan was originally suggesting, but with Orstio's bridge, accessing SMF through Mambo works nearly perfectly.

If you are running SMF and Mambo, in theory, entry to your site (and access to the forum) should be through the Mambo interface.

Although, it is possible to set up the SMF bridge to open in a separate window, rather than inline to the original Mambo window.

Сл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."

idigital

Actually, you could just do it the way Mambo does it, put this line into your SMF index.php before the forum_version bit:

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

Then SMF won't load seperately, it will act like any other Mambo component.

Cheers,

Damian

Advertisement: