Mambo-SMF Bridge FAQ

Started by Orstio, December 04, 2004, 01:36:05 PM

Previous topic - Next topic

xenovanis

Quote from: giba_choo on July 03, 2005, 05:13:51 AM
Q. Why do I receive this error when attempting to login to SMF (which is wrapped)

8: Undefined property: login
File: /home/wtntenni/public_html/forums/Sources/MOS_SMF.php
Line: 48



I have two databases, both database users have full privelages to each database. My forums can be visited at their normal url, and via mambo, is this normal?

If anyone would like to have a look for me,
Mambo
http://www.wtntennis.info/home (follow "forum" on the left nav bar)
SMF
http://www.wtntennis.info/forums/index.php

I can login with the unwrapped version, but I get the above error when logging into the wrapped forums.

Try this:

http://www.simplemachines.org/community/index.php?topic=36228.msg266862#msg266862
"Insanity: doing the same thing over and over again and expecting different results."

Ikanian

Q: I installed everything then I got the "Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /xxxx/xxxx/xxxx/xxxx/smf/Sources/Subs.php on line 19" error. I added the mambo user to the smf database, then the smf user to the mambo database.

When I went to my site then, the login pannel only said log out, so I clicked on that then I got this:

Fatal error: Cannot redeclare md5_hmac() (previously declared in /home/zeldaet/public_html/tcinformant/forum/Sources/Load.php:210) in /home/zeldaet/public_html/tcinformant/forum/Sources/MOS_SMF.php on line 502

Any help?

xenovanis

Quote from: Ikanian on July 06, 2005, 11:26:47 AM
Q: I installed everything then I got the "Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /xxxx/xxxx/xxxx/xxxx/smf/Sources/Subs.php on line 19" error. I added the mambo user to the smf database, then the smf user to the mambo database.

When I went to my site then, the login pannel only said log out, so I clicked on that then I got this:

Fatal error: Cannot redeclare md5_hmac() (previously declared in /home/zeldaet/public_html/tcinformant/forum/Sources/Load.php:210) in /home/zeldaet/public_html/tcinformant/forum/Sources/MOS_SMF.php on line 502

Any help?

You are using the wrong version of the bridge:

http://www.simplemachines.org/community/index.php?topic=40971.msg298321#msg298321
"Insanity: doing the same thing over and over again and expecting different results."

bmt3000

Quote from: Orstio on January 12, 2005, 07:47:52 PM
QuoteIt appears that only SMF/forum users get migrated. With the bridge login, I can login/out with the bridge using a pre-existing smf login.

But, I cannot login using a pre-existing mambo login.

Am I incorrect here?

Correct.  You can migrate your Mambo users over to SMF by using this script:

http://mamboforge.net/frs/download.php/2369/mos2smf.zip [nofollow]

I am a newbie in those matters.
Line 4 of the mos2smf.php needs editing. Where do I find the required info to edit that line correctly?
Thanks

rjoe_brandon


Quote

Try this:

http://www.simplemachines.org/community/index.php?topic=36228.msg266862#msg266862

Thanks!  I was going nuts trying to find this solution and read your post and followed the link and it worked like a charm!

Thanks for your time.

Best,

R. Joe

Mortal

Hi there,

this is the best user support forum I've seen. Praps you can help me as well: how must I modify the registration template in order to make it possible for users to give their real name, not only a login name? There must be a second field apart from the member name, and it would be best if this was a "required field" that cannot be left blank. Is it possible to provide me some code snippets that could do this?

Greets,
Mortal

conimus

When I upload the smf_mambo3.1 file in the package manager and I apply mod, I see the following:

Installing this package will perform the following actions: 
    Type                        Action                                     Description
1. Execute Modification     ./Sources/Subs.php                           Failure
2. Execute Modification     ./index.php                                        Success
3. Extract File                    ./Sources/MOS_SMF.php

What do I have to do to make this one work?

Orstio

Make sure you are installing the proper version for your version of SMF.

This one is for SMF 1.0.x:

http://mamboforge.net/frs/download.php/6472/MOS_SMF_BRIDGEv3.19a_stable.zip

This one is for SMF 1.1 beta 3:

http://mamboforge.net/frs/download.php/6471/MOS_SMF_BRIDGEv3.19a_SMF1.1b3.zip

Nitro

i have a fresh installation of SMF 1.1 beta 3 and when i use the package manager to upload the bridge "MOS_SMF_BRIDGEv3.19a_SMF1.1b3.zip" i get the error below:

"The package you tried to upload either is not a valid package or has become corrupted. "

is there a way around this problem?

thank you for comments!
MPF Rocks!!!

Orstio

Quotei have a fresh installation of SMF 1.1 beta 3 and when i use the package manager to upload the bridge "MOS_SMF_BRIDGEv3.19a_SMF1.1b3.zip" i get the error below:

"The package you tried to upload either is not a valid package or has become corrupted. "

The bridge is a number of packages inside the zip.  Unzip it on your local computer first.

There is a step-by-step installation inside.  Only step 1 contains a package for SMF's package manager.

tentronik

Hmm i use a diffrent version of the bridge - mine requires both applications to use the same database.
Also i got an extra module for login in.

Check your installation readme if yit requires same database then you need to make a backup with create tables and run this on the other database, after you made a backup there too.

But maybe you just forgotten to install the login module.


DarkClownNizzo

When I complete step 4, pasting the code into the template's index.php, I get the following errors:

QuoteWarning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/dclwn/public_html/main/templates/rhuk_planetfall/index.php on line 2

Parse error: parse error, unexpected T_STRING in /home/dclwn/public_html/main/templates/rhuk_planetfall/index.php on line 2

