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

Adding images to captive portal

Captive Portal
3
8
6.0k
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.
  • A
    aldo
    last edited by Mar 27, 2006, 1:35 PM

    the image elements section of the captive portal looks great. BUT?????

    seems that the images are being referanced from the redirected site.
    for example my home page is set to google. so the images are being collected from http://www.google.ie/image.gif

    this is even though the src is set to image.gif.

    looked breifly on the monowall site for any simlar problems but did not see any.
    this is using a build from today.

    regards

    alan

    1 Reply Last reply Reply Quote 0
    • S
      sullrich
      last edited by Mar 27, 2006, 10:37 PM

      The images are to be shown during auth.    All redirections are forced to the local captive portal web server.

      I just uploaded a image and its working fine:

      ls -la /usr/local/captiveportal/ | grep oscar
      lrwxr-xr-x  1 root  wheel    28 Mar 27 22:36 oscar.jpg -> /var/db/cpelements/oscar.jpg

      All requests for google.ie are redirected to the local server until the person auths.    So it should serve the image out of the local server, not google.ie.

      1 Reply Last reply Reply Quote 0
      • A
        aldo
        last edited by Mar 27, 2006, 11:01 PM

        agreed the image uploads fine. yes there is a symbolic link in /usr/share/captiveportal for the image that is saved in /var/db/cpelements

        that is all ok the issue seemed to be that when the captive portal comes up the page displays but all the images dont display and the placeholders show the src as http://www.google.ie/imagename.gif

        are we talking about the same thing. i'm not worried i will use my old method again it worked fine.

        1 Reply Last reply Reply Quote 0
        • S
          sullrich
          last edited by Mar 27, 2006, 11:24 PM

          Yes we are talking about the same thing.

          I just tested this and noticed what the problem is.

          The problem is the lighty rewrite string to force pages to index.php.

          Guess I will need to exclude .jpg|.gif|.png.

          if($captive_portal == true)  {
          $captiveportal = ","mod_rewrite"";
          $captive_portal_rewrite = "url.rewrite-once = ( "(.*)" => "/index.php?redirurl=$1" )";
          }

          1 Reply Last reply Reply Quote 0
          • S
            sullrich
            last edited by Mar 27, 2006, 11:30 PM

            Fixed.  Run cvs_sync.sh releng_1

            1 Reply Last reply Reply Quote 0
            • G
              Gertjan
              last edited by May 16, 2006, 10:56 PM

              @sullrich:

              …..

              The problem is the lighty rewrite string to force pages to index.php.

              Guess I will need to exclude .jpg|.gif|.png.

              if($captive_portal == true)  {
              $captiveportal = ","mod_rewrite"";
              $captive_portal_rewrite = "url.rewrite-once = ( "(.*)" => "/index.php?redirurl=$1" )";
              }

              If this is / was the solution : can't find these edits in my (Beta 4 on Mai 12) version.

              None of the 2 index.php contains these lines …..

              :'( want my images....

              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
              • S
                sullrich
                last edited by May 16, 2006, 10:57 PM

                @Gertjan:

                @sullrich:

                …..

                The problem is the lighty rewrite string to force pages to index.php.

                Guess I will need to exclude .jpg|.gif|.png.

                if($captive_portal == true)  {
                $captiveportal = ","mod_rewrite"";
                $captive_portal_rewrite = "url.rewrite-once = ( "(.*)" => "/index.php?redirurl=$1" )";
                }

                If this is / was the solution : can't find these edits in my (Beta 4 on Mai 12) version.

                None of the 2 index.php contains these lines …..

                :'( want my images....

                cat /etc/inc/system.inc | grep mod_rewrite

                $captiveportal = ","mod_rewrite"";
                #                              "mod_rewrite",

                I setup a virgin beta 4 system at work today, works perfectly with a jpg.

                1 Reply Last reply Reply Quote 0
                • G
                  Gertjan
                  last edited by May 17, 2006, 7:07 AM

                  I agree - 'solved'. See other post concerning same mather.

                  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.