Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 18

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Development > Development Announcements

Reply
 
LinkBack Thread Tools Display Modes
Old 14.07.2004, 00:19   #1 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 23
Writer is on a distinguished road
RedCross Invision & Mambo Integration - Is this GREAT NEWS???

I've just upgraded to Invision Power Board 2.0 and found this file called, Member Sync Module File. Does this mean that some can integrate the two databases?? Here's the file below..


Code:
<?php
/*
+--------------------------------------------------------------------------
|   Invision Power Board v1.2 Module File
|   ========================================
|   by Matthew Mecham
|   (c) 2001 - 2003 Invision Power Services
|   http://www.invisionpower.com
|   ========================================
|   Web: http://www.invisionboard.com
|   Email: matt@invisionpower.com
|   Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
|   > Member Sync Module File
|   > Module written by Matt Mecham
|   > Date started: 7th July 2003
|
+--------------------------------------------------------------------------
|
| USAGE:
| ------
|
| This module is designed to hold any module modifications to with registration
| It doesn't do much in itself, but custom code can be added to handle
| synchronization, etc.
|
| - on_create_account: Is called upon successful account creation
| - on_register_form: Is called when the form is displayed
| - on_login: Is called when logged in succcessfully
| - on_delete: Is called when member deleted (single, multiple)
| - on_email_change: When email address change is confirmed
| - on_profile_update: When profile is updated (msn, sig, etc)
| - on_pass_change: When password is updated
| - on_group_change: When the member's membergroup has changed
| - on_name_change: When the member's name has been changed
+--------------------------------------------------------------------------
*/

class ipb_member_sync
{
	var $class = "";
	
	function ipb_member_sync()
	{
	
	}
	
	//-----------------------------------------------
	// register_class($class)
	//
	// Register a $this-> with this class 
	//
	//-----------------------------------------------

	function register_class(&$class)
	{
		$this->class = $class;
	}

	//-----------------------------------------------
	// on_create_account($member)
	//
	// $member = array( 'id', 'name', 'email',
	// 'password', 'mgroup'...etc)
	//
	//-----------------------------------------------
	
	function on_create_account($member)
	{
		global $DB, $std, $ibforums;
		
		//---- START
		
		
		
		//---- END
	}
	
	//-----------------------------------------------
	// on_register_form()
	//
	//
	//-----------------------------------------------
	
	function on_register_form()
	{
		global $DB, $std, $ibforums;
		
		//---- START
		
		
		
		//---- END
	}
	
	//-----------------------------------------------
	// on_login()
	//
	// $member = array( 'id', 'name', 'email', 'pass')
	//           ...etc
	//-----------------------------------------------
	
	function on_login($member=array())
	{
		global $DB, $std, $ibforums;
		
		//---- START
		
		
		
		//---- END
	}
	
	//-----------------------------------------------
	// on_delete($ids)
	//
	// $ids = array | integer
	// If array, will contain list of ids
	//-----------------------------------------------
	
	function on_delete($ids=array())
	{
		global $DB, $std, $ibforums;
		
		$type = "";
		
		//---- START
		
		if ( is_array($ids) and count($ids) > 0 )
		{
			$type = 'arr';
		}
		else
		{
			$type = 'int';
		}
		
		
		
		//---- END
	}

	//-----------------------------------------------
	// on_email_change($id, $new_email)
	//
	// $id        = int member_id
	// $new_email = string new email address
	//-----------------------------------------------
	
	function on_email_change($id, $new_email)
	{
		global $DB, $std, $ibforums;
		
		//---- START
		
		
		//---- END
	}
	
	//-----------------------------------------------
	// on_pass_change($id, $new_raw)
	//
	// $id        = int member_id
	// $new_raw   = string new plain text password
	//-----------------------------------------------
	
	function on_pass_change($id, $new_raw)
	{
		global $DB, $std, $ibforums;
		
		//---- START
		
		
		//---- END
	}
	
	//-----------------------------------------------
	// on_profile_update($member)
	// 
	// $member = array: avatar, avatar_size, aim_name
	// icq_number, location, website, yahoo, interests
	// integ_msg, msnname, id, name
	// 
	//-----------------------------------------------
	
	function on_profile_update($member=array())
	{
		global $DB, $std, $ibforums;
		
		//---- START
		
		
		//---- END
	}
	
	//-----------------------------------------------
	// on_signature_update($member, $new_sig)
	// 
	// $member = array: id, name, email, etc
	// $new_sig = New signature
	// 
	//-----------------------------------------------
	
	function on_signature_update($member=array(), $new_sig="")
	{
		global $DB, $std, $ibforums;
		
		//---- START
		
		
		//---- END
	}
	
	//-----------------------------------------------
	// on_group_change()
	// 
	// $id        = int member_id
	// $new_group = new int() group id
	//-----------------------------------------------
	
	function on_group_change( $id, $new_group )
	{
		global $DB, $std, $ibforums;
		
		//---- START
		
		
		//---- END
	}
	
	//-----------------------------------------------
	// on_name_change()
	// 
	// $id        = int member_id
	// $new_group = new name
	//-----------------------------------------------
	
	function on_name_change( $id, $new_name )
	{
		global $DB, $std, $ibforums;
		
		//---- START
		
		
		//---- END
	}
}
?>
Can someone with MySQL knowledge decipher this...?
Writer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mambo, Invision, seperate site with same login psychowolfman Mambo 4.5 General Talk 4 17.08.2005 17:08
MOS no more - Mambo for sure ;) idigital Community Announcements 16 25.07.2004 06:14
Mambo News auf anderer non Mambo Seite anzeigen lassen möglich? schahab Komponenten 2 11.07.2004 00:52
Listmessenger integration with Mambo, any news??? chucknb Mambo 4.5 General Talk 0 19.05.2004 01:10


All times are GMT +2. The time now is 08:16.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.