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.
Show guests a custom index page?
jpm
New
I want guests/non-logged in users to see the most minimal login page consisting of just login and password. Can that be done?
I don't want them to see any other information (top header with the forum name, etc)
Thanks.
0
Answers
www.yourdomain.com for non logged in users
and ...
wait for it ...
just a little longer ...
www.yourdomain.com/forum/ for logged in users
et Voila
There was an error rendering this rich post.
Hah.
VF is installed in mydomain/community
And both users go to http://mydomain/community/
Is there some template I need to edit that gets displayed for logged in vs. non logged in users?
read up on themehooks, default.master.tpl and default.master.php
and test for login
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
It's possible to check if current user is a guest or not directly from .tpl?
There was an error rendering this rich post.
Look in the .tpl files how it's done with signin link or full menu, the answer to your question requires the same logic
There was an error rendering this rich post.
Forgive me if I'm not reading your question correctly, but it sounds like you just need this plugin:
http://vanillaforums.org/addon/privatecommunity-plugin
Then you just need to hide the header with CSS, targeting the entry pages with body.Entry
You could also make a landing/intro html page with only the login button . Then add that page to the forum folder. Then route the page to be the default page people reach when they go to forum.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
or for guests use css to hide everything but the login register buttons pmsl
There was an error rendering this rich post.
Thank you all for the many solutions provided. Now I'll try using themehooks.
There was an error rendering this rich post.
Unless it fairly small an cosmetic you usually don't use controlling logic in the the templates or views.especially if it to display a totally different page.
Keep your views clean.
grep is your friend.
please have a look at my plugin mobile default route
http://vanillaforums.org/addon/mobiledefaultroute-plugin
You can use the same principle but just ckeck the session.
grep is your friend.
Resolved using themehooks (CategoriesController_BeforeRenderAsset_Handler, etc).
There was an error rendering this rich post.