Announcement

Collapse
No announcement yet.

Prevent Guests from seeing non-image attachments and BB Codes using [code], [php], [html], [quote] and [video] tags

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

    Prevent Guests from seeing non-image attachments and BB Codes using [code], [php], [html], [quote] and [video] tags

    One way to encourage users to register to your forum is to prevent guests from seeing non-image attachments and BB Codes using [code], [php], [html], [quote] and [video] tags. Similar to how vbulletin.org is doing it but for vB3.

    I'm doing that in this vB5 forum. If you are not logged in or your account is still awaiting email confirmation, you should not be able to see the sample codes and attachment below and instead you should see a login/register callout or some appropriate error message. If you are logged in and a verified user, then try opening this thread in Incognito or Private Browsing mode or in a different browser.

    Code:
    //This code is not visible to guests and users in awaiting email confirmation
    <script>
    alert('Hello world!');
    </script>
    HTML Code:
    <div class="test">This html is not visible to guests and users in awaiting email confirmation</div>
    PHP Code:
    //This code is not visible to guests and users in awaiting email confirmation
    echo 'Hello world!'

    Quote:
    I can do all things through Him who gives me strength.
    Wanna find out how this can be done? Watch out for it! The code will be posted soon.
    Attached Files
    Last edited by glennrocksvb; 07-09-2018, 12:14 AM.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    #2
    the .txt is empy o.o

    Comment


      #3
      Yes that was intended. It is just a sample attachment to show that attachment links are not visible to guests and users awaiting email confirmation.
      Helpful? Donate. Thanks!
      Buy me a coffeePayPal QR Code
      Fast VPS Host for vBulletin:
      A2 Hosting & IONOS

      Comment


        #4
        understood, when can i get this plugin? I'm searching for this like a year. Your site is very useful and looks nice.

        Comment


          #5
          It will be available soon. Check back regularly for updates on this thread.
          Helpful? Donate. Thanks!
          Buy me a coffeePayPal QR Code
          Fast VPS Host for vBulletin:
          A2 Hosting & IONOS

          Comment


            #6
            What about replies? Have you thought about making it so that a guest can only read the op but not replies? I realize I'm derailing your thread, but after having read about this mod it came to mind. This may be a negative though for Google indexing unless it did not interfere with Google indexing the entire site.

            Comment


            • glennrocksvb
              glennrocksvb commented
              Editing a comment
              Is this reply supposed to be for &quot;Prevent Guests from seeing non-image attachments and codes&quot; thread? Anyway, to answer your question, I'm not sure if the benefits of restricting the replies from guests to encourage registration outweighs the benefits of SEO. Maybe blurring out the replies using CSS? That wouldn't prevent computer savvy users from seeing the replies but probably good enough for regular users.

            • William
              William commented
              Editing a comment
              Sorry to have derailed your thread Glenn. That would be great what you just suggested. It would blur out all additional replies including images. I'm going to look into this!

            • glennrocksvb
              glennrocksvb commented
              Editing a comment
              I moved this reply to the appropriate thread.

            #7
            Originally posted by William View Post
            That would be great what you just suggested. It would blur out all additional replies including images. I'm going to look into this!
            Here you go...

            http://vbmods.rocks/forum/vbulletin-...ourage-signups
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment


              #8
              Mod updated to add [quote] and [video] tags. Please re-visit the first post to see the updated demo.

              This mod will be available soon!
              Helpful? Donate. Thanks!
              Buy me a coffeePayPal QR Code
              Fast VPS Host for vBulletin:
              A2 Hosting & IONOS

              Comment


                #9
                hello
                i need add ons , when the guest or registered user ask to download attachment already upload to my forum root ,,
                waiting page for 10 second then redirect to download what he ask
                the cost please ?
                my forum VB5.2.3 ready to upload instead of
                my VB4 http://shneler.com/vb/

                Regards

                VBulletin
                Last edited by moded; 08-21-2016, 11:56 AM.

                Comment


                • glennrocksvb
                  glennrocksvb commented
                  Editing a comment
                  To clarify, when users click a non-image attachment (for example, zip, txt, docx, etc.), it will redirect first to a page and after 10 seconds it will proceed with the downloading of the file? What does the redirect page contain?

                #10
                Originally posted by moded View Post
                hello
                i need add ons , when the guest or registered user ask to download attachment already upload to my forum root ,,
                waiting page for 10 second then redirect to download what he ask
                the cost please ?
                my forum VB5.2.3 ready to upload instead of
                my VB4 http://shneler.com/vb/

                Regards

                VBulletin

                1:count down second from 10 20 or 30 second to 0 then click here to downlod
                2: adsense code
                3: a little ... html code add some rules
                that is it

                hesre i want to add redirect attached file in my forum VB5



                waiting you answer

                Comment


                  #11
                  see this please like this i want
                  http://www.vbulletin.org/forum/showt...ght=attachment
                  Click image for larger version

Name:	window.gif
Views:	222
Size:	13.5 KB
ID:	440
                  Last edited by moded; 08-22-2016, 08:53 AM.

                  Comment


                  • glennrocksvb
                    glennrocksvb commented
                    Editing a comment
                    PM sent.

                  #12
                  What about links ? It's important that guests can't see the links ..

                  Comment


                    #13
                    I'll look into that. Thanks.
                    Helpful? Donate. Thanks!
                    Buy me a coffeePayPal QR Code
                    Fast VPS Host for vBulletin:
                    A2 Hosting & IONOS

                    Comment


                      #14
                      Gleen i have a problem. This issue help me

                      Comment


                      • glennrocksvb
                        glennrocksvb commented
                        Editing a comment
                        Will release this mod soon.

                      • Madraka
                        Madraka commented
                        Editing a comment
                        I will be waiting

                      #15
                      Any update glennrocksvb ?

                      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 "|||"