Durch einfügen des folgenden Codes am Anfang der index.php des SMF-Forums wird verhindert, dass das SMF-Forum direkt ohne Joomla aufgerufen werden kann.
Der rot makierte Teil muss der Seite entsprechend angepasst werden.
//Edit b2m - block direct call
if (!defined ('_VALID_MOS') &&
!ereg('type=avatar',$_GET['action']) &&
!ereg('verificationcode',$_GET['action']) &&
!ereg('attach',$_GET['action']) &&
!ereg('image',$_GET['action']) &&
!ereg('quotefast',$_GET['action'])) {
@ob_end_clean(); header( 'HTTP/1.1 301 Moved Permanently' );
header( "Location: http://www.DeineSeite.de/Forum-Link-innerhalb-Joomlas/" );
}
//End Edit b2m - block direct call
Dieser Code muss direkt nach den Kommentarzeilen eingefügt werden.
/* *********************************************************************************
#* index.php *#
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel (Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!) *
* =============================================================================== *
* Software Version: SMF 1.1.2 *
* Software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
* Support, News, Updates at: http://www.simplemachines.org *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at http://www.simplemachines.org. *
**********************************************************************************/
/* This, as you have probably guessed, is the crux on which SMF functions.
Everything should start here, so all the setup and security is done
properly. The most interesting part of this file is the action array in
the smf_main() function. It is formatted as so:
'action-in-url' => array('Source-File.php', 'FunctionToCall'),
Then, you can access the FunctionToCall() function from Source-File.php
with the URL index.php?action=action-in-url. Relatively simple, no?
*/
Quelle: www.joomla-downloads.de