I'm no good at HTML/PHP/etc., so I can't figure out what's wrong. Here's the index code for anyone who'd be able to help:

<?php
defined
( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
if ( $my->id ) {
initEditor();
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link href="<?php echo $mosConfig_live_site;?>/templates/rhuk_planetfall/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/templates/rhuk_planetfall/images/favicon.ico" />
<?php
global $sc, $context;

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

$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];

mysql_select_db($mosConfig_db);
?>
</head>
<body class="page_bg">
<a name="up" id="up"></a>
<?php
@$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) and !$_REQUEST['task'] == 'edit' ) ? 2 : 1;
?>
<div align="center" >
<table width="798" border="0" cellpadding="0" cellspacing="0" class="big_frame">
<tr>
<td colspan="<?php echo $collspan_offset + 1; ?>">
<img src="<?php echo $mosConfig_live_site; ?>/templates/rhuk_planetfall/images/top_bar.jpg" width="798" height="9" alt=""/>
</td>
</tr>
<tr>
<td colspan="<?php echo $collspan_offset; ?>" class="header">
<img src="<?php echo $mosConfig_live_site; ?>/templates/rhuk_planetfall/images/spacer.png" width="646" height="9" alt=""/>
<br />
</td>
<td class="top_right_box" style="width: 151px; padding-left: 5px;" valign="top">
<table cellpadding="0" cellspacing="1" border="0" width="120" class="contentpaneopen">
<tr>
<td class="contentheading" width="145">
Search
</td>
</tr>
<tr>
<td>
<form action='index.php' method='post'>
<div class="searchblock" id="searchblock">
Enter Keywords:
<input size="15" class="inputbox" type="text" name="searchword" style="width:128px;" value="search..."  onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" />
<input type="hidden" name="option" value="search" />
<div align="left">
<input type="submit" value="GO" class="button" style="width:35px;" />
</div>
</div>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="<?php echo $collspan_offset+1; ?>" class="silver_box" style="height:26px;">
<div id="silver_toolbar">
<div id="silver_date">
<?php echo mosCurrentDate(); ?>
</div>
<div id="silver_menu">
<?php mosLoadModules ( 'user3' ); ?>
</div>
<div style="clear: both;"></div>
</div>
</td>
</tr>
<tr>
<td valign="top" class="content_box">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td>
<!-- main content area -->
<div class="contentblock" id="contentblock" style="width:<?php echo 635 - ( 151 * ( $collspan_offset-1 ) )   ?>">
<?php include $GLOBALS['mosConfig_absolute_path'] . '/pathway.php'; ?>
<br />
<?php
if ( mosCountModules( 'top' ) ) {
mosLoadModules ( 'top' );
}
mosMainBody();
?>
<br />
</div>
<?php
if ( mosCountModules( 'bottom' ) ) { ?>
<div class="footerblock" id="footerblock">
<?php mosLoadModules ( 'bottom' ); ?>
<br />
</div>
<?php
}
?>
</td>
</tr>
</table>
</td>
<?php
if ( ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) and @!$_REQUEST['task'] == 'edit' ) {
?>
<td valign="top" class="middle_box" width="151" style="width:151px">
<div id="middle_box">
<?php
if ( mosCountModules( 'right' ) ) {
?>
<div class="rightblock" id="rightblock" style="width:145px">
<?php mosLoadModules ( 'right' ); ?>
</div>
<?php
}
if ( mosCountModules( 'user2' ) ) {
?>
<div class="user2block" id="user2block" style="width:143px">
<?php mosLoadModules ( 'user2' ); ?>
</div>
<?php
} ?>
</div>
</td>
<?php
}
?>
<td valign="top" class="right_box" width="151" style="width: 151px">
<div id="right_box">
<!-- far right menu -->
<div class="leftblock" id="leftblock" style="width:143px">
<?php mosLoadModules ( 'left' ); ?>
</div>
<div class="user1block" id="user1block" style="width:143px">
<?php
if ( mosCountModules( "user1" ) ) {
mosLoadModules ( 'user1' );
}
?>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="<?php echo $collspan_offset+1; ?>">
<img src="<?php echo $mosConfig_live_site; ?>/templates/rhuk_planetfall/images/top_bar.jpg" width="798" height="9" alt="" />
</td>
</tr>
</table>
<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
</div>
<?php mosLoadModules( 'debug', -1 );?>
<?php mysql_select_db($db_name); ?>
</body>
</html>

xenovanis

Is this how it looked before you saved and uploaded it or after that? What editor have you been using?
"Insanity: doing the same thing over and over again and expecting different results."

DarkClownNizzo

The code is from the edited template index.php. The errors appeared after uploading it.

For the editing, I used Wordpad.

DarkClownNizzo

Can anyone help here? I sorta need to get the site done...

Kindred

umm... don't use wordpad?

try ConText, UltraEdit or TextEdit
Сл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."

Orstio

#96
Q:  I have installed SMF and Joomla.  Everything works, except the bridge does not log me into Joomla.

A:  In MOS_SMF.php, we need to end the old Joomla session.  Because the name of the session cookie changed in Joomla, we need to change the code a bit:

Find:

setcookie('sessioncookie', '', -3600, '/');

Replace with:

    $sessionCookieName = md5( 'site'.$GLOBALS['mosConfig_live_site'] );
setcookie ($sessionCookieName,"",-3600, "/" );


This will be changed in the release for Joomla-SMF bridge.

Ronny

It's not working! Login works now. I get logged in both to SMF and Joomla but when logout I am still stay logged in Joomla  :-\

Orstio

There are two instances of this in MOS_SMF.php.

wengen

Where do I find the MOS_SMF.php files?

Advertisement: