Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Editing Captive portal page problem

    Scheduled Pinned Locked Moved Captive Portal
    17 Posts 4 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      doktornotor Banned
      last edited by

      1/ Post the code.
      2/ View how? (There was a long-lasting bug with the preview in webGUI, no idea whether it got fixed or not.)

      1 Reply Last reply Reply Quote 0
      • B
        bloodsside14
        last edited by

        
        ![test](captiveportal-test.jpg)
        
        <center> 
        
        # Internet 
        
         </center>
        
        <form method="post" action="$PORTAL_ACTION$">
        Please enter your authorization information:
        
           Username:  and
           Password: 
        
        **OR**
        
        Voucher Code:  
        
        Then click the _Continue_ button below: 
        
        </form>
        
        

        When you upload new html page you can view the portal page. Maybe this is new features for 2.3.3 version.

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          1/ In the first place, your HTML is completely broken. Missing body, img and entire code inside head, head terminated after HTML, etc.
          2/ Once again -  does it work when you actually connect to the CP?

          1 Reply Last reply Reply Quote 0
          • B
            bloodsside14
            last edited by

            Actually the page work but the image show broken.

            error.PNG
            error.PNG_thumb

            1 Reply Last reply Reply Quote 0
            • B
              bloodsside14
              last edited by

              Do anyone solve this issue with the new version of pfsense?

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                Dude, have you fixed your HTML? https://validator.w3.org/#validate_by_input

                And perhaps you could answer the question asked?

                1 Reply Last reply Reply Quote 0
                • B
                  bloodsside14
                  last edited by

                  Honestly i am not to good in programming.  For simple coding base on googling the img src code i try with plain html still not work. I suspecting this is not html error.

                  1 Reply Last reply Reply Quote 0
                  • D
                    doktornotor Banned
                    last edited by

                    Honestly, I've tried to make you answer a goddamn simple question 3 times. Nothing. Go help yourself.

                    1 Reply Last reply Reply Quote 0
                    • B
                      bloodsside14
                      last edited by

                      Don't be mad at me. If you're asking me if cp is working my answer is yes. My question is the image broken when i link it to my html file. I do not want my portal page getting complicated so i want just a simple pic and login page that's all.

                      1 Reply Last reply Reply Quote 0
                      • D
                        doktornotor Banned
                        last edited by

                        No, I am asking you whether the image works when you connect to the captive portal. (NOT when you use whatever "preview" in the WebGUI.)

                        1 Reply Last reply Reply Quote 0
                        • B
                          bloodsside14
                          last edited by

                          No. The image cannot view when i try to connect with captive portal

                          1 Reply Last reply Reply Quote 0
                          • D
                            doktornotor Banned
                            last edited by

                            Well, then perhaps start with fixing your HTML.

                            1 Reply Last reply Reply Quote 0
                            • B
                              bloodsside14
                              last edited by

                              How could i test if the image is really working? I mean if my html is already correct the image should show?

                              1 Reply Last reply Reply Quote 0
                              • D
                                doktornotor Banned
                                last edited by

                                The HTML you posted here is totally broken, I even linked you to the validator. Otherwise, just connect to the CP. As once again already noted, there's been a bug with the preview for ages, the preview is not a good way to test things.

                                1 Reply Last reply Reply Quote 0
                                • benpalB
                                  benpal
                                  last edited by

                                  First thing first, how did you manage to upload your image?

                                  Images can be uploaded using the File Manager in the Services>Captive Portal>YourCaptivePortal>File Manager…

                                  If you can find your image there, then the problem is really in your HTML script....

                                  1 Reply Last reply Reply Quote 0
                                  • GertjanG
                                    Gertjan
                                    last edited by

                                    @bloodsside14:

                                    test

                                    Can you list what you have here : Services -> Captive Portal -> [ZONE] -> File Manager ?
                                    A file called "captiveportal-test.jpg" should be there (exactly the same).

                                    No "help me" PM's please. Use the forum, the community will thank you.
                                    Edit : and where are the logs ??

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.