Jump to content
xisto Community
Sign in to follow this  
vujsa

Mambo-Invision Power Board Bridge Advanced Install IPB4Mambo Installation Instructions

Recommended Posts

Here is a tutorial I did for Antilost.com. Thought it might be useful here as well.

Original Post

Tutorial Finished!

 

Here is the deal, the original release of invision4mambo is no longer supported by the individual that developed it.  Additionally, the bridge was written for Mambo 4.5.1 but doesn't work for Mambo 4.5.2. 

 

The installation method for invision4mambo is what causes the bridge not to work for newer versions of Mambo.  This is caused by original Mambo files being completely overwritten with new files provided in the installation package for invision4mambo.  So what happens is that when you install the new files, you replace some of the Mambo 4.5.2 files with modified versions of the Mambo 4.5.1 files.  So you get several Fatal Errors as a result because Mambo 4.5.2 is looking for Mambo 4.5.2 functions in Mambo 4.5.1 files. :D

 

Instead of a simple file replacement installation, I am writing a new installation method that is more complex but should allow for better flexibility including not losing all of your existing mods.  This should work for Mambo 4.5.2 and above as well.

 

RELATED READING:

First Invisionize Post After Invision4Mambo Was Released.

 

 

MamboForge Invision4Mambo Project Page.

REQUIRED FILES:

IPB SDK 1.5.0 FINAL - Click on View Modification at the bottom of the first post.

 

 

MamboForge invision4mambo Project Summary

 

FOREWORD: 

This installation procedure should only be attempted on a new installation of Mambo.  You can use your current installation of IPB be errors may occur especially if Mods have been applied to IPB. 

 

(It is possible to install this bridge over an existing Mambo installation if you are not concerned about losing all user information contained in the Mambo database.) 

 

Mambo and IPB MUST use the same database  in order to work. 

 

Your username, password, and email address must be the same in both Mambo and IPB. 

Installation Steps: Section 1 - Getting Started:  

Create a new database for IPB and Mambo to use. (Skip if there is already a database created even if they use separate database, will discuss merging databases later) 

 

 

Install Mambo Open Source on your server in the root web directory (/public_html/). 

 

 

Install Invision Power Board on your server in you intended forum directory (/public_html/forum/). 

 

 

Upload your  IBP_SDK files to your sever in a new directory inside of the forum directory (/public_html/forum/ipb_sdk/). 

 

 

Open the IPB index.php file for editing. (/public_html/forum/index.php

- Find: 


require_once( 'configuration.php' );

linenums:0'>include_once( 'globals.php' ); require_once( 'configuration.php' );

 

Add Before: - (Be sure to replace the pathways and urls with your information.)

 

//INVISION4MAMBO //SDK Setup - Change the path to the path to IBSDK/ipbsdk_class.inc.php require_once "C:/Program Files/wamp/www/sdkb3/ipbsdk_class.inc.php"; $SDK =& new IPBSDK();  require_once ("C:/Program Files/wamp/www/invision/invision4mambo.php"); $invision4mambo = new invision4mambo();  //Invision Board Variables (Change to the path to your forums) $invisionboard->vars['url'] = "http://forums.xisto.com/no_longer_exists/;;

 

----------------------------------------------------------------------------------------------------------------------------------

 

In the file /MAMBO/administration/components/com_users/admin.users.html.php

 

Find:

    <table class="adminform">     <tr>     	<th colspan="2">     	User Details     	</th>     </tr>

 

Add After:


    <b>Cannot edit most of the settings as you are using invision4mambo.</b>

    </td>

    </tr>

 

                linenums:0'>    <tr>     <td colspan='2'>     <b>Cannot edit most of the settings as you are using invision4mambo.</b>     </td>     </tr>                

 

----------------------------------------------------------------------------------------------------------------------------------

 

In the file /MAMBO/administration/components/com_users/admin.users.php

 

Find:


  exit();

}

linenums:0'>if (!$row->check()) {   echo "<script> alert('".$row->getError()."'); window.history.go(-2); </script>\n";   exit(); }

Replace With:


// exit();

//}

 

linenums:0'>//if (!$row->check()) { // echo "<script> alert('".$row->getError()."'); window.history.go(-2); </script>\n"; // exit(); //}

 

----------------------------------------------------------------------------------------------------------------------------------

 

In the file /MAMBO/administration/components/com_users/toolbar.users.html.php

 

Find: - Note that there is an execption here between 4.5.1 and 4.5.2

  mosMenuBar::addNew();- OR FOR Mambo 4.5.2 Find:  mosMenuBar::addNewX();

 

 

Replace With: - Note that there is an execption here between 4.5.1 and 4.5.2

  //mosMenuBar::addNew();- OR FOR Mambo 4.5.2 Replace With:  //mosMenuBar::addNewX();

Find:

  mosMenuBar::deleteList();

 

 

Replace With:

  //mosMenuBar::deleteList();

 

----------------------------------------------------------------------------------------------------------------------------------

 

In the file /MAMBO/administration/components/com_users/toolbar.users.php

>>>>>>>>>>>>>>>>>>>>>>>>>>>> No Changes Needed <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

 

----------------------------------------------------------------------------------------------------------------------------------

 

In the file /MAMBO/components/com_login/login.html.php

