Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 9:10 pm (All times are UTC )

 




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 349 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 12  Next
Author Message
Posted: Wed Nov 30, 2005 10:13 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Nov 19, 2005 9:00 pm
Posts: 21
The logins don't seem to work either (very same problem as vbridge).  Looks like joomla or vbulletin not communicating.  Anyway, I'll wait for the next update.


Top
  E-mail  
 
Posted: Wed Nov 30, 2005 10:18 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
thepipper wrote:
The logins don't seem to work either (very same problem as vbridge).  Looks like joomla or vbulletin not communicating.  Anyway, I'll wait for the next update.


any error messages?

i will make tomorow a debug version from this module, which gives some more infos about connecting status
so that i can better find a error reason


Top
  E-mail  
 
Posted: Wed Nov 30, 2005 10:42 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Nov 19, 2005 9:00 pm
Posts: 21
leonsio wrote:
thepipper wrote:
The logins don't seem to work either (very same problem as vbridge).  Looks like joomla or vbulletin not communicating.  Anyway, I'll wait for the next update.


any error messages?

i will make tomorow a debug version from this module, which gives some more infos about connecting status
so that i can better find a error reason


No error,  I log into joomla normally, then I go to vbulletin but I am not logged in.  The logins are not synced.


Top
  E-mail  
 
Posted: Wed Nov 30, 2005 10:47 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
thepipper wrote:
leonsio wrote:
thepipper wrote:
The logins don't seem to work either (very same problem as vbridge).  Looks like joomla or vbulletin not communicating.  Anyway, I'll wait for the next update.


any error messages?

i will make tomorow a debug version from this module, which gives some more infos about connecting status
so that i can better find a error reason



No error,  I log into joomla normally, then I go to vbulletin but I am not logged in.  The logins are not synced.



which php/mysql/joomla/vbulletin version do you use?


Top
  E-mail  
 
Posted: Thu Dec 01, 2005 12:27 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Nov 19, 2005 9:00 pm
Posts: 21
php 5.11
mysql 5.0.15
joomla 1.0.4
vbulletin 3.5.1


Top
  E-mail  
 
Posted: Thu Dec 01, 2005 7:03 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
thepipper wrote:
php 5.11
mysql 5.0.15
joomla 1.0.4
vbulletin 3.5.1



rgen you should use a soap based "vbulletin" module it is more stable
and i will release some extension for this module like mod_vbulletin_recent_posts module


Top
  E-mail  
 
Posted: Thu Dec 01, 2005 8:19 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Aug 29, 2005 5:17 pm
Posts: 297
Location: Austria
Is there any progress in Phpbb2 connector?

I am using Comunity Builder RC2 as registring/loging system and i wonna use phpbb2 forum. Althrought i need to import somehow user to phpbb2 user table i would like to have such connector with phpbb2 support..

My site is FREE and built from Open Source product, and baying Vbuillten is not one off sollution :))

THnx

_________________
BosanskoHercegovacki Chat Komjuniti
http://www.chat.ba


Top
   
 
Posted: Thu Dec 01, 2005 8:26 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
crow wrote:
Is there any progress in Phpbb2 connector?

I am using Comunity Builder RC2 as registring/loging system and i wonna use phpbb2 forum. Althrought i need to import somehow user to phpbb2 user table i would like to have such connector with phpbb2 support..

My site is FREE and built from Open Source product, and baying Vbuillten is not one off sollution :))

THnx


i will try to make phpbb module next week


Top
  E-mail  
 
Posted: Thu Dec 01, 2005 12:53 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
*update to alpha 3*

changes are in the first post ( download link too )


Top
  E-mail  
 
Posted: Thu Dec 01, 2005 2:51 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
crow wrote:
Is there any progress in Phpbb2 connector?

I am using Comunity Builder RC2 as registring/loging system and i wonna use phpbb2 forum. Althrought i need to import somehow user to phpbb2 user table i would like to have such connector with phpbb2 support..

My site is FREE and built from Open Source product, and baying Vbuillten is not one off sollution :))

THnx


okay i've done phpbb2 connector

but it is very experemental

it allows to add user to joomla but not to phpbb2
common login should work


You do not have the required permissions to view the files attached to this post.


Top
  E-mail  
 
