Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 3:50 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, 6, 7 ... 12  Next
Author Message
Posted: Tue Jan 10, 2006 3:23 pm 
Joomla! Explorer
Joomla! Explorer
Offline

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

code updated to joomla 1.0.5

i have fixed all "errors" with warning message

@Hailo

Code:
// unable to login with module, we now need to add or update the user record.
if($module->app_useradd)
{
   if($application->userset($username, $passwd, $row->email))
   {
      // re-call the login function in this class
      $this->login($username,$passwd);
      break;
   }
}



this is not so good, because $passwd is allready as md5 hash, and not as plain password
so that the function "userset" can not add the user to the application correctly, because it needes the plain password of the user

the call $this->login()  musst be called without any parameters
if you call it with parameters, the second parameter( passwd ) must be a md5 hash of the password, so that no one login in any application will work ( it needs plain password )

AND if you call the login function with this parameter, the code of com_connector will be skipped

if anyone will be allways logged in, the cookie will be set for a one year


Top
  E-mail  
 
Posted: Tue Jan 10, 2006 3:34 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
i have included a patch file for any versions of joomla 1.0.x
so that you can easy update and patch your joomla.php himself

under linux you can use the "patch"  application for it

1. login into shell on your server

2. change into the joomla "includes" folder

3. download the patchfile " com_connector-patch.diff" ( in the zip file )

4. run this command in the joomla include folder:

patch -i com_connector-patch.diff

5. done ;)


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


Last edited by leonsio on Thu Jan 12, 2006 10:37 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Wed Jan 11, 2006 9:23 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Jan 11, 2006 6:17 am
Posts: 5
When I ran the patch I get the following error on the site.

Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/dmxgamin/public_html/includes/joomla.php on line 1505


Top
  E-mail  
 
Posted: Thu Jan 12, 2006 10:39 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
pmflav wrote:
When I ran the patch I get the following error on the site.

Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/dmxgamin/public_html/includes/joomla.php on line 1505


i have updated the patch

now it should works


if you has allready patched the joomla.php file

open it and change

Code:
                                        if(!$useradded)
                                        {
                                                if (isset($bypost)) {
                                                        mosErrorAlert(_LOGIN_INCORRECT);
                                                } else {
                                                        $this->logout();
                                                        mosRedirect("index.php");
                                                }
                                                exit();
                                        }
                                        else
                                        {
                                                // user login
                                                $this->login();
                                        }
                                }
                       

                }
        }


to

Code:
                                        if(!$useradded)
                                        {
                                                if (isset($bypost)) {
                                                        mosErrorAlert(_LOGIN_INCORRECT);
                                                } else {
                                                        $this->logout();
                                                        mosRedirect("index.php");
                                                }
                                                exit();
                                        }
                                        else
                                        {
                                                // user login
                                                $this->login();
                                        }
                                }
                        }

                }
        }


Top
  E-mail  
 
Posted: Thu Jan 12, 2006 10:59 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Jan 11, 2006 6:17 am
Posts: 5
Thanks for the quick reply.
Worked a treat.

Now to get it to work with Vwar, probably me not reading the instructions properly.


Top
  E-mail  
 
Posted: Thu Jan 12, 2006 4:35 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Aug 19, 2005 10:30 pm
Posts: 73
I would like to give this a try, but before I do, does anyone have a working example of this using standalone joomla and standalone phpbb (not the component version)?  My problem is that I've started out with phpbb and only recently decided to use joomla for that site.  I really want to get the phpbb users to login to joomla.  Any help is appreciated.

TIA


Top
  E-mail  
 
Posted: Thu Jan 12, 2006 8:29 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
actual it is only posible to login in phpbb over joomla

the part on the phpbb side is not compleated

i will install next week some examples at my side

to show common login with

joomla -> phpbb ( or/and vbulletin )

with this connector you can connect more that one application at same time with joomla


Top
  E-mail  
 
Posted: Thu Jan 12, 2006 10:27 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 16, 2005 1:53 pm
Posts: 39
leonsio wrote:

with this connector you can connect more that one application at same time with joomla


Thankyou for universal connector this is something that has been needed for a longtime. People hate to log/logout of different applications and universal connector is an answer to that aggravation.

My questions are
  • if I install this will it work with CB [community builder] ?
  • will UC work with other applications I install if I disable their log-in/log-out functions?

Great work
JZ
www.mycarfs.com


Top
  E-mail  
 
Posted: Thu Jan 12, 2006 11:08 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Aug 19, 2005 10:30 pm
Posts: 73
leonsio wrote:
actual it is only posible to login in phpbb over joomla

the part on the phpbb side is not compleated

i will install next week some examples at my side

to show common login with

joomla -> phpbb ( or/and vbulletin )

with this connector you can connect more that one application at same time with joomla


???

