Ok, but doesnt the script somewhere check the cookie's information? Like the user/pass, so he/she can stay logged in.
If thats correct, once the PHP gets the info, wouldnt it have to do a SQL, something like this:
SQL = "SELECT * FROM members WHERE login = $cookie_username AND password = $cookie_password"
If so, i was wondering where the SQL to do this would be?
1 2004-07-07 17:54
Re: Integration (15 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 2004-07-07 05:09
Re: Integration (15 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Point taken. Although, I still want to try to integrate the forum to my user system, otherwise i have to pay someone to use IPB(which suxors).
I can integrate it, in time lol, i just dont understand how your forum is built.
This is probably the most confusing part, because i dont deal with cookies often.
$cookie['password_hash'])
What exactly is password_hash?
When a user logins in at login.php, does he/she send a cookie to his/her computer, which password_hash as their password? Which i believe is correct.
The thing is, i dont understand *where* the code is that is sending the cookie with all the information.
Thanks - i will say, my ealier posts were a bit...confusing/stupid. Hopefully this one isnt too !!
3 2004-07-06 22:38
Re: Integration (15 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Ahhh, sorry for 10000 posts, but some more info:
The script provider for my user system said i could use:
$username = $_SESSION['_amember_user];
Could i use $variables in this page? or perhaps something like:
list($cookie['_amember_user'], $cookie['_amember_pass']) = unserialize(unescape($_COOKIE[$cookie_name]));
if (strcasecmp($cookie['_amember_user'], 'Guest'))
{
$result = $db->query('SELECT * FROM '.$db->prefix.'users WHERE login=\''.addslashes($cookie['_amember_user']).'\' AND pass=\''.addslashes($cookie['?watever goes here...maybe _amember_pass']).'\'') or error('Unable to fetch user information', __FILE__, __LINE__, $db->error());
Hope this is all understandable....
Thanks
4 2004-07-06 22:30
Re: Integration (15 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Actually i logged in as my admin, it loaded the Loggin in page, then i came back to Login.php, and said i wasnt logged in? So it must be selected some parts from the old table, and some from the new one?
BTW: Whats password_hash?
5 2004-07-06 22:19
Re: Integration (15 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I changed some stuff in functions, because the index wasnt coming up anymore. now when i try to login, i get the message: wrong username and/or password.
Now, back to the MD5.
You have all passwords for the forums become MD5.
Well, when you have you script login, dont you have to state that it is MD5 or it wont be correct?
If this is true, and your code states, in the login, that it is MD5, it will search the password column for MD5, not normal.
My member system is *not* MD5; therefore, it wouldnt work? right?
If all this is correct, could you possibly tell me where the code is i need to change, so it wont read it MD5.
Thanks
6 2004-07-06 21:13
Re: Integration (15 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Im getting the error:
Error: Unable to fetch user information.
Might you be able to tell me which fields, in the table, or perhaps in functions code, need to be fetched, so i can make em fetchable. heh. thank you
7 2004-07-06 17:47
Re: Integration (15 replies, posted in PunBB 1.2 modifications, plugins and integrations)
you MD5 your passwords, unfortuneately my user system doesnt, is it possible you could tell me how to take MD5 off?
8 2004-07-06 17:37
Re: Integration (15 replies, posted in PunBB 1.2 modifications, plugins and integrations)
So if i fiddle with that file only, and do it correct, would i be able to integrate the forums to my member system? So all posts and all that stuff would work. And of course, do the tables in the DB.
9 2004-07-04 21:03
Topic: Integration (15 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Hello, I want to integrate my forum with aMember pro (cgi-central.net). I was told, from cgi-central, that i could use $anyvariable = his login PHP stuff, and that would work. I integrated my own small profile system with it, and now i want to move to forums, might anyone be able to tell me which files i need to change.
You wouldnt need to specify where exactly every code is, just which files to change, and *maybe*, it wouldnt hurt to specify a few areas of code.
Perhaps someone would even write a tutorial for everyone in the future to use, to do this.
Thanks
10 2004-06-28 21:31
Topic: Sub forums? (5 replies, posted in PunBB 1.2 troubleshooting)
Is there a way i can make a sub forum? Thanks
11 2004-06-25 23:21
Topic: how can i change nav in header? (2 replies, posted in PunBB 1.2 troubleshooting)
What file contains the navigation in header? i wanted to add a link to my home home page. Thanks