problem beim einbinden in mambo 4.5.0 1.0.9

Started by smokey-joe, November 26, 2004, 10:23:49 AM

Previous topic - Next topic

smokey-joe

hy @ all

habe mambo 4.5.0 1.0.9  installiert und auch schon ne weile laufen  als jetzt die neue bridge rausgekommen ist habe ich mich entschlossen mal das hammergeile smf zu inst aber nun tauchen probs auf :

habe die bridge componente und das smf im verzeichniss components/com_smf/   installiert  habe dann die config.smf.php so geändert :

<?php


// This is the path to your SMF installation.  IT IS NOT A URL!!!
$smf_path = "components/com_smf";

//This is the table prefix for your Mambo tables.
$mos_prefix = "mos_";

//This is the table prefix for your SMF tables.
$smf_prefix = "smf_";

//Note:  for the table prefixes, you may also use the format "database.prefix" in case you wish to use two different databases for Mambo and SMF.
?>




meine smf.php sieht so aus :



<?php
/*
* This is the SMF bridge component for Mambo Open Source
* Created by Theodore Hildebrandt, September 20, 2004
* Version for SMF 1.0 RC2 created on October 12, 2004
*/

if (!defined('SMF')){
  require ("components/com_smf/config.smf.php");
  require ($smf_path."SSI.php");
}


global $database, $forum_copyright, $board, $topic, $mosConfig_live_site, $sc, $mos_prefix, $smf_prefix;


if (!headers_sent())
   loadSession();
else
{
   if (!isset($_SESSION['rand_code']))
      $_SESSION['rand_code'] = '';
   $sc = &$_SESSION['rand_code'];

   // Note that PHP 4.2.x and above, only, auto-seed.
   if (@version_compare(PHP_VERSION, '4.2.0') == -1)
      srand(time());
}

$forum_version = 'SMF 1.0 RC2';

//if (isset($_REQUEST['?board'])){
//     $_REQUEST['board'] = $_REQUEST['?board'];
//    }
//if (isset($_REQUEST['?topic'])){
//       $_REQUEST['topic'] = $_REQUEST['?topic'];
//    }
//if (isset($_REQUEST['?action'])){
//       $_REQUEST['action'] = $_REQUEST['?action'];
//    }
   
$_SERVER['QUERY_STRING'] = str_replace ("?","",$_SERVER['QUERY_STRING']);

reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();


$sql = "SELECT id FROM ".$mos_prefix."menu WHERE link='index.php?option=com_smf'";

$result = mysql_query ($sql);

$row = mysql_fetch_array($result);

$myurl = $mosConfig_live_site ."/". basename($PHP_SELF)."?option=com_smf&Itemid=" . $row[0]."&";

$scripturl = $myurl;
   
call_user_func(smf_main());

ob_start('ob_sessrewrite');
template_header();
loadSubTemplate(isset($context['sub_template']) ? $context['sub_template'] : 'main');
template_footer();

