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($[B]user, 0[/B])">
    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.
      Helpful? Donate. Thanks!
      Buy me a coffeePayPal QR Code
      Fast VPS Host for vBulletin:
      A2 Hosting & IONOS

      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?
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        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

            Users Viewing This Page

            Collapse

            There is 1 user viewing this forum topic.

            • Guest Guest

            Latest Posts

            Collapse

            Working...
            X
            Searching...Please wait.
            An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

            Please push the back button and reload the previous window.'
            An unexpected error was returned: 'Your submission could not be processed because the token has expired.

            Please push the back button and reload the previous window.'
            An internal error has occurred and the module cannot be displayed.
            There are no results that meet this criteria.
            Search Result for "|||"