I’m trying to use {if logged_in}x{/if} in an inline javascript but it’s not working out. What do I need to do to get this to work?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
January 20, 2011 4:38am
Subscribe [2]#1 / Jan 20, 2011 4:38am
I’m trying to use {if logged_in}x{/if} in an inline javascript but it’s not working out. What do I need to do to get this to work?
#2 / Jan 20, 2011 10:02am
I’d tend to have the whole javascript call inside the if logged_in code, and then have a version for when you aren’t. Have you tried something similar?
Can you tell us which version/build of EE2.x you’re using? See EEWiki:// HowTo Determine My EE Version
What code are you trying to get working? This may be a matter for the CodeShare Corner.