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

returning user, session, and page variables with php

edited March 2008 in Vanilla 1.0 Help
I need a php function that will return something unique for each discussion (not different for multiple pages), OR if the same bit of code was executed on an account page it would return something unique for each user, and not clash with the unique variables with discussions.

So like D+(discussion#) or U+(user#) depending on what page the code is executed on.

I also need a function that will return the name of the discussion OR username of the page you're viewing

(if you're wondering what I need it for; I'm putting Google Notes on the top of every discussion and user page with Nuggets for admin and moderators.)

it needs to be something like this:

<?php echo(htmlspecialchars($GLOBALS['Context']->Session->User->Email)); ?>
This^returns^the^logged^in^user's^email.

While i'm at it, I might as well make it portable. In that case I will need a function that returns the "support email" from the settings.

this should be a breeze for anyone that works a lot with vanilla
This discussion has been closed.