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.
How to check if user is logged in?
I've got a problem that's above my head and would appreciate some help. On http://idrinkyourmilkshake.com, I've embedded a sound file in menu.php, like this: <embed src="milkshake.mp3" align="absmiddle" autostart="true" width="225" height=16><noembed><bgsound src="milkshake.mp3" autostart="true" width="225" height=20></noembed><br> It's set to autoplay because people who come by the site the first time expect to hear the clip -- I really don't want to lose that. BUT as you can imagine, having the file play on every refresh gets really old when you're browsing and posting the discussions. So, I'm looking for a way to check if the user is logged in, and if so, I'd like to embed the same thing with autostart turned off. Can somebody tell me what the code would be for menu.php to check if the user is logged in and then display either version of the embed code? Thank you much!
This discussion has been closed.