Closing my phpBB's access

Discuss phpBB 3.0.x in general.
Forum rules
Please post any phpBB 3.1.x related topics in the forum.
[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
User avatar
EY
Supporter
Supporter
Posts: 204
Joined: 05 Nov 2006, 23:13
Real name: Elias
Location: Montreal
[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

Closing my phpBB's access

Postby EY » 02 Aug 2012, 06:20

Hello everyone!

I am looking for the best way on closing down access to all guests visiting my website.
I do not mean not letting them see the forums. I mean hiding the whole board from guests and redirect them to the log in page when ever they visit any page.

What is the best way of doing this?


Thanks in advance.
Never Say Never!

User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

Re: Closing my phpBB's access

Postby tumba25 » 02 Aug 2012, 22:01


User avatar
EY
Supporter
Supporter
Posts: 204
Joined: 05 Nov 2006, 23:13
Real name: Elias
Location: Montreal
[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: Closing my phpBB's access

Postby EY » 03 Aug 2012, 04:36

I tested this and it works!

Instead of using the UCP page, how can i use my own page which would be the index.php of my website, a login screen for unregistered users?

Thanks for the help.
Never Say Never!

User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

Re: Closing my phpBB's access

Postby tumba25 » 04 Aug 2012, 04:04


User avatar
EY
Supporter
Supporter
Posts: 204
Joined: 05 Nov 2006, 23:13
Real name: Elias
Location: Montreal
[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: Closing my phpBB's access

Postby EY » 09 Aug 2012, 03:31

Here is what i am looking to do:

If a user isn't logged in, i want them redirected to an external page that i have created for my forum that would ask them to log in.
Never Say Never!

User avatar
EY
Supporter
Supporter
Posts: 204
Joined: 05 Nov 2006, 23:13
Real name: Elias
Location: Montreal
[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: Closing my phpBB's access

Postby EY » 09 Aug 2012, 18:05

I could also modify the ucp.php file to fit my login needs and use it.

Any idea what file i need to edit to modify the ucp.php login?
Never Say Never!

User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

Re: Closing my phpBB's access

Postby tumba25 » 09 Aug 2012, 20:28


User avatar
EY
Supporter
Supporter
Posts: 204
Joined: 05 Nov 2006, 23:13
Real name: Elias
Location: Montreal
[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: Closing my phpBB's access

Postby EY » 10 Aug 2012, 03:31

I got it all working.

I used the first code you gave me and i then modified my login_body.html to remove everything i needed.

Thank you very much for your help!
Never Say Never!

User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

Re: Closing my phpBB's access

Postby tumba25 » 10 Aug 2012, 12:47

You're welcome.


[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
[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

Return to “phpBB 3.0.x "Olympus" discussion”

Who is online

Users browsing this forum: No registered users and 3 guests