Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Suggestions and Feature Requests

Notices

Reply
 
Thread Tools Display Modes
  #21  
Old 10-24-2009, 12:53 PM
exdiogene exdiogene is offline
Member
 
Join Date: Oct 2009
Posts: 84
Credits: 7,909
exdiogene
Default RE: MyBB intergration

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
Reply With Quote
  #22  
Old 10-24-2009, 12:55 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,287
Arianna will become famous soon enough
Default RE: MyBB intergration

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?
Reply With Quote
  #23  
Old 10-24-2009, 01:03 PM
exdiogene exdiogene is offline
Member
 
Join Date: Oct 2009
Posts: 84
Credits: 7,909
exdiogene
Default RE: MyBB intergration

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.
Reply With Quote
  #24  
Old 10-24-2009, 01:15 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,287
Arianna will become famous soon enough
Default RE: MyBB intergration

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?
Reply With Quote
  #25  
Old 10-24-2009, 01:25 PM
exdiogene exdiogene is offline
Member
 
Join Date: Oct 2009
Posts: 84
Credits: 7,909
exdiogene
Default RE: MyBB intergration

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:
$password md5($password); 

should become this:
PHP Code:
$salt "SELECT salt FROM mybb_users WHERE username = '$username'";
$password md5($salt.($password)); 
Reply With Quote
  #26  
Old 10-24-2009, 01:49 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,287
Arianna will become famous soon enough
Default RE: MyBB intergration

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?
Reply With Quote
  #27  
Old 10-24-2009, 01:53 PM
exdiogene exdiogene is offline
Member
 
Join Date: Oct 2009
Posts: 84
Credits: 7,909
exdiogene
Default RE: MyBB intergration

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.
Reply With Quote
  #28  
Old 10-24-2009, 02:24 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,287
Arianna will become famous soon enough
Default RE: MyBB intergration

That's good - maybe dropping the table is necessary - I haven't found out how to merge, so I'll do it manually.
Reply With Quote
  #29  
Old 10-24-2009, 02:29 PM
exdiogene exdiogene is offline
Member
 
Join Date: Oct 2009
Posts: 84
Credits: 7,909
exdiogene
Default RE: MyBB intergration

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. ;)
Reply With Quote
  #30  
Old 10-24-2009, 02:35 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,287
Arianna will become famous soon enough
Default RE: MyBB intergration

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?
Reply With Quote
Reply


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

Forum Jump

Similar Threads
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


All times are GMT -5. The time now is 05:55 AM.

Currently Active Users: 9819 (0 members and 9819 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636