The problem is not the SMF1.1 but the database prefix I tried it with SMF 1.0.3 same result, your mod requires the SMF database prefix to be "smf_" I use different prefix for my SMF database example: 'forum_'
I don't know but maybe cause I have two installation of SMF one in the main domain using smf_ prefix and one in the subdamin for testing purpose using smf103_
I'm having the same problem. Mambo seems blind to the yabbse_ prefix of my existing board. I'm on SMF 1.02 and Integration 1.3, and aside from that issue, everything else installed properly.
What exactly are the consequences of the database prefix not being recognized the bridge? Website: PinoyDVD
Has anybody of you tried to get inside of the code to solve the prob? look at /administrator/components/com_smf/ functions.smf.php
Code:
function isSMFInstalled() { global $database, $mosConfig_absolute_path, $mosConfig_db, $smf_prefix; include_once( $mosConfig_absolute_path . '/administrator/components/com_smf/config.smf.php' ); $result = mysql_list_tables($mosConfig_db); while ($row = mysql_fetch_row($result)) { if (substr($row[0],0,4) == $smf_prefix) { return true; } } return false; }
And what do you think of it? Look here: if (substr($row[0],0,4) == $smf_prefix) {
It's written here that prefix should be no longer than 4 symbols. What's that? That's a glitch and a cosiquence of author is not trying to cover all the angles.
Here's a 5 minute hack for me i've made. It's not universal and doesn't prevent user from entering incorrect data (simply change the above mentioned line to this one shown below):
Code:
if ((strpos($row[0],$smf_prefix)!==false)&&(strpos($row[0],$smf_prefix)==0)) {
So, finally u should get this:
Code:
function isSMFInstalled() { global $database, $mosConfig_absolute_path, $mosConfig_db, $smf_prefix; include_once( $mosConfig_absolute_path . '/administrator/components/com_smf/config.smf.php' ); $result = mysql_list_tables($mosConfig_db); while ($row = mysql_fetch_row($result)) { if ((strpos($row[0],$smf_prefix)!==false)&&(strpos($row[0],$smf_prefix)==0)) { return true; } } return false; }
What has been changed: 1. here we check whether the prefix could be found in table's name 2. then if it is found we check whether the found string is at the very beginning of the name
Some side-effects here: suppose i have prefix "msu_smf_" so if i enter... ..."msu_smf_" - match => correct prefix ..."msu_smf" - match => component thinks the prefix is correct ..."msu_sdf" - no match => incorrect prefix
As u may see the hack doesn't prevent admin from making easy mistakes. But it works. The purpose was to make one-line hack without any extra sub-routines.
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