![]() |
#21
|
|||
|
|||
![]()
hey Sea, you got any idea how to just bridge the tables? So passwords work? Then I'll have a look at sesisons.
__________________
Exdiogene have taken over the TommyK CreateBB.com multisites. :cool: MyBBCodes.com having more than 175 plugins available |
#22
|
||||
|
||||
![]()
Gosh, I fail at this. xP
I learned cookies over the summer (not an easy feat for a 13 year old) and that was hard enough. I better go through the lessons before that before I get up to that, right? Having basic PHP knowledge would be useful here. x3 As for the cookies - I think so. The only problem, is even with the salt, I don't think that the first password thing is the same. So are we changing a function in both login.php and register.php? |
#23
|
|||
|
|||
![]()
Well I was planning on removing the Registation from Adoptable script and using MyBB's to make the process simpler. With the salt the password will be exactly the same.
Here is how it works: PASSWORD + Salt = saltPASSWORD which is then coded into MD5 Basically the script just needs to take the pass the user has entered into the form, query the salt from the database then add that to the front. Then convert ot MD5 and check if it matches the password hash in the MyBB_users table. Off Topic: BTW arianna, I'm 16 ;) doing A-level Computing a year early. |
#24
|
||||
|
||||
![]()
I think that that idea is smarter. :) I won't remove the registration, I'll just rename it or something.
Ah, I get it now. That's why it doesn't work like that. Hmm, so how do we now get this to work with the adoptables? |
#25
|
|||
|
|||
![]()
Well we need to make it take the username and pass from the Mybb_users tbale instead of Adopt_users table. We then need it to take the salt from the database where the UID = the one we want. Then it needs to add the salt to the password we enter, and encode it in MD5. Then it matches that to the Password string in the Mybb_users table :D
So, Im guessing in login.php: This: PHP Code:
should become this: PHP Code:
|
#26
|
||||
|
||||
![]()
Shouldn't everything be in one table? That way, if a user changes her/his password, they can still log on, right?
As for the code, where are we getting the actual password from. From the mybb table, or from the adopts user table? |
#27
|
|||
|
|||
![]()
we are getting the username and password from the MyBB tables and using the Adopts tables for the levels and adopts etc...
The adopts_users tbale could be dropped as it wouldnt be needed any more and the fields form the Adopts_users table could be added into the MyBB_users table. |
#28
|
||||
|
||||
![]()
That's good - maybe dropping the table is necessary - I haven't found out how to merge, so I'll do it manually.
|
#29
|
|||
|
|||
![]()
It shouldnt be nessiccary to drpo it, just the tbale wont be used anymore so there is no point really having it. I would make sure you can bridge the scripts before you do anything with the database. ;)
|
#30
|
||||
|
||||
![]()
Okay, that's a good idea. I'm using a test database, so it doesn't matter.
I'll catch up on this later, I'm sort of busy right now. Have you worked out anything about the sessions? |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to: Install MyBB | Aasixx | Tutorials and Tips | 18 | 03-25-2016 05:59 PM |
What does mybb intergration mean? | Rovick | Questions and Supports | 3 | 06-18-2014 04:41 AM |
Paypal ipn intergration? | Skulldog | Suggestions and Feature Requests | 3 | 09-26-2010 10:26 PM |
JOOMLA Intergration | Seapyramid | Mys v1.1.x Mods | 32 | 07-24-2010 07:51 PM |
Forum intergration, | exdiogene | Questions and Supports | 6 | 10-08-2009 10:56 AM |
What's New? |
What's Hot? |
What's Popular? |