Posted: Thu Dec 01, 2005 8:44 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Aug 29, 2005 5:17 pm
Posts: 297
Location: Austria
Okey first thnx for working on this,
But i dont understand how this can be connectet between Comunity Builder RC2 and phpbb2?
You sey it can import user to Joomla (that is done with CB)...
It sims that i mixed what this connector do or mybe not :)).

I will try to see what this can do with my test page... Thnx for experimentig on this.

_________________
BosanskoHercegovacki Chat Komjuniti
http://www.chat.ba


Top
   
 
Posted: Thu Dec 01, 2005 8:50 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
crow wrote:
Okey first thnx for working on this,
But i dont understand how this can be connectet between Comunity Builder RC2 and phpbb2?
You sey it can import user to Joomla (that is done with CB)...
It sims that i mixed what this connector do or mybe not :)).

I will try to see what this can do with my test page... Thnx for experimentig on this.


i dont know that Comunity Builder RC2 do and how it works

this conector makes following things

it synchronise joomla with other applications, so that you have a same use in your applications and joomla

if Comunity Builder RC2 use joomla users, so you must have access to the users in Comunity Builder RC2


Top
  E-mail  
 
Posted: Fri Dec 02, 2005 7:45 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Aug 29, 2005 5:17 pm
Posts: 297
Location: Austria
If you wonna check what is Comunity Builder go to http://www.joomlapolis.com.
It actualy change Joomla  user registration and login system. It is in sync with Joomla jos_user so i think that is actualy Joomla with exchanced mode :)).

So filling information from joomla to phpbb2 will work, or change the table where com_connector look for user to match CB user table..

_________________
BosanskoHercegovacki Chat Komjuniti
http://www.chat.ba


Top
   
 
Posted: Fri Dec 02, 2005 8:43 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Aug 19, 2005 8:22 am
Posts: 168
Hi  Leonsio
First thanks for great work.
I have question abour making modules. As for some time now I'm looking for a way to intagrate Moodle (the best OS e-learning platform) with Joomla. There was project for mambo but it appears to be dead so when I found information about your component I got new hope that it will be possible.
I was searching this topic for some instructions how to make custom modules but I couldn't find any. Are you planning to describle it in general how to make module for this component? thx


Top
   
 
Posted: Fri Dec 02, 2005 9:52 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
@crow

i will look at CB next week


@stone

u will make instructions to create own modules

this is a little howto:

1. create own class, called like you module ( and class name )

2. each module must have functions called: login/logout/userget/userset/getcookies

example.class.php

[php]
// this parameter will be used for module administrations
// left is params value, right is a name in the admincp

$params=array(  'dbhost' => 'Database Host',
                'dbuser' => 'Database User',
                'dbpass' => 'Database Pass',
                'dbname' => 'Database Name',
                'prefix' =>  'Database Prefix',
                'cookie' => 'Cookie Prefix');


class example extends mosMainFrame
{
        // connection ressource
        var $__res= null;
        // gives the status of the module
        var $__status= false;
      // contains module informations
        var $__data;
      // class contains user information, must be a class!!
        var $__userdata=null;
      // not used at the moment
        var $__sessionid=null;

        // AS module you will get params class from mosParameters, id is a ID from the component
        // in this functions you can make soap/xmlrpc or database connects
        function example ($module,$id='')
        {
                $this->__data = $module;

                $this->__res = new database( $this->__data->get('dbhost'),
                                        $this->__data->get('dbuser'),
                                        $this->__data->get('dbpass'),
                                        $this->__data->get('dbname'),
                                        $this->__data->get('prefix'), false );

                if(is_resource($this->__res->_resource))
                {
                        $this->__status=true;
                }
                else
                {
                        $this->__status=false;
                        $this->__res=null;
                }

                return $this->__status;
        }

      // function to login a user
      // returns true ore fals
      // !!! it must set a __userdata->userid variable with the userid, it is needed to userset function
        function login($username,$password)
        {
                if(is_null($this->__res))
                {
                        return $this->__status;
                }

                // query to access user
                $query = "SELECT user_id AS userid, username, user_password, user_active, user_level
                        FROM " . $this->__data->get('prefix') . "users
                        WHERE username = '" . str_replace("\\'", "''", $username) . "'
                        AND user_password='".md5($password)."' AND user_active=1       
                        ";
                $this->__res->setQuery( $query );
                if($this->__res->loadObject($userdata))
                {
                        $this->__userdata=$userdata;
                        $this->__status=true;
                }
                else
                {
                        $this->__status=false;
                }
                return $this->__status;

        }
 
