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

    Is anyone using the add-on Captive Portal Plus

    Scheduled Pinned Locked Moved Captive Portal
    8 Posts 5 Posters 4.0k 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.
    • K
      kcallis
      last edited by

      I have installed Captive Portal Plus and have been somewhat excited about the ability to print out voucher cards. The only issue is that the author make use of A4 size and I am looking for Letter size. If any one had made use of this add-on and using US Letter size (8.5x11), would you be so kind as to share the configuration for that.

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

        Apparently, without knowing. I grabbed some old version somewhere, did a couple of hacks to make it at least not bomb out on recent PHP versions, replaced FPDF with tFPDF so that it would not print junk instead of Unicode chars, plus nuked useless stuff like some SMS gateway API.

        I think it's this junk in print.php:

        
        $rows = 8;
        $cols = 3;
        $width = 179;//Genutzte Breite in mm
        $height = 269;//Genutzte Höhe in mm
        $pdf->SetAutoPageBreak(false);
        $pdf->SetMargins(15, 15);
        
        
        1 Reply Last reply Reply Quote 0
        • K
          kcallis
          last edited by

          @doktornotor:

          Apparently, without knowing. I grabbed some old version somewhere, did a couple of hacks to make it at least not bomb out on recent PHP versions, replaced FPDF with tFPDF so that it would not print junk instead of Unicode chars, plus nuked useless stuff like some SMS gateway API.

          I think it's this junk in print.php:

          
          $rows = 8;
          $cols = 3;
          $width = 179;//Genutzte Breite in mm
          $height = 269;//Genutzte Höhe in mm
          $pdf->SetAutoPageBreak(false);
          $pdf->SetMargins(15, 15);
          
          

          Thanks for the quick response. I didn't see print.php, although I see include_cpp.php. I plugged in the numbers that you added, but it is still hitting me with:

          Content Width is lower than 1.
          Content Height is lower than 1.

          followed I am sure with:

          Content Top Margin 
          Content Left Margin

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

            In the version you linked, this is clearly configurable via the webpage. General - Document Width/Height, Column Width/Height. See settings_cpp.php. So, perhaps dig a bit deeper into the GUI.

            1 Reply Last reply Reply Quote 0
            • F
              freedom91
              last edited by

              @doktornotor:

              Apparently, without knowing. I grabbed some old version somewhere, did a couple of hacks to make it at least not bomb out on recent PHP versions, replaced FPDF with tFPDF so that it would not print junk instead of Unicode chars, plus nuked useless stuff like some SMS gateway API.

              I think it's this junk in print.php:

              
              $rows = 8;
              $cols = 3;
              $width = 179;//Genutzte Breite in mm
              $height = 269;//Genutzte Höhe in mm
              $pdf->SetAutoPageBreak(false);
              $pdf->SetMargins(15, 15);
              
              

              Hi I bought a pfsense device as I wanted to use this plugin or at least the standard captive portal with Radius so I can limit the upload / download of each user…. I want to create vouchers and limit the data each voucher can have to 100MB or maybe 500MB... I know this is possible and have been trying to get it working.... Can anyone help ?

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

                This thread is about voucher printing. Kindly start your own.

                1 Reply Last reply Reply Quote 0
                • M
                  milocheri
                  last edited by

                  Hello, i did install this addon, but i'm getting the error message  "The PDF service has no vouchers" anyone else with this problema ?

                  1 Reply Last reply Reply Quote 0
                  • A
                    anne_hh
                    last edited by

                    Same Problem with me. Anyone got an idea?

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