As the name says it, this means the database query to login.
I know there are tuts available for that, but I just want to know something:
The file:
phpbb3\styles\prosilver\template\login_forum
Is what I think the login form is. However, my friend also found other login forms for other styles.
Are login forms different for each style? Or is there something I'm missing?
Thank you, I hope this is the right place for this post.
Interfacing with the PHPBB database
-
- New member
- Posts: 23
- Joined: 06 Sep 2008, 14:59
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
- Ganon_Master
- Past Contributor
- Posts: 311
- Joined: 20 Nov 2006, 16:23
- Real name: Hidde
- Location: Soesterberg, Utrecht, The Netherlands
- Contact:
Re: Interfacing with the PHPBB database
Off the top of my head, the default login form is "login_body.html". (wich would be in /styles/prosilver/template) Login forms can be different for each style, it all depends on how the style author wishes to shape it. But the key elements should be there (form keys, input fields, etc.).
You can prompt the login form in your script at any page by calling the function "login_box()". If you just want a small form on pages of your website where logging in is otptional, you can look at including login_forum, or add something to your template files that looks like it.
You can prompt the login form in your script at any page by calling the function "login_box()". If you just want a small form on pages of your website where logging in is otptional, you can look at including login_forum, or add something to your template files that looks like it.
-
- New member
- Posts: 23
- Joined: 06 Sep 2008, 14:59
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Interfacing with the PHPBB database
Ah right, and what file do you include to have the login_box() function?
And this would be accompanied with a session function(s)?
And this would be accompanied with a session function(s)?
- Robin Huurman
- New member
- Posts: 3
- Joined: 21 Sep 2008, 21:07
- Real name: Robin Huurman
- Location: Netherlands [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
-
- New member
- Posts: 23
- Joined: 06 Sep 2008, 14:59
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Interfacing with the PHPBB database
Ok, thanks.
-
- New member
- Posts: 23
- Joined: 06 Sep 2008, 14:59
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Interfacing with the PHPBB database
- we're poor!
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Interfacing with the PHPBB database
Now, about your problem. It's simple. Don't create login.php, use the existing ucp.php with mode=login.
- we're poor!
-
- New member
- Posts: 23
- Joined: 06 Sep 2008, 14:59
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Interfacing with the PHPBB database
Yep, I found a link explaining most of it, so it's cool.
http://startrekguide.com/community/view ... =50&t=4576
http://startrekguide.com/community/view ... =50&t=4576
Return to “phpBB Development discussion”
Who is online
Users browsing this forum: No registered users and 22 guests