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.
Hide "Popular Tags" for guest visitors until they are logged in*
Hi All, new to Vanilla, but I have it working really well. Only one issue so far - I want to hide everything unless the visitor is signed up. I have managed to do this and hide everything except Popular Tags are still visible on the homepage. Any idea how I can hide these until after login?
0
Comments
Find function ToString (its at line 43)
add a new line after line 47 and paste there following code:
if (Gdn::Session()->UserID == 0) return '';
We do here check if user has logged in - the condition in parentheses, and return an empty line instead of html block, if he has not.
I know it is a dirty hack, but it works :P