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

CP images not showing up

Captive Portal
4
7
4.6k
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
    dotdash
    last edited by May 31, 2007, 6:45 PM

    It's my first time using the CP, so perhaps I'm doing it wrong. Here's what I did:
    1)I made an index page with a ref to captiveportal-logo.jpg, uploaded it via the 'portal page contents' button.
    2) Went to 'file manager' tab, uploaded logo.jpg off the workstation. It then shows up in the list as captiveportal-logo.jpg
    3) Open up CP from a test box- red X for image. Checked from shell: /var/db/cpelements/captiveportal.jpg is there. /usr/local/captiveportal/ has only the default index.php, and two .inc files.
    4) If I copy the jpg from /var/db/cpelements to /usr/local/captiveportal, then the image shows up on the index page. But this seems like an ugly hack.
    Using 1.2beta1

    1 Reply Last reply Reply Quote 0
    • J
      JorgeAldoBR
      last edited by Jun 2, 2007, 12:17 PM

      Not enought info (at least for me)…

      Can you provide more info about your setup ?

      1 Reply Last reply Reply Quote 0
      • D
        dotdash
        last edited by Jun 2, 2007, 9:15 PM

        It's a simple setup- Static WAN, CP on LAN. No auth, just a terms of service page with an 'I Agree' button.
        Shouldn't the symlink in /usr/local/captiveportal be created automatically when upload from the file manager tab?

        1 Reply Last reply Reply Quote 0
        • S
          sullrich
          last edited by Jun 3, 2007, 6:36 PM

          Images must have the word "captiveportal" in them.

          1 Reply Last reply Reply Quote 0
          • J
            JorgeAldoBR
            last edited by Jun 4, 2007, 12:34 AM

            1)I made an index page with a ref to captiveportal-logo.jpg,

            looks like he did it already… thats what got me confused...

            1 Reply Last reply Reply Quote 0
            • D
              dotdash
              last edited by Jun 4, 2007, 4:08 AM

              The original file was just called "logo.jpg", when I uploaded it, it showed up as "captiveportal-logo.jpg".
              I'll have to try again, I thought that when I started with a file called "captiveportal-logo.jpg" It became "captiveportal-captiveportal-logo.jpg" after uploading.
              Re-reading my original post, I see that I mis-typed. I should have said that /var/db/cpelements/captiveportal-logo.jpg showed up from the shell, but there was no symlink in /usr/local/captiveportal/ to captiveportal-logo.jpg.

              1 Reply Last reply Reply Quote 0
              • S
                springhill
                last edited by Jun 8, 2007, 6:02 PM

                I have that issue to, seems like a widespread issue for the Beta release for 1.2-BETA-1.  But after copying those files works great :).  Thanks.

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