Sorry for not understanding this.  Right now I have all users on phpbb.  Does that mean I can use this?


Top
  E-mail  
 
Posted: Fri Jan 13, 2006 8:15 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
jz wrote:
leonsio wrote:

with this connector you can connect more that one application at same time with joomla


Thankyou for universal connector this is something that has been needed for a longtime. People hate to log/logout of different applications and universal connector is an answer to that aggravation.

My questions are
  • if I install this will it work with CB [community builder] ?
  • will UC work with other applications I install if I disable their log-in/log-out functions?

Great work
JZ
www.mycarfs.com


this will dont work with CB, because it use own login functions and they must be patched
i dont have enouth time at the moment to do this

it can work with any applications, but you must create own modules for this applications, its realy easy
you can use as template any "_sql" module from optional modules


Top
  E-mail  
 
Posted: Fri Jan 13, 2006 8:18 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
ezsearch wrote:

???

Sorry for not understanding this.  Right now I have all users on phpbb.  Does that mean I can use this?


you can use it, if you have all your users in phpbb
the synchronisation is by first login, so that you dont need to synchronise the users first

if you dont want to have 2 logins, you can modify the phpbb template to login in joomla ( change the

Top
  E-mail  
 
Posted: Fri Jan 13, 2006 10:37 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Dec 07, 2005 9:46 pm
Posts: 20
leonsio wrote:
@Hailo

Code:
<?php
// unable to login with module, we now need to add or update the user record.
if($module->app_useradd)
{
   if($application->userset($username, $passwd, $row->email))
   {
      // re-call the login function in this class
      $this->login($username,$passwd);
      break;
   }
}
?>



this is not so good, because $passwd is allready as md5 hash, and not as plain password
so that the function "userset" can not add the user to the application correctly, because it needes the plain password of the user

the call $this->login()  musst be called without any parameters
if you call it with parameters, the second parameter( passwd ) must be a md5 hash of the password, so that no one login in any application will work ( it needs plain password )

AND if you call the login function with this parameter, the code of com_connector will be skipped

if anyone will be allways logged in, the cookie will be set for a one year


Maybe you did not look through my changes fully... I use a new variable "$cleanpasswd" this holds the clean un-hashed password. This comes from the remember me cookie (after it is decrypted) or the posted form data when you attempt to login.

The above code needs to be run to use the remember me cookie correctly.

So far its all working fine for me with these modifications.


Last edited by Hailo on Fri Jan 13, 2006 10:58 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Sun Jan 15, 2006 10:11 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Nov 04, 2005 12:08 pm
Posts: 17
This one looks really nice, my site is using vBridge now, but the common login wont work really...

So, because our site is using a discussionbot my question ist, if it is possible to run this (http://forum.joomla.org/index.php/topic,21594.0.html) Discussionbot with your Bridge on vBulletin, or if it is possible to modify it? If there would be a working discussionbot i would instantly use the software, butwithout it isn't usefull for me.

Marcus


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 11:54 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
i dont know i must check it

i think it needs the userid from vbulletin, this puts vbridge in the joomla usertable

my connector works without it

i will late make an discussbot but it will works only with php5


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 1:25 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Nov 04, 2005 12:08 pm
Posts: 17
what features do you want to relase in your discussbot?

when do you think you have it?

thx for your information...


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 1:50 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
Shadow_84 wrote:
what features do you want to relase in your discussbot?

when do you think you have it?

thx for your information...


feauture is write comments for joomla content, the comments will be posted in vbulletin, als post, in new thread

release ~2-3 weeks


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 2:00 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Nov 04, 2005 12:08 pm
Posts: 17
for me it is importent, that i not only have a button below a news or article to go to the comments, i like it when the comments are displayed directly below the news, another nice feauture would be to have a little editor directly below the last comment to directly write a comment.

i read, that the smf discussbot in version 4.1 has that feauture, but i don't know if you can use some code or inspiration from the script...

here is an example what i mean, this site displays the news comments directly below the content, and there is also an editor :-) i hope you understand what i mean, my english isn't that good...

2-3 Weeks would be great, so i could use your connector for the new revision of our website...

thx

Marcus


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 2:49 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
so in etwa wird es auch aussehen ;)


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 2:53 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Jan 09, 2006 6:21 am
Posts: 15
Have testet this a bit. But I feel it is a bit strange why it can not behave like the wrapper component. E.g. keep the content of the module in the main window and still see the joomla menu etc. (like a frame system)

I only have the following options!

Same window with browser option
New window with browser option
New window without browser option

Missing:

Same window in joomla

Best regards
Benny


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 3:00 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 16, 2005 1:53 pm
Posts: 39
Quote:
My questions are
  • if I install this will it work with CB [community builder] ?
  • will UC work with other applications I install if I disable their log-in/log-out functions?


