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.

$context on all pages

y2kbgy2kbg New
edited February 2007 in Vanilla 1.0 Help
i am integrating vanilla into a website and need to access $context on pages outside of the vanilla directory, how do i do this? or can i access the $_session directly, would that be a better option?

Comments

  • well i tried:
    1. globaling $context
    2. starting php session and echoing out key vale pairs in a foreach loop. - turns out there is only on session variable
    3. includeing init_vanilla.php - blanked out whole page


    anyone know the solution?
  • I believe including the init_vanilla is the right track... but never done it myself.
  • hmm, when i try it it makes it so that nothing is echoed at all, when i view html source there is nothing. it is silent no error. its horrible. i think it is including to much in in so what do i need to narrow it down to?

    thanks in advanced,

    ps.
    wait, i think it need to change references in the init_vanilla, I will make a copy with special refs.
  • Holy S#!7

    dude all i had to do was include settings.php also!

    mark thought ahead and did things right!! he is my hero.
  • MarkMark Vanilla Staff
    :D
  • hahaha

    Actually.....
    "samy is my hero" (myspace worm coder, google it)

    j.k.
This discussion has been closed.