It is currently Thu Nov 15, 2018 1:19 pm




 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: Integration with aMember PRO
PostPosted: Wed Jun 02, 2010 4:54 am 
Support Staff

Joined: Fri Nov 01, 2002 4:06 am
Posts: 43
Using ChatBlazer's External User Data Source feature, it is easy to integrate ChatBlazer with your aMember database.

The PHP script below should be placed in the base directory of your aMember installation.


<?php
//
// ChatBlazer integration script for aMember PRO
//
// This script should be placed in the root directory of your aMember
// installation.
//
// Tested: 3.1.8PRO
// Last Update: 2010-06-02
//
include('config.inc.php');

$_product_id = array('ONLY_LOGIN');

$n $_POST['username'];
$p $_POST['password'];

$reply = array();

if (
$db && $n) {
    
// username, password, member ID, accept MD5
    
$ok $db->check_login($n$p$_SESSION['_amember_id'], FALSE);
    if (
$ok) {
        
$reply['username'] = $n;
        
// Add user fields here if any
    
}
}

echo 
http_build_query($reply);

?>


Then specify the script's URL in the admin setting for the user data source.

e.g. http://www.mywebsite.com/amember/cb_amember_auth.php



_________________
Samuel
ChatBlazer Support
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron