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.)