      // ths function will be called by transfer from the user to your application
        function activate()
        {
                if(is_null($this->__res))
                {
                        return $this->__status;
                }


                return $this->__status;

        }
 
      // this function must unset the cookie, that you have set or make other things that your application need to logout a user
        function logout()
        {
                $lifetime = time() - 1800;
                // cookies setzen
                setcookie( $this->__data->get('cookie')."userid", " ", $lifetime, "/" );
                setcookie( $this->__data->get('cookie')."password", " ", $lifetime, "/" );
                setcookie( $this->__data->get('cookie')."sessionhash", " ", $lifetime, "/" );
        }

      // function to set the user in your application
        function userset($username, $password, $email)
        {
                if(is_null($this->__res))
                {
                        return $this->__status;
                }

        }

      // function to get userdata from your application
    // variables __userdata->username, __userdata->name and __userdata->email must be present
        function userget($userid)
        {

                if(is_null($this->__res))
                {
                        return $this->__status;
                }

                $query="SELECT u.*, user_id AS userid FROM
                        ".$this->__data->get('prefix')."users  AS u
                        WHERE userid='$userid'
                        ";
                $this->__res->setQuery( $query );
                if($this->__res->loadObject($userdata))
                {
                        $this->__userdata=$userdata;
                        $this->__userdata->name=$userdata->username;
                        $this->__status=true;
                }
                else
                {
                        $this->__status=false;
                }

                return $this->__status;
        }

        // function to "set" cookie
      // all cookies will be set by the connector
      // you must give the cookies as array to the connector
    /*
example:

array cookiename = array(
                                    0 => cookievalue
                                    1 => cookiepath 
                                    2 => cookiedomain  ( can be empty but must be present )
                                )

*/

        function getcookies()
        {
                // cookies setzen
                $cookies[$this->__data->get('cookie')."userid"] = array( $this->__userdata->userid, '/','');
                $cookies[$this->__data->get('cookie')."password"] = array( md5($this->__userdata->password.$this->__data->get('license')), '/','');

                // Session erstellen und als Cookie schreiben
                ### kommt noch ###
                return $cookies;
        }

}


?>
[/php]


Top
  E-mail  
 
Posted: Fri Dec 02, 2005 8:34 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Aug 19, 2005 8:22 am
Posts: 168
Thank you for you reply, sadly it is way beyond my php skills:(
But at least I will give it a try, and try to learn sth to make it work :)
Thx


Last edited by stone on Fri Dec 02, 2005 8:37 pm, edited 1 time in total.

Top
   
 
Posted: Fri Dec 02, 2005 8:40 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
stone wrote:
Thank you for you reply, sadly it is way beyond my php skills:(
But at least I will give it a try, and try to learn sth to make it work :)
Thx


its not difficult

look at the login function
and change the query to query that you needs

select * from YOURUSERTABLE
where YOURUSERNAMEFIELD='$username'
AND YOURUSERPASSWORDFIELD='$password'

( or md5(password) or other hash type )

thet the same at the userget function und insert in the userset function

at the getcookie function you must only create an array with the names of your cookies


Top
  E-mail  
 
Posted: Fri Dec 02, 2005 8:48 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
i have testet the login with vbulletin_sql on one forum
and we have found one reason why your users will dont be added to joomla ( maybe if you test something )

all users MUST have different email address, i dont produce any errors if add user to joomla dont work, this module will be "skipped"
so if you have an user in vbulletin/phpbb and not in joomla and you cannot login in joomla

first of all look if the users email allready present in the joomla user database


Top
  E-mail  
 
Posted: Fri Dec 02, 2005 8:53 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Aug 19, 2005 8:22 am
Posts: 168
leonsio wrote:
its not difficult

look at the login function
and change the query to query that you needs

select * from YOURUSERTABLE
where YOURUSERNAMEFIELD='$username'
AND YOURUSERPASSWORDFIELD='$password'

( or md5(password) or other hash type )

thet the same at the userget function und insert in the userset function

at the getcookie function you must only create an array with the names of your cookies


