Announcement

Collapse
No announcement yet.

How to show only content slider to unregistered users instead of main forum in vB5 !

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to show only content slider to unregistered users instead of main forum in vB5 !

    I want to make my forum private. But want to view only Content slider to unregistered users. so that they can know the latest topics. but can not view full site without login/register.

    is it possible ??

    thanks !

    #2
    Log into the AdminCP.
    Go to Styles and Themes, Style Manager, Edit Template.
    Scroll down to the bottom and expand Module Templates.
    Locate widget_contentslider and edit it.

    Add as the first line
    Code:
    <vb:if condition="is_member_of($user, 0)">
    Add as the last line
    Code:
    </vb:if>
    Save edits.

    Using the site builder, add the Content Slider module where you want it.
    ONLY unregistered users will be able to see it now.
    The user, 0 value tells the module to appear only if the person is a member of User Group 0, which is unregistered users.
    Note that if you are attempting to use multiple Content Slider modules, this edit will affect them all.
    Also, if your user groups are different, you may need to use a different number. Check your user groups ID to be certain.

    Comment


      #3
      ID of "Unregistered / Not Logged In" usergroup is 1 not 0 by default.

      Comment


        #4
        Note that by default, Content Slider module only shows featured topics. If you want to show latest topics, you have to modify the search JSON criteria.

        Btw, using Content Slider module to show latest topics for guests is not a good choice in my opinion as it would be hard to keep up with continuously sliding content. Why not use a Search module?

        Comment


          #5
          Ah, see, mine is 0. That is why I say, check your ID's
          And I too agree, the slider module is not the best choice.

          Comment


            #6
            Thanks a zillion...

            Comment

            Working...
            X