Hello,
I'm using the custom frontpage plug in to put my own homepage on the site, however I was wondering if someone could help me so that it behaves like the default as far as logging in goes - and auto-forwarding people to the dashboard if they're already logged in.
Am I right in thinking it's something to do with the gatekeeper function?
Thanks,
Sean
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Cash@costelloc
Cash - 0 likes
- Sean Murricane@seanm
Sean Murricane - 0 likes
- Sean Murricane@seanm
Sean Murricane - 0 likes
You must log in to post replies.Take a look at engine/lib/sessions.php - that has all the code for managing sessions like the gatekeeper function. The function isloggedin() will come in handy for what you're trying to do.
Brill, I think that's the way forward, thanks.
And indeed it worked like a charm. I think I wasn't closing off the php properly when I tried using isloggedin before. *Facepalm*
Thanks Cash!