I just followed the tutorial here
It shows how to integrate a forum software into a website. But, I don't know PHP, so I don't know how to check whether a user is logged in or not on each page. Can someone show me how?
Check if user is logged on
Moderator: General Moderators
Re: Check if user is logged on
It does?wiiboy wrote:It shows how to integrate a forum software into a website.
Code: Select all
if($mybb->user["uid"])If you want to use PHP then I've got great advice for you: learn the language.
Re: Check if user is logged on
I'm working on it. . .tasairis wrote:If you want to use PHP then I've got great advice for you: learn the language.
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Check if user is logged on
You probably want to create an authorisation file that is included in each page where you want to check whether a user is logged in - or as a function.
Within this authorisation page/function you simply need to check a set variable (SESSION or other) whether user has been logged in or not.
Within this authorisation page/function you simply need to check a set variable (SESSION or other) whether user has been logged in or not.