J0k3R^
  • *****


      Reputation : 11
      Registered on : 2014-04-25
      Posts : 153
      Love Fmcodes
    Hi, i have put one html page as homepage on my forum. Buti need it everywhere. I mean, if someone writes /forum in the addrress bar he leaves the html page and goes to forum. So i want the people not to be able to visit other pages on my forum just this html. How to do that?

    Niko
    • Administrator

        Reputation : 320
        Registered on : 2012-02-22
        Posts : 2366
        School of codes courses: coming soon
      Hello

      actually you want to be sure that they have opened at least once the home page?

      or you want to have something like a "maintenance page" so that they can see only that page?



      Niko wants you in the team Guest

      Community manager and Administrator at Forumattivo.com

      J0k3R^
      • *****


          Reputation : 11
          Registered on : 2014-04-25
          Posts : 153
          Love Fmcodes
        yeah, the second one :)

        Niko
        • Administrator

            Reputation : 320
            Registered on : 2012-02-22
            Posts : 2366
            School of codes courses: coming soon
          well, you can customize the html content of the maintenance message :bene:

          as we do on Fmcodes!



          Niko wants you in the team Guest

          Community manager and Administrator at Forumattivo.com

          J0k3R^
          • *****


              Reputation : 11
              Registered on : 2014-04-25
              Posts : 153
              Love Fmcodes
            i knew that but i need a full html page
            (http://fmplanet.forumgreek.com/h15-page)

            Niko
            • Administrator

                Reputation : 320
                Registered on : 2012-02-22
                Posts : 2366
                School of codes courses: coming soon
              add in your forum description something like this:

              Code:
              <script type="text/javascript">window.location = "/h15-";</script>

              Note: this way, even administrator won't be able to see pages and weill be redirected to the html page



              Niko wants you in the team Guest

              Community manager and Administrator at Forumattivo.com

              Anonymous
              • Guest

                  J0k3R^, you could combine the code checking if the visitor is a member, an admin, or a guest (I think the code is originally to mask some content to specific users) and Niko's code.
                  If the member is not an admin then (see in the tutorial) ---> go to http://fmplanet.forumgreek.com/h15-page (Niko's code)



                  Last edited by Nihil on Tue Jun 10, 2014 8:35 pm; edited 1 time in total

                  ddoesmc
                  • Support Moderator

                      Reputation : 9
                      Registered on : 2014-03-11
                      Posts : 299
                      Helping on the forum
                    Hello

                    can this issue be considered solved?
                    If not, please post a bump message withing 7 days to let us know you still need assistance

                    Thank you very much thanks



                    FMCodes Support Moderator

                    I am very active now! Feel free to PM me anytime.
                    damy_nqn
                    • **


                        Reputation : 0
                        Registered on : 2014-06-09
                        Posts : 12
                        Love Fmcodes
                      Tranks Bro! 
                      Me sirve mucho!

                      J0k3R^
                      • *****


                          Reputation : 11
                          Registered on : 2014-04-25
                          Posts : 153
                          Love Fmcodes
                        bump

                        ddoesmc
                        • Support Moderator

                            Reputation : 9
                            Registered on : 2014-03-11
                            Posts : 299
                            Helping on the forum
                          @damy_nqn wrote:Tranks Bro! 
                          Me sirve mucho!
                          Please speak English as this is a English forum, at least try your best!



                          FMCodes Support Moderator

                          I am very active now! Feel free to PM me anytime.
                          Niko
                          • Administrator

                              Reputation : 320
                              Registered on : 2012-02-22
                              Posts : 2366
                              School of codes courses: coming soon
                            @J0k3R^ wrote:bump

                            Did you at least try what we told you? (you had two replies)



                            Niko wants you in the team Guest

                            Community manager and Administrator at Forumattivo.com

                            J0k3R^
                            • *****


                                Reputation : 11
                                Registered on : 2014-04-25
                                Posts : 153
                                Love Fmcodes
                              i didnt understand Nihil's reply :P

                              J0k3R^
                              • *****


                                  Reputation : 11
                                  Registered on : 2014-04-25
                                  Posts : 153
                                  Love Fmcodes
                                any further explainations?

                                J0k3R^
                                • *****


                                    Reputation : 11
                                    Registered on : 2014-04-25
                                    Posts : 153
                                    Love Fmcodes
                                  bump plz

                                  Niko
                                  • Administrator

                                      Reputation : 320
                                      Registered on : 2012-02-22
                                      Posts : 2366
                                      School of codes courses: coming soon
                                    Have you tryed mine?



                                    Niko wants you in the team Guest

                                    Community manager and Administrator at Forumattivo.com

                                    J0k3R^
                                    • *****


                                        Reputation : 11
                                        Registered on : 2014-04-25
                                        Posts : 153
                                        Love Fmcodes
                                      how to make access only to admin?

                                      Anonymous
                                      • Guest

                                          J0k3R^, you just have to combine 2 codes :

                                          Code:
                                          if ( /* make a test here*/) {
                                              window.location = "/h15-"; /* Niko's code */
                                          }

                                          Just replace the comments "/* make a test here*/" by something testing if the user is an administrator or not ! ;)
                                          In the Javascript Section, you will find several topics about permissions, you just have to adapt the code ;)

                                          J0k3R^
                                          • *****


                                              Reputation : 11
                                              Registered on : 2014-04-25
                                              Posts : 153
                                              Love Fmcodes
                                            maybe i should add this at "if" ? :)


                                            Code:
                                            (_userdata.user_level == 1)

                                            Anonymous
                                            • Guest

                                                Yeah, I think so :)

                                                ddoesmc
                                                • Support Moderator

                                                    Reputation : 9
                                                    Registered on : 2014-03-11
                                                    Posts : 299
                                                    Helping on the forum
                                                  Hello,

                                                  As anyone replied to this topic after 15 days from the latest comment's date, the problem is considered solved or abandonated.

                                                  This topic is locked and moved to the appropriate section, thanks for the opening of another topic, of course be care of Respecting the rules. You can ask to open this topic again sending a private message to a team member

                                                  See you on fmcodes



                                                  FMCodes Support Moderator

                                                  I am very active now! Feel free to PM me anytime.