this does not work with CB, because it uses it's own login functions and they must be patched.
i dont have enough time at the moment to do this

it can work with other applications, but you must create your own modules for these applications, its really easy
you can use as template from any "_sql" module or from optional modules


I think a universal connector  is a great idea I'm going to look into leonsio's code to see how easy it is to use with other applications. Think how much easier you make your life and the life of your users if they only have to sign up once to use any application at your site.

Think about users signing up at your site being able to sign up at my site by simply copying their registration informaton to  my site.

Thank you Leonsio and does anyone else want to start a discussion on this a share their ideas?

JZ
www.mycarfs.com


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 3:05 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
Beast.dk wrote:
Have testet this a bit. But I feel it is a bit strange why it can not behave like the wrapper component. E.g. keep the content of the module in the main window and still see the joomla menu etc. (like a frame system)

I only have the following options!

Same window with browser option
New window with browser option
New window without browser option

Missing:

Same window in joomla

Best regards
Benny




okay i will try to add wrapped mode in the next version

@Shadow_84
the discuss mod which i'm working on, will only work with PHP5 version and vbulletin module ( because i dont have any changes on joomla user table and dont have the user ID to make comments in the forum, the vbulletin module dont needs it )

@jz

CB has own usermanagement ( changing username/password/email ) and own login/logout
so that this parts must be changed to work with this connector
look at the joomla.php file and search for "COM_CONNECTOR"  this parts must walk in CB code


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 3:22 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Nov 04, 2005 12:08 pm
Posts: 17
leonsio wrote:
@Shadow_84
the discuss mod which i'm working on, will only work with PHP5 version and vbulletin module ( because i dont have any changes on joomla user table and dont have the user ID to make comments in the forum, the vbulletin module dont needs it )


thats allright!

freu mich auf den bot :-)

Gruss


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 8:17 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Aug 23, 2005 8:44 am
Posts: 44
Dont know what I am doing wrong but I have uploaded the files as is says to and the component isnt even showing in my admin section.  Any ideas as to what I have done wrong?  I have uploaded them all to the correct places.

Thanks


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 8:22 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Jan 09, 2006 6:21 am
Posts: 15
ravenfire wrote:
Dont know what I am doing wrong but I have uploaded the files as is says to and the component isnt even showing in my admin section.  Any ideas as to what I have done wrong?  I have uploaded them all to the correct places.


Execute the SQL commands  ;)


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 8:32 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Aug 23, 2005 8:44 am
Posts: 44
Thanks for the reply.  I thought I did those right, however, I have just changed from mambo to Joomla today using the migration programme.  Obviously this means I dont have jos_ at the beginning of my original tables so do I need to change something?

Thanks


Top
  E-mail  
 
Posted: Sun Jan 15, 2006 8:52 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Aug 23, 2005 8:44 am
Posts: 44
I have this working now I just changed the jos_ to the same as what I have already as prefixes. 


Last edited by ravenfire on Mon Jan 16, 2006 8:07 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Mon Jan 16, 2006 8:12 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Aug 23, 2005 8:44 am
Posts: 44
Im getting errors not sure where I am going wrong.  I have the PHP4 mod (throught sql database) and presume I have the database set up ok as it shows it in the admin section of the connector component.

When I try to do do the mod-online and publish it I get:-

Parse error: parse error, unexpected '{' in /home/mysite/public_html/modules/mod_whosonline.php on line 48

When I try to do the recent posts on vbulletin forum mod that goes with this I get:-

Parse error: parse error, unexpected '{' in /home/mysite/public_html/modules/mod_vbulletin_recent_posts.php on line 61

When I go into the admin section of the connector component and it has the details I put in my site url and other details click save but its not saving, any ideas?

Thanks


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 9:12 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
all addons are for vbulletin ( not SQL ) module

i will try to make sql version of the modules in the next weeks


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 9:36 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Aug 23, 2005 8:44 am
Posts: 44
Ahh that would explain it, sorry didnt realise.  So at the moment would the main advantage of this be the login only if you use the php4 version?


Top
  E-mail  
 
Posted: Mon Jan 16, 2006 9:54 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 02, 2005 11:20 am
Posts: 354
ravenfire wrote:
Ahh that would explain it, sorry didnt realise.  So at the moment would the main advantage of this be the login only if you use the php4 version?


with com_connector you have common login and global usermanagement ( changiung email/username/password )

this is the primary function of the connector

all other things are addon which i have created, and they have nothing to do with com_connector primary function ;)

anyone can create addons for it, the connector give you the access data to your application
so that you dont need to add the separatly like vbridge ;)

if you want to have recent posts from vbulletin you can use mod_vbridge_recent_posts module
it should work too ( but you must enter connection data ;) )


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, 6, 7 ... 12  Next

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