This is a discussion on "VB Forum" within the Databases section. This forum, and the thread "VB Forum are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
VB Forum
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
VB Forum
Hello,
I have a quick question: I have a website where people must register to get more features/ options. Also i use vbulletin as forum. But i dislike the fact that registered users of my website must register twice (once for my website and the second time for vbulletin) when they want to use the forum. The question is: How can i use the data that i store in the mysql database of registered users for auto registration for vbulletin. And of course auto login |
|
|
|
#2
|
|||
|
|||
|
Re: VB Forum
I have never done this the way you are talking about but I think it will work, the same.
What I would do is have the login script on your site, really login and register on the forum. To do this you would need to change the variables on the sites login page to the forums login page. (or an easier way use a iframe) After you have the login / register mysql info and variables ready, all you need to do now is change the variables on the hiddent content pages, and possibly config.php. I hope I explained this well. (It would have been easier if you described it better and gave a link) Cheers I hope |
|
#3
|
||||
|
||||
|
Re: VB Forum
the login script used is not overly complicated,
adding the VB script to it wouldn't be hard
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#4
|
||||
|
||||
|
Re: VB Forum
This is a database question:
Moved to MySQL Forum
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
|
#5
|
|||
|
|||
|
Re: VB Forum
oh ok il give it a try i supose.
|
|
#6
|
||||
|
||||
|
Re: VB Forum
Isn't more of a php one? This is combining two php scripts so they use the same session.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#7
|
|||
|
|||
|
Re: VB Forum
Quote:
lol alex do you know how this can be done? like of by hand? im having trouble |
|
#8
|
||||
|
||||
|
Re: VB Forum
i've never really looked at the vb log in script
send it to me on msn in a min
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#9
|
|||
|
|||
|
Re: VB Forum
ok give me a min also
|
|
#10
|
|||
|
|||
|
Re: VB Forum
Well heres the code to the login form copied out of my template....
Last edited by split-visionz; Aug 30th, 2007 at 05:06. |
|
#11
|
||||
|
||||
|
Re: VB Forum
quite easy then
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#12
|
|||
|
|||
|
Re: VB Forum
You can easily get access to the users name, user groups and things like that with a call to get the info out of the user table as well...
Last edited by split-visionz; Aug 30th, 2007 at 06:04. |
|
#13
|
||||
|
||||
|
Re: VB Forum
Quote:
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
|
#14
|
|||
|
|||
|
Re: VB Forum
lol thanks il give it another go then. il wait for you on msn alex some time roday but il give it a go and il write here if i get stuck again
|
|
#15
|
|||
|
|||
|
Re: VB Forum
If I were you, I would use vb's database as the main database for the site and put all of your tables in there. It would be alot easier then inserting and converting the opposite.
|
|
#16
|
|||
|
|||
|
Re: VB Forum
^ completely confused now
do you have msn? |
|
#17
|
|||
|
|||
|
Re: VB Forum
nope..lol. I only use AIM.. But Im about to take off anyways lol.
What I said was in response to what Dan quoted from your first post... It would be easier to do the opposite of what your saying and just use the VB database and login system on the main site |
|
#18
|
|||
|
|||
|
Re: VB Forum
yea but i needed it to connect to my site
|
|
#19
|
|||
|
|||
|
Re: VB Forum
How much info is in your database yet when your sites not live? Just create a script that inserts the same tables you have in your sites DB into the VB database.
Then in all your pages just include "globals.php" that I talked about before. If you include that then your already connected to the VB database so all mysql calls will be on that database. Or you can use $vbulletin->db->query(""); to make your SQL calls. Or are you using a sepereate full blown CMS on the main site? |
|
#20
|
|||
|