Forum Moderators: rogerd

Message Too Old, No Replies

phpBB 2 - how to restrict access?

Only allow search, members list when logged in

         

Tectic

7:40 pm on Dec 8, 2007 (gmt 0)

10+ Year Member



In the past I've found simple instructions allowing me to set permissions to only allow registered, logged in members to access the search, membership lists etc. However, I now can't find any instructions - help (please!).

thecoalman

8:50 pm on Dec 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Use a phpbb switch in the search template,

<!-- BEGIN switch_user_logged_out -->
You can't blah, blah, blah...
<!-- END switch_user_logged_out -->

<!-- BEGIN switch_user_logged_in -->
HTML for search
<!-- END switch_user_logged_in -->

That should work, I forget if they work in all the templates. If not you'll have to create a custom switch in search.php so it will be parsed in the template.