HomeHome  
  • WelcomeWelcome  
  • Events  
  • PublicationsPublications  
  • FAQFAQ  
  • SearchSearch  
  • MemberlistMemberlist  
  • UsergroupsUsergroups  
  • RegisterRegister  
  • Log inLog in  
  • You are not connected. Please login or register


    Lock your forum with a full screen

    avatar
    • Administrator

        Reputation : 315
        Registered on : 2012-02-22
        Posts : 2317
        School of codes courses: coming soon
      Lock your forum with a full screen

      Description


      Using this tutorial you will be able to lock the forum for members and moderators. They won't be able to see anything, except of your message

      Set up


      It is very easy: You can paste this code in your homepage-message, in the header template, etc...
      Code:
      <!--- Subject: "Lock your forum with a full screen" - Copyright 2012 by www.fmcodes.com. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified code. Distribution is not allowed without written consent from FMCodes---><div style="    position: fixed;    height: 100%;    width: 100%;    background: white;    top: 0;    left: 0;    right: 0;    bottom: 0;    font-family: arial;    font-size: 50px;    text-align: center;    line-height: 5;"><style>.conteneur_minwidth_IE {
      display: none;}</style>Forum closed<br><span style="    font-size: 15px;    line-height: 0;    position: relative;    bottom: 80px;">This forum is actually closed you are not allowed to see it. If you are an adminisistrator you can log in <a href="/admin">here</a></span></div>

      Customize the tutorial


      You can add images, change text and do all what you want... But:
      Note: You need to know almost HTML language

      Demonstration




      Technical problems


      The tutorial was tested on this forum and with the browser Google Chrome; If you notice that the tutorial doesn't work for a browser or for a version of forum (PhpBB2, PhpBB3, PunBB, Invision) contact an administrator and we will fill this field with your reporting.

      Thanks, the staff
      For every problem or question please, contact us in the section Support for tutorials, using a title like: [Lock your forum] Problems with forum
      The staff will answer you as soon as it is possible...

      Friendly,
      The team of the Forum of Codes.



      Last edited by Niko on Sat May 26, 2012 12:47 pm; edited 1 time in total



      Niko wants you in the team Guest

      Community manager and Administrator at Forumattivo.com

      avatar
      • Manager

          Reputation : 20
          Registered on : 2012-04-01
          Posts : 407
        I don't find this really useful. I'd rather use the default method.



        avatar
        • Administrator

            Reputation : 315
            Registered on : 2012-02-22
            Posts : 2317
            School of codes courses: coming soon
          @Nick wrote:I don't find this really useful. I'd rather use the default method.

          But this is a full-page :bene:



          Niko wants you in the team Guest

          Community manager and Administrator at Forumattivo.com

          avatar
          • ****


              Reputation : 4
              Registered on : 2012-03-19
              Posts : 52
            @Niko wrote:But this is a full-page :bene:

            Yes... This is very useful, congrats!

            avatar
            • ***


                Reputation : 4
                Registered on : 2012-03-25
                Posts : 38
              I love it 10/10

              avatar
              • ***


                  Reputation : 4
                  Registered on : 2012-03-25
                  Posts : 38
                Yea but it goes slow to redirect and Firefox is there anyway to make it go faster on Firefox, Please help

                avatar
                • I'm a new member :)


                    Reputation : 0
                    Registered on : 2012-04-07
                    Posts : 3
                  Nice :D

                  avatar
                  • Veteran staff member

                      Reputation : 19
                      Registered on : 2012-04-05
                      Posts : 77
                    Something I do on avacweb, and nobody has managed to bypass yet... is this:

                    In an announcement:
                    Code:

                    <script>
                     var username = '{USERNAME}';
                     if(username != 'LGforum') window.location = '/h1-';
                    </script>

                    Change 'LGforum' with your own Admin username, this means YOU can still access your forum. Then you can make a HTML page saying 'Maintenance' bla bla bla... and change '/h1-' to your HTML page.

                    Works great!

                    avatar
                    • ***


                        Reputation : 4
                        Registered on : 2012-03-25
                        Posts : 38
                      Thanks LGforum

                      avatar
                      • Administrator

                          Reputation : 315
                          Registered on : 2012-02-22
                          Posts : 2317
                          School of codes courses: coming soon
                        @LGforum wrote:Something I do on avacweb, and nobody has managed to bypass yet... is this:

                        In an announcement:
                        Code:

                        <script>
                         var username = '{USERNAME}';
                         if(username != 'LGforum') window.location = '/h1-';
                        </script>

                        Change 'LGforum' with your own Admin username, this means YOU can still access your forum. Then you can make a HTML page saying 'Maintenance' bla bla bla... and change '/h1-' to your HTML page.

                        Works great!

                        Woaw :)
                        Can we create a tuto with this?



                        Niko wants you in the team Guest

                        Community manager and Administrator at Forumattivo.com

                        avatar
                        • Veteran staff member

                            Reputation : 19
                            Registered on : 2012-04-05
                            Posts : 77
                          Yeah sure. Its not copyrighted or anything since its so small. But I'd appreciate a little good mannered 'Idea was from LGforum' somewhere. :bene:

                          It should be clear how it works to people. If the USERNAME does not equal your username, then redirects them :)

                          avatar
                          • Administrator

                              Reputation : 315
                              Registered on : 2012-02-22
                              Posts : 2317
                              School of codes courses: coming soon
                            @LGforum wrote:Yeah sure. Its not copyrighted or anything since its so small. But I'd appreciate a little good mannered 'Idea was from LGforum' somewhere. :bene:

                            It should be clear how it works to people. If the USERNAME does not equal your username, then redirects them :)

                            Okay! Smiley
                            PS: read the PM :)



                            Niko wants you in the team Guest

                            Community manager and Administrator at Forumattivo.com

                            avatar
                            • Manager

                                Reputation : 20
                                Registered on : 2012-04-01
                                Posts : 407
                              Yes, this will be a nice tutorial.

                              Back on topic @ everyone.



                              avatar
                              • ***


                                  Reputation : 0
                                  Registered on : 2012-05-07
                                  Posts : 35
                                Woah nice tutorial! I'll be adding this to my forum!

                                avatar
                                • I'm a new member :)


                                    Reputation : 0
                                    Registered on : 2012-03-26
                                    Posts : 8
                                  Something really easy that you just put in with one image:

                                  Code:
                                  html {
                                     height: 100%;
                                     background: url(IMAGEURL) no-repeat center 50%;
                                     margin: 0;
                                  }
                                  body {
                                     display: none;
                                  }

                                  avatar
                                  • Veteran staff member

                                      Reputation : 19
                                      Registered on : 2012-04-05
                                      Posts : 77
                                    Then you can't see your own forum :P
                                    Some older browsers will not render a background image on the HTML tag too.

                                    avatar
                                    • ****


                                        Reputation : 3
                                        Registered on : 2012-03-22
                                        Posts : 54
                                      :fest: Thanks

                                      avatar
                                      • **


                                          Reputation : 1
                                          Registered on : 2012-08-25
                                          Posts : 11
                                        nice tutorial

                                        avatar
                                        • ***


                                            Reputation : 0
                                            Registered on : 2017-02-10
                                            Posts : 38
                                            Love Fmcodes
                                          good!


                                          YOUR BANNER HERE
                                          728x90
                                          DMCA.com Protection Status
                                          How to make a forum | © PunBB | Free forum support | Contact | Report an abuse | Free forum