// The main controlling function.
function smf_main()
{
   global $modSettings, $settings, $user_info, $board, $topic, $maintenance, $sourcedir;

   // Load the user's cookie (or set as guest) and load their settings.
   loadUserSettings();

   // Load the current board's information.
   loadBoard();

   // Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
   loadTheme();

   // Check if the user should be disallowed access.
   is_not_banned();

   // Load the current user's permissions.
   loadPermissions();

   // Do some logging if this is not an attachment/avatar or the setting of an option.
   if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach', 'jsoption')))
   {
      // Log this user as online.
      writeLog();

      // Track forum statistics and hits...?
      if (!empty($modSettings['hitStats']))
         trackStats(array('hits' => '+'));
   }

   // Is the forum in maintenance mode? (doesn't apply to administrators.)
   if (!empty($maintenance) && !allowedTo('admin_forum'))
   {
      // You can only login.... otherwise, you're getting the "maintenance mode" display.
      if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'login2')
      {
         require_once($sourcedir . '/LogInOut.php');
         return 'Login2';
      }
      // Don't even try it, sonny.
      else
      {
         require_once($sourcedir . '/Subs-Auth.php');
         return 'InMaintenance';
      }
   }
   // If guest access is off, a guest can only do one of the very few following actions.
   elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', '.xml'))))
   {
      require_once($sourcedir . '/Subs-Auth.php');
      return 'KickGuest';
   }
   elseif (empty($_REQUEST['action']))
   {
      // Action and board are both empty... BoardIndex!
      if (empty($board) && empty($topic))
      {
         require_once($sourcedir . '/BoardIndex.php');
         return 'BoardIndex';
      }
      // Topic is empty, and action is empty.... MessageIndex!
      elseif (empty($topic))
      {
         require_once($sourcedir . '/MessageIndex.php');
         return 'MessageIndex';
      }
      // Board is not empty... topic is not empty... action is empty.. Display!
      else
      {
         require_once($sourcedir . '/Display.php');
         return 'Display';
      }
   }

   // Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
   $actionArray = array(
      'activate' => array('Register.php', 'Activate'),
      'admin' => array('Admin.php', 'Admin'),
      'announce' => array('Post.php', 'AnnounceTopic'),
      'ban' => array('ManageMembers.php', 'Ban'),
      'boardrecount' => array('Admin.php', 'AdminBoardRecount'),
      'calendar' => array('Calendar.php', 'CalendarMain'),
      'collapse' => array('Subs-Boards.php', 'CollapseCategory'),
      'deletemsg' => array('RemoveTopic.php', 'DeleteMessage'),
      'detailedversion' => array('Admin.php', 'VersionDetail'),
      'display' => array('Display.php', 'Display'),
      'dlattach' => array('Display.php', 'Download'),
      'dumpdb' => array('DumpDatabase.php', 'DumpDatabase2'),
      'editagreement' => array('Admin.php', 'EditAgreement'),
      'editnews' => array('Admin.php', 'EditNews'),
      'editpoll' => array('Poll.php', 'EditPoll'),
      'editpoll2' => array('Poll.php', 'EditPoll2'),
      'findmember' => array('Subs-Auth.php', 'JSMembers'),
      'help' => array('Help.php', 'ShowHelp'),
      'helpadmin' => array('Help.php', 'ShowAdminHelp'),
      'im' => array('InstantMessage.php', 'MessageMain'),
      'jsoption' => array('Themes.php', 'SetJavaScript'),
      'lock' => array('LockTopic.php', 'LockTopic'),
      'lockVoting' => array('Poll.php', 'LockVoting'),
      'login' => array('LogInOut.php', 'Login'),
      'mambo_login' => array('MOS_SMF.php', 'MOS_Login'),
      'mambo_logout' => array('MOS_SMF.php', 'MOS_Logout'),
      'login2' => array('LogInOut.php', 'Login2'),
      'logout' => array('LogInOut.php', 'Logout'),
      'mailing' => array('ManageMembers.php', 'MailingList'),
      'maintain' => array('Admin.php', 'Maintenance'),
      'manageattachments' => array('ManageAttachments.php', 'ManageAttachments'),
      'manageboards' => array('ManageBoards.php', 'ManageBoards'),
      'markasread' => array('Subs-Boards.php', 'MarkRead'),
      'membergroups' => array('ManageMembers.php', 'ModifyMembergroups'),
      'mergetopics' => array('SplitTopics.php', 'MergeTopics'),
      'mlist' => array('Memberlist.php', 'Memberlist'),
      'modifycat' => array('ManageBoards.php', 'ModifyCat'),
      'modifykarma' => array('Karma.php', 'ModifyKarma'),
      'modifyModSettings' => array('ModSettings.php', 'ModifyModSettings'),
      'modifyModSettings2' => array('ModSettings.php', 'ModifyModSettings2'),
      'modlog' => array('Modlog.php', 'ViewModlog'),
      'modlog2' => array('Modlog.php', 'ViewModlog2'),
      'modsettings' => array('Admin.php', 'ModifySettings'),
      'modsettings2' => array('Admin.php', 'ModifySettings2'),
      'movetopic' => array('MoveTopic.php', 'MoveTopic'),
      'movetopic2' => array('MoveTopic.php', 'MoveTopic2'),
      'notify' => array('Notify.php', 'Notify'),
      'notifyboard' => array('Notify.php', 'BoardNotify'),
      'optimizetables' => array('Admin.php', 'OptimizeTables'),
      'packageget' => array('PackageGet.php', 'PackageGet'),
      'packages' => array('Packages.php', 'Packages'),
      'permissions' => array('ManagePermissions.php', 'ModifyPermissions'),
      'pgadd' => array('PackageGet.php', 'PackageServerAdd'),
      'pgremove' => array('PackageGet.php', 'PackageServerRemove'),
      'pgbrowse' => array('PackageGet.php', 'PackageGBrowse'),
      'pgdownload' => array('PackageGet.php', 'PackageDownload'),
      'pgupload' => array('PackageGet.php', 'PackageUpload'),
      'pm' => array('InstantMessage.php', 'MessageMain'),
      'post' => array('Post.php', 'Post'),
      'post2' => array('Post.php', 'Post2'),
      'printpage' => array('Printpage.php', 'PrintTopic'),
      'profile' => array('Profile.php', 'ModifyProfile'),
      'profile2' => array('Profile.php', 'ModifyProfile2'),
      'quotefast' => array('Post.php', 'QuoteFast'),
      'quickmod' => array('Subs-Boards.php', 'QuickModeration'),
      'quickmod2' => array('Subs-Boards.php', 'QuickModeration2'),
      'recent' => array('Recent.php', 'RecentPosts'),
      'regcenter' => array('Register.php', 'RegCenter'),
      'register' => array('Register.php', 'Register'),
      'register2' => array('Register.php', 'Register2'),
      'reminder' => array('Reminder.php', 'RemindMe'),
      'removetopic2' => array('RemoveTopic.php', 'RemoveTopic2'),
      'removeoldtopics2' => array('RemoveTopic.php', 'RemoveOldTopics2'),
      'removepoll' => array('Poll.php', 'RemovePoll'),
      'repairboards' => array('RepairBoards.php', 'RepairBoards'),
      'reporttm' => array('SendTopic.php', 'ReportToModerator'),
      'search' => array('Search.php', 'PlushSearch1'),
      'search2' => array('Search.php', 'PlushSearch2'),
      'sendtopic' => array('SendTopic.php', 'SendTopic'),
      'setcensor' => array('Admin.php', 'SetCensor'),
      'setcensor2' => array('Admin.php', 'SetCensor2'),
      'setreserve' => array('ManageMembers.php', 'SetReserve'),
      'setreserve2' => array('ManageMembers.php', 'SetReserve2'),
      'smileys' => array('ManageSmileys.php', 'ManageSmileys'),
      'spellcheck' => array('Subs-Post.php', 'SpellCheck'),
      'splittopics' => array('SplitTopics.php', 'SplitTopics'),
      'stats' => array('Stats.php', 'DisplayStats'),
      'sticky' => array('LockTopic.php', 'Sticky'),
      'theme' => array('Themes.php', 'ThemesMain'),
      'trackip' => array('ManageMembers.php', 'trackIP'),
      'about:mozilla'; => array('Karma.php', 'BookOfUnknown'),
      'about:unknown'; => array('Karma.php', 'BookOfUnknown'),
      'unread' => array('Recent.php', 'UnreadTopics'),
      'unreadreplies' => array('Recent.php', 'UnreadTopics'),
      'viewErrorLog' => array('Errors.php', 'ViewErrorLog'),
      'viewmembers' => array('ManageMembers.php', 'ViewMembers'),
      'viewprofile' => array('Profile.php', 'ModifyProfile'),
      'vote' => array('Poll.php', 'Vote'),
      'viewquery' => array('ViewQuery.php', 'ViewQuery'),
      'who' => array('Who.php', 'Who'),
      '.xml' => array('News.php', 'ShowXmlFeed'),
   );

   // Get the function and file to include - if it's not there, do the board index.
   if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
   {
      // Catch the action with the theme?
      if (!empty($settings['catch_action']))
      {
         require_once($sourcedir . '/Themes.php');
         return 'WrapAction';
      }

      // Fall through to the board index then...
      require_once($sourcedir . '/BoardIndex.php');
      return 'BoardIndex';
   }

   // Otherwise, it was set - so let's go to that action.
   require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
   return $actionArray[$_REQUEST['action']][1];
}
?>

