Ok I wasn't trying to be vauge... just avoid a huge 10 page plea for help. 🙂
Here's the deal.
I have a CMS application that I built.
It allows the site admin (who may not be real computer savvy) to run the site.
Now I'm installing phpBB on this site so that I can take advantage of it's cool features.. like a well defined site userbase.
I built some code that I include on my main page (when outside of the forum) that lets me access the user's phpBB data once they have logged in.
All that works just fine.
So now I can read phpBB data and userdata even outside the forum.
It's pretty neat.
Anyway the check for whether a user is logged in or not is this:
if ($userdata['session_logged_in'] == 1) {
// Say welcome back USERNAME.
} else {
// Build Link to login page
}
If on my main page I include a page with that code it works like champ.
But if I instead include a page that goes to the database to get the path to the login check code and then includes it right there in the current include the variable $userdata['session_logged_in'] isn't set as 1 even though it should be.
I want to accomplish this because in order for some non-savvy site admin to move this login conent to another section of the page... it has to be a "component" that they add via a drop down list.
So the intermediate inlcude would go read from the database to determine which "component" should be included in the current area of the page. So it figures out what to grab and pulls the path from the DB.
Like I said ... every thing is rendering but the variable $userdata['session_logged_in'] isn't set as 1 even though it should be.
.... wow does anything in there make sense ?
🙂