Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2008-03-07 17:15:42
- waynem80
- New Member
- Registered: 2008-03-04
- Posts: 7
Re: Ok, so I'm trying to include Vanilla's settings and people php files..
I include them in the publish.php page at the beginning with all the other includes…
They seem to get included, but for some reason, “maybe not completely, or something” I’m not a programer so i dunno..
As before when i open up fire bug and look at the http headers, I can see that the files seem to be getting included, cause it’ll say powered by vanilla, like it does if i include them on a regular hand coded page i build…
But, when I use this code as i do on regular non-textpattern pages it work fine, but not in textpattern pages…
<txp:php>
if ($Context->Session->UserID)
{
echo “Signed in as <b>{$Context->Session->User->Name}</b>.”;
}
else
{
echo “Welcome, Guest.”;
</txp:php>
Offline