habe dann über den menue manager von mambo einen menue punkt mit ner mambo componente  und simple machines forum nen menue punkt erstellt  !

1. menue punkt ist da aber wenn ich ihn aufrufe kommt diese fehlermeldung :


Warning: main(com_smfcomponents/com_smf/SSI.php): failed to open stream: No such file or directory in /home/www/doc/9742/reptilefans.de/www/components/com_smf/smf.php on line 10

Fatal error: main(): Failed opening required 'com_smfcomponents/com_smf/SSI.php' (include_path='.:/usr/local/lib/php:/usr/local/php/lib/php') in /home/www/doc/9742/reptilefans.de/www/components/com_smf/smf.php on line 10


wenn ich aber das forum direkt aufrufe geht alles !


habe die neueste bridge und das neue smf inst nur zur info smf_1-0-rc2_install.zip und die bridge MOS_SMF_BRDIGEv2.04beta.zip



danke für eure hilfe liebe grüße smokey-joe

mediman

der pfad zu den dateien dürfte nicht passen ...

der pfad zu deinem smf ist :

/home/www/doc/9742/reptilefans.de/www/components/com_smf

also $smf_path = "/home/www/doc/9742/reptilefans.de/www/components/com_smf";

und so weiter ...

mediman
My Projects: http://ticker-oase.de 
Please do not PM me with support requests.

