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.
Getting current logged in user from external files
I'm trying to semi-integrate Vanilla with another PHP file (it will be located at /roadmap/index.php, Vanilla is located at /forums/). I need to get the username, email address and URL if applicable. Should I use the following code, then do a var_dump() to find out the properties/members of $Context?
include_once("./forum/appg/settings.php");
include_once("./forum/appg/init_people.php");
0
This discussion has been closed.
Comments
It may not be the correct way but hey, it woiks for moi!
There's a couple of files you need to link to in the external page, maybe these two...
<script type="text/javascript" src="/.../js/global.js"></script> <script type="text/javascript" src="/.../js/vanilla.js"></script>
I will look it up first chance I get though, come to think of it, there is also a PHP file or two you'll need to link to.
Do keep hassling me, I am all over the place at the moment.
OK, so what exactly are those JS scripts used for? I'm thinking that they may only be needed for the actual forum pages, but then again, I have been wrong before. :P
<?php echo $this->Context->Session->User->Name; ?>
Posted: Monday, 10 December 2007 at 8:05PM
Do I need to query the database or not to get that information?