I'm wondering if anyone has (or knows of) a mambot that will allow you to search SMF forums from within the main Mambo search function? I noted that the SMF-Bridge project has just released a mambo to do this. I've had a look at it, but (not being a very advanced PHP/Mambo coder) I couldn't see what would be needed to make it work for Mambo-SMF.
There's probably some restrictions on the code, because I don't see why it wouldn't work. I can check that when I get a chance. It should be fairly easy.
IMPORTANT! THE INDEX.PHP FOR YOUR MAMBO TEMPLATE MUST BE MODIFIED!
The SMF bridge instructions tell you to add this code immediately above </head>:
global $sc, $context; if (!defined('SMF')){ require ("administrator/components/com_smf/config.smf.php"); require_once ($smf_path."/SSI.php"); } $sc = &$context['session_id'];
You need to change this code to the following:
global $sc, $context; if (!defined('SMF')){ require ("administrator/components/com_smf/config.smf.php"); require ($smf_path . "/Settings.php"); require_once ($smf_path."/SSI.php"); } $sc = &$context['session_id']; Simply add the missing line between the require statements.
If you don't do this, your site will not function!
I attempted this with Latest MamboHacks bridge and Latest Mambo. The bot DID NOT WORK. cowboy, post your thoughts or maybe post your working version please. This is a heavily anticipated feature...at least by me
err I didnt realized that MamboHacks SMF bridge modifieds mambo/index.php and not mambo/templates/templatename/index.php. This is better actually since it will work on any template you have. To make smf searchbot work on your site using Mambohacks.com bridge add this code to your mambo/index.php:
Code:
if (file_exists($smf_path."/Settings.php")) require ($smf_path . "/Settings.php");
right after
Code:
if (file_exists($smf_path."/SSI.php")) require_once ($smf_path."/SSI.php");[
This should be around line 28 under //MAMBOHACKS.COM category. Make sure you do this after you patch your index.php file via bridge's backend component. This is tested on Mambo 4.5.2.3 with the latest bridge. Take care.
None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved. TERMS OF USE