JOOMLA + DOLPHIN SMART

Locked
yourartnet
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Apr 04, 2009 3:06 pm

JOOMLA + DOLPHIN SMART

Post by yourartnet » Sat Apr 04, 2009 3:15 pm

Hi Every body.
I am triyng to integrate Dolphin smart community builder 6.1.4 and joomla.
But I can't find some variables.
I have already built an integration for phpBB3 and Dolphin, but I can't really understand where to find the right variables for joomla.
This is a sample of the file that I have used to integrate Dolphin and Phpbb3.This file is called from some scripts that I have insert in the Dolphin code.Can you help me to find the same variables for Joomla and the files that I have to include?Any advices? :
<?php

define("IN_PHPBB", true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include('includes/functions_user.php');
include('includes/auth/auth_db.php');

switch ( $_GET['action'] ) {
case 'create' :

$password = urldecode( $_GET['password'] );
$username = urldecode( $_GET['username'] );
$user_email = urldecode( $_GET['email'] );

$username_clean = strtolower($username);
$sql_ary = array(
'username' => $username,
'username_clean' => $username_clean,
'user_password' => $password,
'user_pass_convert' => 1,
'user_email' => $user_email,
'user_email_hash' => crc32(strtolower($user_email)) . strlen($user_email),
'group_id' => 2,
'user_type' => 0,
);

user_add ( $sql_ary );

break;
case 'delete' :
$iID = preg_replace("[^0-9]", '', $_GET['id']);
if ( $iID ) {
user_delete('remove', $iID);

$sQuery = "SELECT COUNT(*) AS `iValue` FROM `Profiles` WHERE `Status` = 'Active' ";
$rResult = $db->sql_query($sQuery);
$iCount = null;

while( $aRow = $db->sql_fetchrow($rResult) ){
$iCount =(int) $aRow['iValue'];
}

$db->sql_query("UPDATE `phpbb_config` SET `config_value` = '{$iCount}' WHERE `config_name` = 'num_users' ");

}
break;
case 'password_update' :
$iID = preg_replace("[^0-9]", '', $_GET['id']);
$password = md5( $_GET['password'] );

if ( $iID ) {
$sQuery = "
UPDATE
`phpbb_users`
SET
`user_password` = '{$password}'
WHERE
`user_id` = {$iID}
";
$db->sql_query($sql);
}
break;
case 'login' :

// login
$user->session_begin();
$auth->login($_GET['username'], $_GET['password']);

break;
}

?>

Naturally I will give this integration for free to everybody.If you are interested on help me, post here or just contact me at [email protected] .
Please many people are searching for this integration.It could be a must to have!
YourArtnet

Locked

Return to “Third Party Testing for Joomla! 1.5”