Announcement

Collapse
No announcement yet.

Restricting access to attachments for Unregistered/not logged in

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Restricting access to attachments for Unregistered/not logged in

    vBulletin 5 Connect v5.4.2, My SQL 5.7.22-log, PHP 5.6.36

    1) I want to restrict access to attachments for the user group Unregistered/not logged in and Awaiting Email Confirmation.

    In Admin CP > Usergroups > Usergroup Manager, I edited permissions for the abovementioned groups. However, I can still view the images when I browse as an unregistered user.
    These are the permissions I have set.
    However, when I set everything to no, then the forums are not viewable for an unregistered user.

    What am I doing wrong?

    2) Secondly Mark B. had shared css code to show a user-friendly message to unregistered viewers, something along the lines of you cannot view until you are a registered member. Where would I post that code?

    /* Attachments permissions fix */ [data-usergroupid="1"] .photo-preview { display:none; } [data-usergroupid="1"] .gallery-details::before { content: "This post contains attachments - please register or log in to view them" } [data-usergroupid="1"] .gallery-details .b-photo-count { display:none; } [data-usergroupid="1"] .b-post-attachments ul::before { content: "This post contains attachments - please register or log in to view them" } [data-usergroupid="1"] .b-post-attachments .b-post-attachments__item { display:none; } /* End Attachments permissions fix */
    Grateful for your help!
    Forum Viewing Permissions
    Can View Channels
    Yes
    Can View Topic Content
    Yes
    Can View Others' Topics
    Yes
    Can Download Non-Image Attachments
    No
    Can See Deletion Notices
    No
    Can See Thumbnails
    No
    Can Join/Subscribe Channel
    No
    Can Upload Channel Icons
    No
    Can Upload Animated Channel Icons
    No
    Can Configure Channel
    No
    Can Download Image Attachments
    No

  • #2
    You would put the code provided in your style. On the front end click "Edit Site" to enable Site Builder. Then click "Style". Once the Style tool opens, click on CSS Editor and paste the code into the box.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #3
      Thanks Wayne. But why is an unregistered user still able to view and download pics? What change can I make to the settings to get the outcome I want?

      Comment


      • #4
        It is a bug.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud customization and demonstration site.
        vBulletin 5 Documentation - Updated every Friday. Report issues here.
        vBulletin 5 API - Full / Mobile
        I am not currently available for vB Messenger Chats.

        Comment


        • #5
          Sorry - but what happens next? Do I report it somewhere or take some other action? Or has your team taken note and will fix it? Thanks.

          Comment


          • #6
            Originally posted by pspnyc14 View Post
            Sorry - but what happens next? Do I report it somewhere or take some other action? Or has your team taken note and will fix it? Thanks.
            It's a known bug at the moment. It's already in the bug tracker, has been for a while. There is no fix date at this time.
            MARK.B | vBULLETIN SUPPORT

            TalkNewsUK - My vBulletin 5.4.4 Demo
            AdminAmmo - My Cloud Demo

            Comment


            • #7
              try this
              "Can View Channels- no "
              that way gest can only read the topic but cannot see the cannel so they cannot download at less they register
              voyger.: In Almighty God I trust, everyone else has to provide evidence."

              vBulletin Version 5.4.3

              Comment


              • #8
                Originally posted by voyger View Post
                try this
                "Can View Channels- no "
                that way gest can only read the topic but cannot see the cannel so they cannot download at less they register
                If you set "Can View Channels" to no, guests will not see channels or topics so they can't read anything.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud customization and demonstration site.
                vBulletin 5 Documentation - Updated every Friday. Report issues here.
                vBulletin 5 API - Full / Mobile
                I am not currently available for vB Messenger Chats.

                Comment


                • #9
                  Mark - thank you. I will offer prayers and sacrifices to the vBulletin gods (and goddesses) and practice breathing techniques until then

                  voyger - thank you, but that suggestion doesn't work. It suppresses all the channels. What I have done as a workaround is show channels but suppress topics.

                  Have a great weekend!

                  Comment


                  • #10
                    I did this and it works perfect -
                    Title says it all, we have users that are receiving an Invalid File Specified page, when trying to click links to .jpg photos. When using Mozilla Firefox or my

                    Comment

                    Related Topics

                    Collapse

                    • shining
                      Thumbnail View setting problems
                      shining
                      Hi there,

                      I hope you can give me a hint for the right or missing setting.

                      The problem is: Every group can see Thumbnails of attachements.... but only the "normal" group...
                      Sat 18th Mar '17, 10:38am
                    • bestialÉ.
                      sss
                      bestialÉ.
                      qqqqqqqqqq
                      ...
                      Mon 30th Dec '13, 12:36pm
                    • ez4arab
                      شهداء
                      ez4arab
                      يـشـهد الله أنـكـم شـهـداءُ يـشـهد...
                      Wed 18th May '11, 5:20am
                    • Wayne Luke
                      vBulletin Connect 5.1.1 is now available.
                      Wayne Luke
                      We are proud to announce the release of vBulletin 5.1.1. This release fixes a number of bugs related to the CMS, Image Handling and Email Notifications. More than 100 issues are resolved in this version....
                      Thu 8th May '14, 1:28pm
                    • Wayne Luke
                      Deprecated Stylevars
                      Wayne Luke
                      This is a list of the stylevars that will be deprecated in the upcoming vBulletin 4.0.8 and 4.1.0 releases. This list is subject to change as the work is ongoing. Deprecated Stylevars Stylevar Replacement albumtop_background toolsmenu_background albumtop_border toolsmenu_border albumtop_font_size toolsmenu_fontSize Stylevar Replacement vbblog_navigation_background navlinks_background vbblog_navigation_border navlinks_border vbblog_navigation_color navlinks_color vbblog_sidebar_background sidebar_background vbblog_sidebar_border sidebar_border vbblog_sidebar_content_background sidebar_content_background vbblog_sidebar_content_border sidebar_content_border vbblog_sidebar_content_color sidebar_content_color vbblog_sidebar_content_separator_background sidebar_contentseparator_background vbblog_sidebar_content_separator_height sidebar_contentseparator_height vbblog_sidebar_contentlist_avatar_maxSize sidebar_contentavatar_width vbblog_sidebar_header_color sidebar_header_color vbblog_sidebar_header_font sidebar_header_fontSize vbblog_sidebar_padding Deprecate, no replacement. Version 4.0.8 Stylevar Replacement notifications_popup_a_background_color Deprecate, no replacement. Version 4.1.0 pagination_a_hover_border Deprecate, no replacement. Version 4.1.0 pagination_span_border_top Deprecate, no replacement. Version 4.1.0 projection_box_size No Longer Supported textedit_background Deprecate, no replacement. Version 4.1.0 Stylevar Replacement forum_sidebar_background sidebar_ background forum_sidebar_border sidebar_border forum_sidebar_content_background sidebar_content_background forum_sidebar_content_border sidebar_content_color forum_sidebar_content_color sidebar_content_color forum_sidebar_content_separator_background sidebar_contentseparator_background forum_sidebar_content_separator_height sidebar_contentseparator_height forum_sidebar_contentlist_avatar_maxSize sidebar_contentavatar_width forum_sidebar_header_color sidebar_header_color forum_sidebar_header_font sidebar_header_font Stylevar Replacement forumbit_spacer_width Deprecate, Not in Use. Version 4.1.0 forumbits_aForum forumhead_color. Version 4.1.0 forumhead_width Deprecated, Not for use in stylevars. Version 4.1.0 forumiconbox_size Deprecate, Not in Use. Version 4.1.0 foruminfo_background secondarycontent_background foruminfo_border secondarycontent_border foruminfo_border_radius Deprecate, Not in Use. Version 4.1.0 forummenu_color toolsmenu_color forummenu_font toolsmenu_fontSize Stylevar Replacement wgo_background secondarycontent_background wgo_border secondarycontent_border wgo_fontSize secondaryContent_font wgoheader_background secondarycontent_header_background wgoheader_border secondarycontent_header_border wgoheader_color secondarycontent_header_color wgoheader_font secondarycontent_header_fontSize wgosubheader_font secondarycontent_subheader_fontSize Stylevar Replacement searchbox_size Deprecate, Not in Use. Version 4.1.0 Stylevar Replacement postbit_content_max_image_width image_medium_max Stylevar Replacement profile_content_background Deprecate, Not in Use. Version 4.1.0 profile_content_blog_head Deprecate, Unused CSS profile_content_blogentrybit_continue_reading link_color profile_content_border Deprecate, Not in Use. Version 4.1.0 profile_sidebar_background sidebar_background profile_sidebar_border sidebar_border prodile_sidebar_box_background sidebar_content_background profile_sidebar_box_border sidebar_content_border profile_sidebar_color sidebar_content_color profile_sidebar_separator_background sidebar_contentseparator_background Stylevar Replacement vbcms_article_image_large_maxSize image_large_max vbcms_article_image_medium_maxSize image_small_max vbcms_article_image_thumbnail_maxSize image_thumbnail_max vbcms_article_preview_image_maxSize image_thumbnail_max vbcms_widget_avatar_maxwidth sidebar_contentavatar_width vbcms_widget_block_background sidebar_background vbcms_widget_border sidebar_border vbcms_widget_color sidebar_content_color vbcms_widget_comment_lines Deprecate, Not in Use. Version 4.1.0 vbcms_widget_content_background sidebar_content_background vbcms_widget_content_bevel sidebar_content_bevel vbcms_widget_content_border sidebar_content_border ...
                      Fri 8th Oct '10, 4:18pm
                    Working...
                    X