Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Code in iFrame

edited April 2007 in Vanilla 1.0 Help
I have a Page Manager page with this code that works...
<?php if ($this->Context->Session->UserID == 0) { $Whoisit = "Guest"; } else { $Whoisit = $this->Context->Session->User->Name; } ?>

And on the same Page Manager page, but in a php page within an iFrame it doesn't work.

I tried making $Whoisit global but no joy. What gives?

Posted: Thursday, 12 April 2007 at 4:15PM

Comments

  • Options
    OK I fixed it, all I did was add this to the page that appears in the iFrame...

    <?php include("../../appg/settings.php"); include("../../appg/init_vanilla.php"); ?>

    Posted: Friday, 13 April 2007 at 7:24AM

This discussion has been closed.