>>>>>>>>>>>>>>>>>>>>>>>> No Changes Needed <<<<<<<<<<<<<<<<<<<<<<<<<<<

 

----------------------------------------------------------------------------------------------------------------------------------

 

In the file /MAMBO/components/com_login/login.php

 

Find:

// load the html drawing class require_once( $mainframe->getPath( 'front_html' ) );

 

Add Before:

//INVISION4MAMBO header("Location: ".$invisionboard->vars['url']."login.html");

 

----------------------------------------------------------------------------------------------------------------------------------

 

In the file /MAMBO/components/com_registration/registration.html.php

 

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> No Changes Needed <<<<<<<<<<<<<<<<<<<<<<<<<<<

 

----------------------------------------------------------------------------------------------------------------------------------

 

In the file /MAMBO/components/com_registration/registration.php

 

Find:

switch( $task ) { 	case "lostPassword": 	lostPassForm( $option ); 	break;  	case "sendNewPass": 	sendNewPass( $option ); 	break;  	case "register": 	registerForm( $option, $mosConfig_useractivation ); 	break;  	case "saveRegistration": 	saveRegistration( $option ); 	break;  	case "activate": 	activate( $option ); 	break; }

 

Replace With:

switch( $task ) { 	case "lostPassword": 	//INVISION4MAMBO 	//lostPassForm( $option ); 	header("Location: ".$invisionboard->vars['url']."index.php?act=Reg&CODE=10"); 	break;  	case "sendNewPass": 	//INVISION4MAMBO 	//sendNewPass( $option ); 	header("Location: ".$invisionboard->vars['url']."index.php?act=Reg&CODE=10"); 	break;  	case "register": 	//INVISION4MAMBO 	//registerForm( $option, $mosConfig_useractivation ); 	header("Location: ".$invisionboard->vars['url']."register.html"); 	break;  	case "saveRegistration": 	//INVISION4MAMBO 	//saveRegistration( $option ); 	header("Location: ".$invisionboard->vars['url']."register.html"); 	break;  	//INVISION4MAMBO 	//case "activate": 	//activate( $option ); 	//break; }

 

----------------------------------------------------------------------------------------------------------------------------------

 

 

In the file /MAMBO/components/com_user/user.php

 

Find:


linenums:0'>$access->canEditOwn = $acl->acl_check( 'action', 'edit', 'users', $my->usertype, 'content', 'own' );

 

Add After:

//INVISION4MAMBO header("Location: ".$invisionboard->vars['url']."my-controls.html");

 

----------------------------------------------------------------------------------------------------------------------------------

 

In the file /MAMBO/components/com_user/user.html.php

 

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> No Changes Needed <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

 

----------------------------------------------------------------------------------------------------------------------------------

 

In the file /MAMBO/includes/mambo.php

 

In: 

    function login( $username=null,$passwd=null ) {

 

Find:

  global $acl;

 

Add After:

  global $SDK, $invision4mambo; //INVISION4MAMBO

 

Find:


  $passwd = trim( mosGetParam( $_POST, 'passwd', '' ) );

 

linenums:0'>  $username = trim( mosGetParam( $_POST, 'username', '' ) );   $passwd = trim( mosGetParam( $_POST, 'passwd', '' ) );

Add After::

  	//INVISION4MAMBO   	$invisionpass = $passwd;

 

 

Find:

  $remember = trim( mosGetParam( $_POST, 'remember', '' ) );

 

Add After:

 


    $invision4mambo->create_account($member);

  }

  }

linenums:0'>  //INVISION4MAMBO   if(!$invision4mambo->is_member_in_mambo($username)){   if($SDK->login($username,$invisionpass,1)){     $member = $SDK->get_info($SDK->name2id($username));     $member['password'] = $invisionpass;     $invision4mambo->create_account($member);   }   }

 

Find:

    // fudge the group stuff

 

Add Before:

    //INVISION4MAMBO     if(!$SDK->login($username,$invisionpass)){     echo "<script>alert(\""._LOGIN_INCORRECT."\"); window.history.go(-1); </script>\n";     exit();     }

 

IN:

function logout() {

 

Find:

  //mosCache::cleanCache('com_content');

 

Add Before:

  global $SDK; //INVISION4MAMBO

 

Find:

  @session_destroy();

 

Add After:

  //INVISION4MAMBO   $SDK->logout();

 

Installation Steps: Section 5 - Invision File Modifications:

 

The original invision4mambo installation instructions reguarding the modification and replacement of Invision files will work fine.

 

Well, That's it!  You should have a successful installation of an Invision and Mambo bridge using invision4mambo.

 

For support, I suggest using the related reading links above.  I will not be offering full public support for this modification.  Too many things going right now.  Sorry. :D

 

I hope that this guide will be usefull. :D

 

vujsa

Happy modding, :D

 

vujsa

Share this post


Link to post
Share on other sites

Thanks, this has been helpful.I have been using mambo open source for about a year now. Its a very good content management system. Gives the user extensive control over their website content.

Share this post


Link to post
Share on other sites

Little problem here Vujsa - this tutorial needs reviewing. Half the functions you told to replace have become deprecated in Mambo 4.5.3 - and so are a bunch of files.So this won't work on it anymore. I couldn't find a good part in the new one.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.