Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 12:37 pm (All times are UTC )

 




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: JOOMLA + DOLPHIN SMART
Posted: Sat Apr 04, 2009 3:15 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat Apr 04, 2009 3:06 pm
Posts: 1
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 yourartnet@gmail.com .
Please many people are searching for this integration.It could be a must to have!
YourArtnet


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 2 guests


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

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group