smokey-joe

dann bekomme ich diese fehler meldung was meinst denn mit und so weiter ???
danke für deine hilfe !
gruß smokey-joe


Warning: main(/home/www/doc/9742/reptilefans.de/www/components/com_smfcomponents/com_smf/SSI.php): failed to open stream: No such file or directory in /home/www/doc/9742/reptilefans.de/www/components/com_smf/smf.php on line 10

Fatal error: main(): Failed opening required '/home/www/doc/9742/reptilefans.de/www/components/com_smfcomponents/com_smf/SSI.php' (include_path='.:/usr/local/lib/php:/usr/local/php/lib/php') in /home/www/doc/9742/reptilefans.de/www/components/com_smf/smf.php on line 10

smokey-joe

so habs hin bekommen ! ;D

die smf.php muss so aussehen hab nur die relevanten zeilen angegeben ! :

zeile 1 - 10


<?php
/*
* This is the SMF bridge component for Mambo Open Source
* Created by Theodore Hildebrandt, September 20, 2004
* Version for SMF 1.0 RC2 created on October 12, 2004
*/

if (!defined('SMF')){
  require ("config.smf.php");
  require ($smf_path."SSI.php");


und die smf.config.php muss so aussehen wieder nur die relevanten zeilen angegeben !:

zeile 1 - 5


<?php


// This is the path to your SMF installation.  IT IS NOT A URL!!!
$smf_path = "/home/www/doc/9742/reptilefans.de/www/components/com_smf/";


schönen dank für eure hilfe  und bemühungen
mfg smokey-joe :D

smokey-joe

#4
hab doch noch ne frage !
ich möchte gerne das man sich nur einmal einloggen muss und nicht einmal für die features der side und einmal fürs forum wie bekomm ich das hin ?
besten gruß smokey-joe  :D

mediman

Quote from: smokey-joe on November 28, 2004, 10:56:15 AM
so habs hin bekommen ! ;D

die smf.php muss so aussehen hab nur die relevanten zeilen angegeben ! :

zeile 1 - 10


<?php
/*
* This is the SMF bridge component for Mambo Open Source
* Created by Theodore Hildebrandt, September 20, 2004
* Version for SMF 1.0 RC2 created on October 12, 2004
*/

if (!defined('SMF')){
  require ("config.smf.php");
  require ($smf_path."SSI.php");


und die smf.config.php muss so aussehen wieder nur die relevanten zeilen angegeben !:

zeile 1 - 5


<?php


// This is the path to your SMF installation.  IT IS NOT A URL!!!
$smf_path = "/home/www/doc/9742/reptilefans.de/www/components/com_smf/";


schönen dank für eure hilfe  und bemühungen
mfg smokey-joe :D


hmm, ich dachte genau das hatte ich erklärt ???
My Projects: http://ticker-oase.de 
Please do not PM me with support requests.

smokey-joe

Quote from: mediman on November 29, 2004, 01:34:32 PM
Quote from: smokey-joe on November 28, 2004, 10:56:15 AM
so habs hin bekommen ! ;D

die smf.php muss so aussehen hab nur die relevanten zeilen angegeben ! :

zeile 1 - 10


<?php
/*
* This is the SMF bridge component for Mambo Open Source
* Created by Theodore Hildebrandt, September 20, 2004
* Version for SMF 1.0 RC2 created on October 12, 2004
*/

if (!defined('SMF')){
  require ("config.smf.php");
  require ($smf_path."SSI.php");


und die smf.config.php muss so aussehen wieder nur die relevanten zeilen angegeben !:

zeile 1 - 5


<?php


// This is the path to your SMF installation.  IT IS NOT A URL!!!
$smf_path = "/home/www/doc/9742/reptilefans.de/www/components/com_smf/";


schönen dank für eure hilfe  und bemühungen
mfg smokey-joe :D


hmm, ich dachte genau das hatte ich erklärt ???

aber standard in der smf.php ist

<?php
/*
* This is the SMF bridge component for Mambo Open Source
* Created by Theodore Hildebrandt, September 20, 2004
* Version for SMF 1.0 RC2 created on October 12, 2004
*/

if (!defined('SMF')){
  require ("components/com_smf/config.smf.php");
  require ($smf_path."SSI.php");


da lag der fehler aber trotzdem danke .

und hast ne lösung für mein anderes problem ?

gruß smokey-joe

mediman

Quote from: smokey-joe on November 29, 2004, 01:40:01 PM
Quote from: mediman on November 29, 2004, 01:34:32 PM
Quote from: smokey-joe on November 28, 2004, 10:56:15 AM
so habs hin bekommen ! ;D

die smf.php muss so aussehen hab nur die relevanten zeilen angegeben ! :

zeile 1 - 10


<?php
/*
* This is the SMF bridge component for Mambo Open Source
* Created by Theodore Hildebrandt, September 20, 2004
* Version for SMF 1.0 RC2 created on October 12, 2004
*/

if (!defined('SMF')){
  require ("config.smf.php");
  require ($smf_path."SSI.php");


und die smf.config.php muss so aussehen wieder nur die relevanten zeilen angegeben !:

zeile 1 - 5


<?php


// This is the path to your SMF installation.  IT IS NOT A URL!!!
$smf_path = "/home/www/doc/9742/reptilefans.de/www/components/com_smf/";


schönen dank für eure hilfe  und bemühungen
mfg smokey-joe :D


hmm, ich dachte genau das hatte ich erklärt ???

aber standard in der smf.php ist

<?php
/*
* This is the SMF bridge component for Mambo Open Source
* Created by Theodore Hildebrandt, September 20, 2004
* Version for SMF 1.0 RC2 created on October 12, 2004
*/

if (!defined('SMF')){
  require ("components/com_smf/config.smf.php");
  require ($smf_path."SSI.php");


da lag der fehler aber trotzdem danke .

und hast ne lösung für mein anderes problem ?

gruß smokey-joe

ich bin dumm aber nicht blöd ...

auch wenn du deine fehlermeldung zwischenzeitlich geändert hast, lag der hauptfehler am falschen  pfad zu smf, das haste übrigens vergessen zu ändern ....  ;)

// This is the path to your SMF installation.  IT IS NOT A URL!!!
$smf_path = "components/com_smf";
war eindeutig falsch ...

richtig ist, wie du mittlerweile geändert hast ...

// This is the path to your SMF installation.  IT IS NOT A URL!!!
$smf_path = "/home/www/doc/9742/reptilefans.de/www/components/com_smf/";


genau wie ich vorgeschlagen habe ...

damit hatt sich der pfad zu SSI.php automatisch berichtigt ...

require ($smf_path."SSI.php");

der pfad zur config.smf.php war natürlich ebenfallss nur halb absolut ...
deswegem mein rat "und so weiter ..."

damit wären alle fehler behoben, und sind sie auch ...

naja wurscht ...

btw ... das login sollte shared funzen ...

mediman
My Projects: http://ticker-oase.de 
Please do not PM me with support requests.

smokey-joe

Quote from: mediman on November 30, 2004, 05:43:12 AM
ich bin dumm aber nicht blöd ...

das hab ich auch nicht behauptet und ich hab nicht meine fehlermeldung geändert sondern das [fast gelöst] im titel weggenommen !!! ;)

und wie meinst du das mit dem shared ?
sorry bin noch neu im php coden !
beste grüße smokey-joe

Advertisement: