I posted this question on the phpbb discussions forum but, other than the moderator moving it from "general questions" to "mod writers" forum, it has been there for several days with no reply. (What I'm looking for isn't to modify the behavior of the forum, so I didn't think it belonged under "mods" but...) That doesn't appear to be a very active forum, so maybe at some point it will get a reply. In the meantime, this is a very active board with lots of high-foreheaded people, so I thought I'd give it a shot here.
What I want to do is piggyback on the login of my phpbb forum to set a couple of $_SESSION vars when the user logs in. I thought that login.php at line 102 would accomplish that, but it does not. Can anyone steer me onto how I would accomplish this?
Ideally I would like to have the vars set whether it is a "new" login or as a result of the "log me in each time" business, but it would be okay if it was only the former.
Any help appreciated.
Piggyback on the phpbb login
Moderator: General Moderators
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- Bill H
- DevNet Resident
- Posts: 1136
- Joined: Sat Jun 01, 2002 10:16 am
- Location: San Diego CA
- Contact:
Okay.
I don't mean to be snide, but I think I knew that I needed to add some code to phpbb.
This was a thought I had to offer a convenience to my users when I added the forum to my site. Let them use one login. That, it turns out, may be more work than is feasible, given that I have been trying for over a week and progress is zero at this point.
I would think that, with the large following that phpbb has, I would not be the first person that wanted to do this. In fact, I would think it was pretty common. But in four websites, two of them devoted exclusively to that product, there is no content that I can find and no response to request for pointers. And I have been careful to say I am not asking "do this for me" but rather making a request to point me in the right direction.
In this forum people have responded, they always do. Elsewhere...
I don't mean to be snide, but I think I knew that I needed to add some code to phpbb.
This was a thought I had to offer a convenience to my users when I added the forum to my site. Let them use one login. That, it turns out, may be more work than is feasible, given that I have been trying for over a week and progress is zero at this point.
I would think that, with the large following that phpbb has, I would not be the first person that wanted to do this. In fact, I would think it was pretty common. But in four websites, two of them devoted exclusively to that product, there is no content that I can find and no response to request for pointers. And I have been careful to say I am not asking "do this for me" but rather making a request to point me in the right direction.
In this forum people have responded, they always do. Elsewhere...
I'm not exactly sure how to piggyback PHPBB's session stuff, but I have worked a little with apps that use PHPBB login credentials, so it may be of some use to you. If you go to here, it has a link to download a script called phpRaid. It has the ability to use PHPBB's login credentials as the main login info for that script itself. If you download the zip file, look in the auth folder, and look through auth_phpbb.php. Might not be exactly what you're looking for, but it might help.