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.
Options

Show guests a custom index page?

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.

Answers

  • Options
    422422 Developer MVP

    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.

  • Options

    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?

  • Options

    @jpm said:
    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.

  • Options
    lifeisfoolifeisfoo Zombie plugins finder ✭✭✭

    It's possible to check if current user is a guest or not directly from .tpl?

    There was an error rendering this rich post.

  • Options

    @lifeisfoo said:
    It's possible to check if current user is a guest or not directly from .tpl?
    @lifeisfoo said:
    It's possible to check if current user is a guest or not directly from .tpl?

    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.

  • Options
    50sQuiff50sQuiff ✭✭
    edited March 2013

    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

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    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.

  • Options
    422422 Developer MVP

    or for guests use css to hide everything but the login register buttons pmsl

    There was an error rendering this rich post.

  • Options
    lifeisfoolifeisfoo Zombie plugins finder ✭✭✭

    Thank you all for the many solutions provided. Now I'll try using themehooks.

    There was an error rendering this rich post.

  • Options

    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.

  • Options

    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.

  • Options
    lifeisfoolifeisfoo Zombie plugins finder ✭✭✭

    @x00 said:
    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.

    Resolved using themehooks (CategoriesController_BeforeRenderAsset_Handler, etc).

    There was an error rendering this rich post.

Sign In or Register to comment.