Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
login from an external application into vb
Old 08-17-2009, 12:11 PM login from an external application into vb
Novice Talker

Posts: 6
Trades: 0
Hello Everybody

I have an external application build on PHP and MySQL. The user and password hash is same as vbulleting uses.

How can i make vbulettin to use my database only for logging in.

I mean if login to my external application, i should log in to vbulettin forum

Regards
tommario64 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-17-2009, 01:00 PM Re: login from an external application into vb
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Write your own login function that passes the details to both login systems
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-18-2009, 06:09 AM Re: login from an external application into vb
Novice Talker

Posts: 6
Trades: 0
Without synchronizing, is there a way to use users data from another database, like what i have now.

I appreciate the response.

Thanks
tommario64 is offline
Reply With Quote
View Public Profile
 
Old 08-18-2009, 06:27 AM Re: login from an external application into vb
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Just connect to the database and read out whatever you need from the appropriate table(s)
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-18-2009, 08:08 AM Re: login from an external application into vb
Novice Talker

Posts: 6
Trades: 0
Well, i appreciate your feedback.

I am not a expert in PHP. As a user of vbulettin forum. Now i want to integrate vb forums to my website.

My Website is going to be main registration and login portal.
As it is inconviniece if the user registers/login twice.

So if the log in to my portal, he can use the forums without logging in again.
I think it has been done already, please point some easy and good code.

Please suggest.
Thanks again.
tommario64 is offline
Reply With Quote
View Public Profile
 
Old 08-18-2009, 08:15 AM Re: login from an external application into vb
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
I think it has been done already
Yes it has...

Quote:
please point some easy and good code.
Asking for that, is like asking a random guy in the street how to install a turbo in a 40 years old car without giving the model and mark.

And again, the exact and correct answer for your question is
Quote:
Originally Posted by chrishirst View Post
Just connect to the database and read out whatever you need from the appropriate table(s)
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 08-18-2009 at 08:17 AM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 08-18-2009, 08:17 AM Re: login from an external application into vb
Novice Talker

Posts: 6
Trades: 0
Ok

I am using vb 3.8.3.

I did get what details, it should need more.
tommario64 is offline
Reply With Quote
View Public Profile
 
Old 08-18-2009, 08:29 AM Re: login from an external application into vb
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Well, I have to admit I don't program on the windows platform, so VB is out of my league.

Generic directions and pseudo code would be:
1) instantiate a db connection object
2) connect to the vbulletin database
3) send a query to the db to check the given username/password from your VB application
4) If there is a corresponding record, let the user go further. Otherwise, present him the login window again
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 08-18-2009, 08:46 AM Re: login from an external application into vb
Novice Talker

Posts: 6
Trades: 0
I guess i didn't explain, what i need.

Pleas go through the link.

http://www.vbulletin.org/forum/showt...om+application

I am trying to use the bottom PHP code, but i have problems.

I appreciate that.
tommario64 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to login from an external application into vb
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.55687 seconds with 12 queries