thx, I will give it a try
hiw should I add this module whent it is ready?
Should I make installtion file for it or should I just copy it somewhere?


Top
   
 
Posted: Fri Dec 02, 2005 8:57 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
just copy the file named mymodule.class.php in the components/com_connector/modules folder
thats all ;)


Top
  E-mail  
 
Posted: Wed Dec 07, 2005 9:14 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
end of the week i will make new release

this release will have functions to change user details
(it will be automaticaly changed in all modules )

no changes of core files except joomla.php is needed
this function needs little addon by the modUser object

other components like com_user will work without any changes


after it i will make plugins for vbulletin, to make common login from vbulletin with joomla

if it done i will make an module for joomla to use vbulletin as comments system


Top
  E-mail  
 
Posted: Wed Dec 07, 2005 9:23 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Aug 29, 2005 5:17 pm
Posts: 297
Location: Austria
WIll it have anything to make this working, Joomla 1.0.4 With Comunity Builder RC2 ,and phpbb2... :)))

_________________
BosanskoHercegovacki Chat Komjuniti
http://www.chat.ba


Top
   
 
Posted: Wed Dec 07, 2005 9:39 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
phpbb2 module is done
(login/logout)

i dont know how CB2 works
and I do not have enough time to explore it

so that you can wait, or fine someone who will make module for CB2 or other changes on CB2

i have allready request to makes modules for wbb and ipb


Top
  E-mail  
 
Posted: Wed Dec 07, 2005 1:29 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
new version is online

in this version it is posible to manage a users
so that you can change username/password/email and it will be set global* to all application what you have connected

i have added some function which are called by connector

to update a user, your module should have this function

function userupd( oldusername, newusername, newpassword, newemail )


to delete a user your module must have this function

function userdel ( username )


there no changes on other core files except joomla.php needed ( changing in the mosUser object )


* actuall supported only by vbulletin module


Top
  E-mail  
 
Posted: Wed Dec 07, 2005 10:19 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Dec 07, 2005 9:46 pm
Posts: 20
I would like to request "vWar" for com_connector as it is hard to find a good way to intergrate this software due to it being so specialised to online gaming and clans.

vWar software: http://www.vwar.de/

Thanks you, and awsome work so far.


Top
  E-mail  
 
Posted: Thu Dec 08, 2005 12:15 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
i have updated vbulletin_sql module to full support of com_connectors

you can now change the user data ( other usermenu or admincp )
so that this module now have full functionality like vbridge


Top
  E-mail  
 
Posted: Thu Dec 08, 2005 7:42 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Aug 19, 2005 8:22 am
Posts: 168
Hi, I'm running joomla and vbulletin on server with php4, any chance for this integration to work?


Top
   
 
Posted: Fri Dec 09, 2005 1:48 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Nov 19, 2005 9:00 pm
Posts: 21
This newer verison of connector is working a little better than before.  One problem I see is when I log IN Joomla, it doesn't log IN vbulletin AND when I log IN vbulletin, it doesn't log IN Joomla.

And logging OUT vbulletin doesn't log OUT of Joomla.


BUT the logging OUT Joomla does log OUT vbulletin nicely!  And registering also works too.

Also, the mod_vbulletin_recent_posts v1.0 still doesn't not work.  I do not see any posts displayed. I get this little error message:

Database Connect fault


Top
  E-mail  
 
Posted: Fri Dec 09, 2005 7:18 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
hehe this versions supports only commpon login with vbulletin from joomla side

joomla -> vbulletin

for the other side i will make plugins ( i will make one connnector for vbulletin )

also if you login in joomla you should be logged in vbulletin ( if you have setup correct informatin: cookie prefix, vbulletin license NOT you memberid by vbulletin.com you can finde the license in every vbulletin file at the top of the file )

the mod_vbulletin_recent_post is woking only with vbulletin module, not with vbulletin_sql

if you are using vbulletin_sql you can use marcos mod_vbulletin_recent_posts module


Top
  E-mail  
 
Posted: Fri Dec 09, 2005 9:32 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
stone wrote:
Hi, I'm running joomla and vbulletin on server with php4, any chance for this integration to work?



you should use vbulletin_sql module
it is written in php4 and works like vbridge ( but without alter user table )


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 349 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 12  Next

Quick reply

 



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

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