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


    HTML page transfer

    avatar
    • *****


        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?

      avatar
      • Administrator

          Reputation : 315
          Registered on : 2012-02-22
          Posts : 2362
          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

        avatar
        • *****


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

          avatar
          • Administrator

              Reputation : 315
              Registered on : 2012-02-22
              Posts : 2362
              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

            avatar
            • *****


                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)

              avatar
              • Administrator

                  Reputation : 315
                  Registered on : 2012-02-22
                  Posts : 2362
                  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

                avatar
                • **


                    Reputation : 0
                    Registered on : 2014-05-31
                    Posts : 19
                    Love Fmcodes
                  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

                  avatar
                  • Support Moderator

                      Reputation : 8
                      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.
                    avatar
                    • **


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

                      avatar
                      • *****


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

                        avatar
                        • Support Moderator

                            Reputation : 8
                            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.
                          avatar
                          • Administrator

                              Reputation : 315
                              Registered on : 2012-02-22
                              Posts : 2362
                              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

                            avatar
                            • *****


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

                              avatar
                              • *****


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

                                avatar
                                • *****


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

                                  avatar
                                  • Administrator

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



                                    Niko wants you in the team Guest

                                    Community manager and Administrator at Forumattivo.com

                                    avatar
                                    • *****


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

                                      avatar
                                      • **


                                          Reputation : 0
                                          Registered on : 2014-05-31
                                          Posts : 19
                                          Love Fmcodes
                                        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 ;)

                                        avatar
                                        • *****


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


                                          Code:
                                          (_userdata.user_level == 1)

                                          avatar
                                          • **


                                              Reputation : 0
                                              Registered on : 2014-05-31
                                              Posts : 19
                                              Love Fmcodes
                                            Yeah, I think so :)

                                            avatar
                                            • Support Moderator

                                                Reputation : 8
                                                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.


                                              YOUR BANNER HERE
                                              728x90
                                              DMCA.com Protection Status
                                              © PunBB | Contact | Report an abuse