Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Removing html content when user not signed in
What is the best way to remove content when the user is not signed in. Specifically in my forum header, I have a include the {profile_link} and then a "|" symbol. I want that symbol to dissapear when the user is not signed in... I would normally do this using php, but I guess since the .tpl file is not a .php file, I'm unable to use php. At least, when I dropped some code in there it did not execute...
0
Comments
Considering you are not used to Smarty, you might find the community wiki on using Smarty with Vanilla helpful. The other tags section includes a specific example about including markup for signed in users only.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.