Re: Login integration: Logging in on an existing site and punBB
Sounds like there's some whitespace where there shouldn't be.
Unfortunately no one can be told what PunBB is - you have to see it for yourself.
You are not logged in. Please login or register.
PunBB Forums » PunBB 1.2 modifications, plugins and integrations » Login integration: Logging in on an existing site and punBB
Sounds like there's some whitespace where there shouldn't be.
Correct.
There was one space before my <?php tag
Thanks
Last edited by giil (2008-02-06 12:14:37)
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 ![]()
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 ![]()
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?
Including common.php opens the connection to the database so you should not have to do it again
Okay so just check in what the tables are and such?
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!
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.