Basically for pixel2life you have the login form that connects to the phpbb database *pixel2life uses inviision board* to make sure your logged into the forums. I was wondering if there is a code out there for phpbb that will allow me to login and have my private messages also stated on the site.
I have tried writting my own, with a failure. And I have found nothing on the web.
login form on main site that uses phpbb database
Started by bondja, Jan 29 2007 08:15 PM
9 replies to this topic
#1
Posted 29 January 2007 - 08:15 PM
#2
Posted 29 January 2007 - 08:22 PM
No, what happens is when you log in, the server sets a session, in your case, phpbb sets a session, so when you try to access your PM's it checks if you have a session started, and if it is, your able to check your pm's, if theres no session, it will say your unable to log in. And that code, Im not exactly sure what it is, but Ill try to get it =)
#3
Posted 30 January 2007 - 06:17 PM
lol yeah i know. I'm trying to this band website up and this is the only thing thats holding me back, so any help would be greatly appreciated!
#4
Posted 30 January 2007 - 08:40 PM
You need to look through the phpBB code to find out the name of the session, and values it sets, then in your code make it set those same exact sessions. Then for the PMs you just have to connect to the MySQL database, and go into the phpBB tables, and find the pm table. Then make a link wherever you want it to be, and use a mysql_num_rows(); after some queries to get the PMs that are for that user, then just link it to the message center of phpBB. It isn't that hard, and is very possible.
#5
Posted 31 January 2007 - 04:24 PM
Hate to being a bother, but I'm more of a designer than a coder. And I personally don't have time to struggle through this, if you could please send me the code I will also add you into the list of peopel who have made this site.
#6
Posted 01 February 2007 - 01:33 PM
i'll have to download the phpBB, and look through the code, what version are you using?
#7
Posted 01 February 2007 - 01:48 PM
I know this much from experience.
1. PhpBB does NOT use sessions.
2. It is NOT easy to write a login system that will function 100% with the forums.
3. If you searched P2L, the biggest tutorial search engine i know of, you probably would've stumbled accross my phpBB login tutorial. After reading the tutorial and trying to use it, you would have found out that the tutorial isn't perfect and doesn't keep you logged in when switching to the forums (because it uses sessions, which isn't right). And theres supposedly a few other problems with it, but it does successfully access the phpBB user database and uses it just like any other members database would be used.
1. PhpBB does NOT use sessions.
2. It is NOT easy to write a login system that will function 100% with the forums.
3. If you searched P2L, the biggest tutorial search engine i know of, you probably would've stumbled accross my phpBB login tutorial. After reading the tutorial and trying to use it, you would have found out that the tutorial isn't perfect and doesn't keep you logged in when switching to the forums (because it uses sessions, which isn't right). And theres supposedly a few other problems with it, but it does successfully access the phpBB user database and uses it just like any other members database would be used.
#8
Posted 03 February 2007 - 10:02 PM
What does phpBB use, if it doesn't use sessions? Encrypted cookies?
#9
Posted 04 February 2007 - 01:26 AM
yep..
#10
Posted 04 February 2007 - 01:51 PM
Hardly. It does use cookies, but that is only if they're enabled. Even then they're only used for auto-login purposes and to remove the "sid" from the url.
It runs something that gives the appearance of using sessions. Rather than wasting time calling session_start() and having to worry about headers being sent, they store all session info in the database and use the url to pass the id on from page to page (or cookies if they are enabled).
Technically, the only encrypted thing in the cookies they set is the autologinid, which just a randomly generated string. The rest of the info is stored through serialize() (which isn't encryption because it can be undone).
It runs something that gives the appearance of using sessions. Rather than wasting time calling session_start() and having to worry about headers being sent, they store all session info in the database and use the url to pass the id on from page to page (or cookies if they are enabled).
Technically, the only encrypted thing in the cookies they set is the autologinid, which just a randomly generated string. The rest of the info is stored through serialize() (which isn't encryption because it can be undone).
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
