Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to make pages like Groups, Forums, members and updates only accessible to members?


pcwriter
Participant

@pcwriter

@Hans

You would need to create a forums-loop.php file in your child theme. Try this: http://pastebin.com/mpizkJXq
Notes on highlights:
– Lines 1 to 3 have been added to include a message to non-logged-in users.
– The is_user_logged_in conditional has been moved from line 10 and added to the initial “if” statement on line 5 (actually lines 6 & 1 in forums-loop.php).

This should work but unfortunately, I can’t test it on my site ‘cuz my server is down. Oh well… it looks like I’m going to have to dust off my xbox ;-)
Let us know how it goes.

EDIT: 5 min after posting this, my server’s back up again. Lemme test my own theory…

Skip to toolbar