Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 20 May 2001, 14:57
jrwap's Avatar
jrwap jrwap is offline
 
Join Date: Oct 2001
database integration

I just installed a new script that works as a yahoo style directory. In order for some one to add a site, they need to fill in a valid emal address and username which is then saved in a database. I would like them to have to be a member in order for them to post. How can I do this?

I would like the add part of the script to check to see if they are a member, and send their username and password from vbulletin to the database for the directory. That way they can simply use their site wide user name and password to add more sites or edit them in the future.

Thanks,

-JRW
Reply With Quote
  #2  
Old 20 May 2001, 15:02
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
that could be done but not without letting someone look at the source and tweaking it. i did that once before for a similar kind of script
Reply With Quote
  #3  
Old 20 May 2001, 15:41
jrwap's Avatar
jrwap jrwap is offline
 
Join Date: Oct 2001
Ok, here is the code that I'm working with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The part at the bottom is what I would like to know how to change.

Thanks again,

-JRW
Reply With Quote
  #4  
Old 20 May 2001, 16:03
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
hmm i'm not very good at mysql connections but i can do basic. if you wish to use different username and passwords from vBB and have the users store stuff in a different database you would need two connections in there, another database and you'd have to edit the other database. sorry i can't help further because this is out of my reach.
Reply With Quote
  #5  
Old 21 May 2001, 16:10
jrwap's Avatar
jrwap jrwap is offline
 
Join Date: Oct 2001
I really want everyone to have the same username and password site wide, even if it is stored exactly the same way in a different database. I just need to know how to check the given username and password against the vb database and then I should be able to same it in the directory database for future use.

-JRW
Reply With Quote
  #6  
Old 21 May 2001, 17:20
Martz's Avatar
Martz Martz is offline
 
Join Date: Oct 2001
Well, afaik you wouldn't need to access the database again for the username and password as they should already be validated and have a cookie. This means that you only need to include the cookie function (where and whatever that may be) to check they are logged in, otherwise display a link so they can do a vB login and get the cookie required?

Also I think you need to make sure that the cookie is available to the entire domain, and not just vB.

Sorry i can't help more, but I think thats the approcahe you may need to take? Could someone confirm this or tell me I am wrong
Reply With Quote
  #7  
Old 22 May 2001, 00:05
jrwap's Avatar
jrwap jrwap is offline
 
Join Date: Oct 2001
Ok let me try to explain what I need a little clearer. This directory script uses its own database. It asks for a username and and email address. The site is then added into the directory after the admin has ok'ed it. The user can go back into the directory and edit the site listing by entering the username and email address.

What I want the script to ask for a username and password. Then it will check it against the vbulletin database. If the username and passwrod match, they can be entered into the directory database. Then the script will simply check its own database if the user wants to edit the site listing.

I just need to know how to check a username and password against the vbulletin database before allowing the site into the directory. That way only registered users will be able to add to the directory.

Thanks,

-JRW
Reply With Quote
  #8  
Old 22 May 2001, 18:55
jrwap's Avatar
jrwap jrwap is offline
 
Join Date: Oct 2001
Anyone?
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 20:05.

Layout Options | Width: Wide Color: