Re: Login integration: Logging in on an existing site and punBB

Sounds like there's some whitespace where there shouldn't be.

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

Re: Login integration: Logging in on an existing site and punBB

Correct.

There was one space before my  <?php tag

Thanks

Last edited by giil (2008-02-06 12:14:37)

Re: Login integration: Logging in on an existing site and punBB

Okay here is my questions:

First Smartys how do I integrate the dblayer command (I know I'm dumb but I can't seem to wrap my head around this code at all) I've tried the login (from waaay back) that exists but that wont work for me at all.

Secondly I'm guessing that I can use this in a method post call right?

Please disregard any of this if it makes no sense tongue

Re: Login integration: Logging in on an existing site and punBB

You have to be more specific about what you're trying to do and what you want to know or I can't help you smile

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

Re: Login integration: Logging in on an existing site and punBB

Well here is the thing: I've used Punbb since god knows when, and I want my webpage to have a login and a register on the mainpage. I've tried the other script that has been here for a while but that just don't work.

So what I really need is a easy guide and some nice copy-pasta code that I can use. But To learn more I just want to know how to use the dblayer in a file were I've called for common.php I know php (a fairly small bit) and I know how to connect to a db but I want it secure and i certainly don't want alot of connect to db scripts lying around in my webfolder if I can call the db with a simple $dblayer function?

Re: Login integration: Logging in on an existing site and punBB

Including common.php opens the connection to the database so you should not have to do it again

Re: Login integration: Logging in on an existing site and punBB

Okay so just check in what the tables are and such?

Re: Login integration: Logging in on an existing site and punBB

http://punbb.org/docs/dev.html

Re: Login integration: Logging in on an existing site and punBB

zentropy wrote:

Furthermore for people who will stumble upon this thread and try to accomplish the same, here is the full working code


Thanks a bunch for this, but where does this code go? Is this the new login.php? Or where should I put it? I am trying to integrate the existing login of our site with punbb. Thanks!