Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorfysicsluvr
    • CommentTimeMar 8th 2008 edited
     # 1
    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
Add your comments
    Username Password
  • Format comments as